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
ConstructorDescriptionMaterializerNetworkElement
(org.cyclops.cyclopscore.datastructure.DimPos pos) -
Method Summary
Modifier and TypeMethodDescriptionint
int
This listener will never be saved as an instance, this network element is always used as delegator to this listener.int
protected Class
<BlockEntityMaterializer> void
setPriorityAndChannel
(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, revalidate
Methods inherited from class org.cyclops.integrateddynamics.core.network.ConsumingNetworkElementBase
postUpdate
Methods inherited from class org.cyclops.integrateddynamics.core.network.NetworkElementBase
addDrops, afterNetworkAlive, beforeNetworkKill, canRevalidatePositioned, getUpdateInterval, invalidate, isUpdate, onNeighborBlockChange, onNetworkAddition, onNetworkRemoval, onPostRemoved, onPreRemoved, revalidatePositioned, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.cyclops.integrateddynamics.api.network.INetworkElement
addDrops, afterNetworkAlive, afterNetworkReAlive, beforeNetworkKill, canRevalidate, getUpdateInterval, invalidate, isUpdate, 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:IEventListenableNetworkElement
This listener will never be saved as an instance, this network element is always used as delegator to this listener.- Specified by:
getNetworkEventListener
in interfaceIEventListenableNetworkElement<BlockEntityMaterializer>
- Returns:
- The optional event listener.
-
getTileClass
- Specified by:
getTileClass
in classTileNetworkElement<BlockEntityMaterializer>
-
setPriorityAndChannel
Description copied from interface:INetworkElement
Set the priority and channel of this element in the network.- Specified by:
setPriorityAndChannel
in interfaceINetworkElement
- Parameters:
network
- The network this element is present in.priority
- The new prioritychannel
- The new channel
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfaceINetworkElement
- Returns:
- The priority of this element in the network.
-
getChannel
public int getChannel()- Specified by:
getChannel
in interfaceINetworkElement
- Returns:
- The channel of this element in the network.
-
getConsumptionRate
public int getConsumptionRate()- Specified by:
getConsumptionRate
in interfaceIEnergyConsumingNetworkElement
- Overrides:
getConsumptionRate
in classConsumingNetworkElementBase
- Returns:
- The energy consumption rate of this part for the given state.
-