当前位置: 首页>>代码示例>>Java>>正文


Java TickingRequest类代码示例

本文整理汇总了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 );
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:10,代码来源:PartEssentiaStorageBus.java

示例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 );

}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:14,代码来源:TileEssentiaVibrationChamber.java

示例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);
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:6,代码来源:SemiBlockRequester.java

示例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 );
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:6,代码来源:ThEPartEssentiaIOBus_Base.java

示例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 );
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:9,代码来源:PartVisInterface.java

示例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 );
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:7,代码来源:PartArcaneCraftingTerminal.java


注:本文中的appeng.api.networking.ticking.TickingRequest类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。