Class MaterializerNetworkElement
java.lang.Object
org.cyclops.integrateddynamics.core.network.NetworkElementBase
org.cyclops.integrateddynamics.core.network.ConsumingNetworkElementBase
org.cyclops.integrateddynamics.core.network.TileNetworkElement<BlockEntityMaterializer>
org.cyclops.integrateddynamics.network.MaterializerNetworkElement
- All Implemented Interfaces:
Comparable<INetworkElement>,IEnergyConsumingNetworkElement,IEventListenableNetworkElement<BlockEntityMaterializer>,INetworkElement,IPositionedNetworkElement
public class MaterializerNetworkElement
extends TileNetworkElement<BlockEntityMaterializer>
implements IEventListenableNetworkElement<BlockEntityMaterializer>
Network element for materializers.
-
Constructor Summary
ConstructorsConstructorDescriptionMaterializerNetworkElement(org.cyclops.cyclopscore.datastructure.DimPos pos) -
Method Summary
Modifier and TypeMethodDescriptionintintThis listener will never be saved as an instance, this network element is always used as delegator to this listener.intprotected Class<BlockEntityMaterializer> voidsetPriorityAndChannel(INetwork network, int priority, int channel) Set the priority and channel of this element in the network.Methods inherited from class org.cyclops.integrateddynamics.core.network.TileNetworkElement
afterNetworkReAlive, canRevalidate, compareTo, getPosition, getTile, revalidateMethods inherited from class org.cyclops.integrateddynamics.core.network.ConsumingNetworkElementBase
postUpdateMethods inherited from class org.cyclops.integrateddynamics.core.network.NetworkElementBase
addDrops, afterNetworkAlive, beforeNetworkKill, canRevalidatePositioned, getUpdateInterval, invalidate, isUpdate, onNeighborBlockChange, onNetworkAddition, onNetworkRemoval, onPostRemoved, onPreRemoved, revalidatePositioned, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.cyclops.integrateddynamics.api.network.INetworkElement
addDrops, afterNetworkAlive, afterNetworkReAlive, beforeNetworkKill, canRevalidate, getUpdateInterval, invalidate, isUpdate, onNeighborBlockChange, onNeighborBlockChange, onNetworkAddition, onNetworkRemoval, onPostRemoved, onPreRemoved, revalidate, update
-
Constructor Details
-
MaterializerNetworkElement
public MaterializerNetworkElement(org.cyclops.cyclopscore.datastructure.DimPos pos)
-
-
Method Details
-
getNetworkEventListener
Description copied from interface:IEventListenableNetworkElementThis listener will never be saved as an instance, this network element is always used as delegator to this listener.- Specified by:
getNetworkEventListenerin interfaceIEventListenableNetworkElement<BlockEntityMaterializer>- Returns:
- The optional event listener.
-
getTileClass
- Specified by:
getTileClassin classTileNetworkElement<BlockEntityMaterializer>
-
setPriorityAndChannel
Description copied from interface:INetworkElementSet the priority and channel of this element in the network.- Specified by:
setPriorityAndChannelin interfaceINetworkElement- Parameters:
network- The network this element is present in.priority- The new prioritychannel- The new channel
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceINetworkElement- Returns:
- The priority of this element in the network.
-
getChannel
public int getChannel()- Specified by:
getChannelin interfaceINetworkElement- Returns:
- The channel of this element in the network.
-
getConsumptionRate
public int getConsumptionRate()- Specified by:
getConsumptionRatein interfaceIEnergyConsumingNetworkElement- Overrides:
getConsumptionRatein classConsumingNetworkElementBase- Returns:
- The energy consumption rate of this part for the given state.
-