Class ProxyNetworkElement
java.lang.Object
org.cyclops.integrateddynamics.core.network.NetworkElementBase
org.cyclops.integrateddynamics.core.network.ConsumingNetworkElementBase
org.cyclops.integrateddynamics.core.network.TileNetworkElement<BlockEntityProxy>
org.cyclops.integrateddynamics.network.ProxyNetworkElement
- All Implemented Interfaces:
Comparable<INetworkElement>
,IEnergyConsumingNetworkElement
,IEventListenableNetworkElement<BlockEntityProxy>
,IIdentifiableNetworkElement
,INetworkElement
,IPositionedNetworkElement
- Direct Known Subclasses:
DelayNetworkElement
public class ProxyNetworkElement
extends TileNetworkElement<BlockEntityProxy>
implements IEventListenableNetworkElement<BlockEntityProxy>, IIdentifiableNetworkElement
Network element for coal generators.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
net.minecraft.resources.ResourceLocation
getGroup()
int
getId()
This listener will never be saved as an instance, this network element is always used as delegator to this listener.int
protected Class
<BlockEntityProxy> 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
-
Field Details
-
GROUP
public static final net.minecraft.resources.ResourceLocation GROUP
-
-
Constructor Details
-
ProxyNetworkElement
public ProxyNetworkElement(org.cyclops.cyclopscore.datastructure.DimPos pos)
-
-
Method Details
-
getId
public int getId()- Specified by:
getId
in interfaceIIdentifiableNetworkElement
- Returns:
- The unique id of this element.
-
getGroup
public net.minecraft.resources.ResourceLocation getGroup()- Specified by:
getGroup
in interfaceIIdentifiableNetworkElement
- Returns:
- A group within which the element is unique.
-
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.
-
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<BlockEntityProxy>
- Returns:
- The optional event listener.
-
getTileClass
- Specified by:
getTileClass
in classTileNetworkElement<BlockEntityProxy>
-