java.lang.Object
org.cyclops.cyclopscore.datastructure.DimPos
All Implemented Interfaces:
Comparable<DimPos>

public class DimPos extends Object implements Comparable<DimPos>
A simple data class for a block position inside a world.
  • Method Details

    • getLevelKey

      public net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> getLevelKey()
    • getLevel

      @Nullable public net.minecraft.world.level.Level getLevel(boolean forceLoad)
    • isLoaded

      public boolean isLoaded()
    • compareTo

      public int compareTo(DimPos o)
      Specified by:
      compareTo in interface Comparable<DimPos>
    • equals

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

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

      public DimPos withPosition(net.minecraft.core.BlockPos pos)
    • of

      public static DimPos of(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos)
    • of

      public static DimPos of(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> world, net.minecraft.core.BlockPos blockPos)