java.lang.Object
org.cyclops.integrateddynamics.api.part.PartPos
All Implemented Interfaces:
Comparable<PartPos>

public class PartPos extends Object implements Comparable<PartPos>
Object holder to refer to a block side and position.
  • Method Details

    • of

      public static PartPos of(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, @Nullable net.minecraft.core.Direction side)
    • of

      public static PartPos of(org.cyclops.cyclopscore.datastructure.DimPos pos, @Nullable net.minecraft.core.Direction side)
    • getPos

      public org.cyclops.cyclopscore.datastructure.DimPos getPos()
    • getSide

      @Nullable public net.minecraft.core.Direction getSide()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getPartData

      @Nullable public static org.apache.commons.lang3.tuple.Pair<IPartType,IPartState> getPartData(PartPos pos)
      Get part data from the given position.
      Parameters:
      pos - The part position.
      Returns:
      A pair of part type and part state or null if not found.
    • compareTo

      public int compareTo(PartPos o)
      Specified by:
      compareTo in interface Comparable<PartPos>