Class PartTypeConnector.State<P extends PartTypeConnector>

java.lang.Object
org.cyclops.integrateddynamics.core.part.PartStateBase<P>
org.cyclops.integrateddynamics.part.PartTypeConnector.State<P>
All Implemented Interfaces:
Comparable<IPathElement>, org.cyclops.cyclopscore.persist.IDirtyMarkListener, IPartState<P>, IPathElement
Direct Known Subclasses:
PartTypeConnectorMonoDirectional.State, PartTypeConnectorOmniDirectional.State
Enclosing class:
PartTypeConnector<P extends PartTypeConnector<P,S>,S extends PartTypeConnector.State<P>>

public abstract static class PartTypeConnector.State<P extends PartTypeConnector> extends PartStateBase<P> implements IPathElement
  • Constructor Details

    • State

      public State()
  • Method Details

    • getPartPos

      protected PartPos getPartPos()
    • getPosition

      public org.cyclops.cyclopscore.datastructure.DimPos getPosition()
      Specified by:
      getPosition in interface IPathElement
      Returns:
      The position of this element.
    • setPosition

      public void setPosition(PartPos partPos)
    • compareTo

      public int compareTo(IPathElement o)
      Specified by:
      compareTo in interface Comparable<P extends PartTypeConnector>
    • getCapability

      public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(net.minecraftforge.common.capabilities.Capability<T> capability, INetwork network, IPartNetwork partNetwork, PartTarget target)
      Description copied from interface: IPartState
      Get the given capability.
      Specified by:
      getCapability in interface IPartState<P extends PartTypeConnector>
      Overrides:
      getCapability in class PartStateBase<P extends PartTypeConnector>
      Type Parameters:
      T - The capability type.
      Parameters:
      capability - The capability to get.
      network - The network the part belongs to.
      partNetwork - The part network the part belongs to.
      target - The target.
      Returns:
      The optional capability instance.