Interface IPartNetworkElement<P extends IPartType<P,S>,S extends IPartState<P>>
- All Superinterfaces:
Comparable<INetworkElement>
,IEventListenableNetworkElement<P>
,IIdentifiableNetworkElement
,INetworkElement
,IPositionedNetworkElement
,ISidedNetworkElement
- All Known Implementing Classes:
PartNetworkElement
public interface IPartNetworkElement<P extends IPartType<P,S>,S extends IPartState<P>>
extends IEventListenableNetworkElement<P>, IPositionedNetworkElement, ISidedNetworkElement, IIdentifiableNetworkElement
A part network element.
-
Field Summary
-
Method Summary
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.cyclops.integrateddynamics.api.network.IEventListenableNetworkElement
getNetworkEventListener
Methods inherited from interface org.cyclops.integrateddynamics.api.network.IIdentifiableNetworkElement
getGroup, getId
Methods inherited from interface org.cyclops.integrateddynamics.api.network.INetworkElement
addDrops, afterNetworkAlive, afterNetworkReAlive, beforeNetworkKill, canRevalidate, getChannel, getPriority, getUpdateInterval, invalidate, isUpdate, onNeighborBlockChange, onNetworkAddition, onNetworkRemoval, onPostRemoved, onPreRemoved, revalidate, setPriorityAndChannel, update
Methods inherited from interface org.cyclops.integrateddynamics.api.network.IPositionedNetworkElement
getPosition
Methods inherited from interface org.cyclops.integrateddynamics.api.network.ISidedNetworkElement
getSide
-
Field Details
-
GROUP
static final net.minecraft.resources.ResourceLocation GROUP
-
-
Method Details
-
getPart
P getPart()- Returns:
- The part.
-
getPartState
- Returns:
- The state for this part.
- Throws:
PartStateException
- If the part state could not be found.
-
getPartContainer
IPartContainer getPartContainer()- Returns:
- The container in which this part resides.
-
getTarget
PartTarget getTarget()- Returns:
- The target and position of this part.
-
isLoaded
boolean isLoaded()- Returns:
- If this part's position is currently loaded in the world.
-