本文整理匯總了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 );
}