當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。