Class VariablestoreNetworkElement
java.lang.Object
org.cyclops.integrateddynamics.core.network.NetworkElementBase
org.cyclops.integrateddynamics.core.network.ConsumingNetworkElementBase
org.cyclops.integrateddynamics.core.network.TileNetworkElement<BlockEntityVariablestore>
org.cyclops.integrateddynamics.network.VariablestoreNetworkElement
- All Implemented Interfaces:
Comparable<INetworkElement>
,IEnergyConsumingNetworkElement
,IEventListenableNetworkElement<BlockEntityVariablestore>
,INetworkElement
,IPositionedNetworkElement
public class VariablestoreNetworkElement
extends TileNetworkElement<BlockEntityVariablestore>
implements IEventListenableNetworkElement<BlockEntityVariablestore>
Network element for variable stores.
-
Constructor Summary
ConstructorDescriptionVariablestoreNetworkElement
(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
<BlockEntityVariablestore> boolean
onNetworkAddition
(INetwork network) Called when this element is added to the network.void
onNetworkRemoval
(INetwork network) Called when this element is removed from the network.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, 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, onPostRemoved, onPreRemoved, revalidate, update
-
Constructor Details
-
VariablestoreNetworkElement
public VariablestoreNetworkElement(org.cyclops.cyclopscore.datastructure.DimPos pos)
-
-
Method Details
-
onNetworkAddition
Description copied from interface:INetworkElement
Called when this element is added to the network.- Specified by:
onNetworkAddition
in interfaceINetworkElement
- Overrides:
onNetworkAddition
in classNetworkElementBase
- Parameters:
network
- The network.- Returns:
- If the addition succeeded.
-
onNetworkRemoval
Description copied from interface:INetworkElement
Called when this element is removed from the network.- Specified by:
onNetworkRemoval
in interfaceINetworkElement
- Overrides:
onNetworkRemoval
in classNetworkElementBase
- Parameters:
network
- The network.
-
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.
-
getTileClass
- Specified by:
getTileClass
in classTileNetworkElement<BlockEntityVariablestore>
-
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<BlockEntityVariablestore>
- Returns:
- The optional event listener.
-