Class TileNetworkElement<T extends BlockEntityCableConnectableInventory>
java.lang.Object
org.cyclops.integrateddynamics.core.network.NetworkElementBase
org.cyclops.integrateddynamics.core.network.ConsumingNetworkElementBase
org.cyclops.integrateddynamics.core.network.TileNetworkElement<T>
- All Implemented Interfaces:
Comparable<INetworkElement>
,IEnergyConsumingNetworkElement
,INetworkElement
,IPositionedNetworkElement
- Direct Known Subclasses:
MaterializerNetworkElement
,ProxyNetworkElement
,VariablestoreNetworkElement
public abstract class TileNetworkElement<T extends BlockEntityCableConnectableInventory>
extends ConsumingNetworkElementBase
implements IPositionedNetworkElement
Network element for part entities.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterNetworkReAlive
(INetwork network) Called right after this network has come alive again, for example after a network restart.boolean
canRevalidate
(INetwork network) Check if this element can be revalidated if it has been invalidated.int
org.cyclops.cyclopscore.datastructure.DimPos
getTile()
void
revalidate
(INetwork network) Revalidate this network element after it has been invalidated.Methods inherited from class org.cyclops.integrateddynamics.core.network.ConsumingNetworkElementBase
getConsumptionRate, 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 org.cyclops.integrateddynamics.api.network.INetworkElement
addDrops, afterNetworkAlive, beforeNetworkKill, getChannel, getPriority, getUpdateInterval, invalidate, isUpdate, onNeighborBlockChange, onNetworkAddition, onNetworkRemoval, onPostRemoved, onPreRemoved, setPriorityAndChannel, update
-
Constructor Details
-
TileNetworkElement
public TileNetworkElement()
-
-
Method Details
-
getTileClass
-
getTile
-
compareTo
- Specified by:
compareTo
in interfaceComparable<T extends BlockEntityCableConnectableInventory>
-
afterNetworkReAlive
Description copied from interface:INetworkElement
Called right after this network has come alive again, for example after a network restart.- Specified by:
afterNetworkReAlive
in interfaceINetworkElement
- Overrides:
afterNetworkReAlive
in classNetworkElementBase
- Parameters:
network
- The network to update in.
-
canRevalidate
Description copied from interface:INetworkElement
Check if this element can be revalidated if it has been invalidated.- Specified by:
canRevalidate
in interfaceINetworkElement
- Parameters:
network
- The network.- Returns:
- If it can be revalidated.
-
revalidate
Description copied from interface:INetworkElement
Revalidate this network element after it has been invalidated.- Specified by:
revalidate
in interfaceINetworkElement
- Overrides:
revalidate
in classNetworkElementBase
- Parameters:
network
- The network.
-
getPosition
public org.cyclops.cyclopscore.datastructure.DimPos getPosition()- Specified by:
getPosition
in interfaceIPositionedNetworkElement
-