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 Details

    • GROUP

      static final net.minecraft.resources.ResourceLocation GROUP
  • Method Details

    • getPart

      P getPart()
      Returns:
      The part.
    • getPartState

      S getPartState() throws PartStateException
      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.