本文整理汇总了Java中appeng.api.networking.ticking.TickingRequest类的典型用法代码示例。如果您正苦于以下问题:Java TickingRequest类的具体用法?Java TickingRequest怎么用?Java TickingRequest使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TickingRequest类属于appeng.api.networking.ticking包,在下文中一共展示了TickingRequest类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTickingRequest
import appeng.api.networking.ticking.TickingRequest; //导入依赖的package包/类
/**
* Sets how often we would like ticks.
*/
@Override
public TickingRequest getTickingRequest( final IGridNode node )
{
// We would like a tick ever 20 MC ticks
return new TickingRequest( 20, 20, false, false );
}
示例2: getTickingRequest
import appeng.api.networking.ticking.TickingRequest; //导入依赖的package包/类
/**
* How often to tick?
*
* @param node
* @return
*/
@Override
public TickingRequest getTickingRequest( final IGridNode node )
{
// Half second, to 2 seconds.
return new TickingRequest( TileEssentiaVibrationChamber.TICKRATE_MIN, TileEssentiaVibrationChamber.TICKRATE_MAX, false, false );
}
示例3: getTickingRequest
import appeng.api.networking.ticking.TickingRequest; //导入依赖的package包/类
@Override
@Optional.Method(modid = ModIds.AE2)
public TickingRequest getTickingRequest(IGridNode node){
return new TickingRequest(120, 120, false, false);
}
示例4: getTickingRequest
import appeng.api.networking.ticking.TickingRequest; //导入依赖的package包/类
@Override
public TickingRequest getTickingRequest( final IGridNode arg0 )
{
return new TickingRequest( MINIMUM_TICKS_PER_OPERATION, MAXIMUM_TICKS_PER_OPERATION, false, false );
}
示例5: getTickingRequest
import appeng.api.networking.ticking.TickingRequest; //导入依赖的package包/类
/**
* How often should we tick?
*/
@Override
public TickingRequest getTickingRequest( final IGridNode node )
{
return new TickingRequest( 30, 30, false, false );
}
示例6: getTickingRequest
import appeng.api.networking.ticking.TickingRequest; //导入依赖的package包/类
@Override
public TickingRequest getTickingRequest( final IGridNode grid )
{
// We would like a tick ever 2 to 20 MC ticks
return new TickingRequest( 2, 20, false, false );
}