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
ConstructorsConstructorDescriptionVariablestoreNetworkElement(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<BlockEntityVariablestore> booleanonNetworkAddition(INetwork network) Called when this element is added to the network.voidonNetworkRemoval(INetwork network, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.block.entity.BlockEntity blockEntity) Called when this element is removed from the network.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, 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, onPostRemoved, onPreRemoved, revalidate, update
-
Constructor Details
-
VariablestoreNetworkElement
public VariablestoreNetworkElement(org.cyclops.cyclopscore.datastructure.DimPos pos)
-
-
Method Details
-
onNetworkAddition
Description copied from interface:INetworkElementCalled when this element is added to the network.- Specified by:
onNetworkAdditionin interfaceINetworkElement- Overrides:
onNetworkAdditionin classNetworkElementBase- Parameters:
network- The network.- Returns:
- If the addition succeeded.
-
onNetworkRemoval
public void onNetworkRemoval(INetwork network, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.block.entity.BlockEntity blockEntity) Description copied from interface:INetworkElementCalled when this element is removed from the network.- Specified by:
onNetworkRemovalin interfaceINetworkElement- Overrides:
onNetworkRemovalin classNetworkElementBase- Parameters:
network- The network.blockState- The block state.blockEntity- The block entity.
-
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.
-
getTileClass
- Specified by:
getTileClassin classTileNetworkElement<BlockEntityVariablestore>
-
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<BlockEntityVariablestore>- Returns:
- The optional event listener.
-