Class ChunkPos

java.lang.Object
net.minecraft.util.math.ChunkPos

public class ChunkPos extends Object
Mappings:
Namespace Name
official cge
intermediary net/minecraft/class_1923
named net/minecraft/util/math/ChunkPos
  • Field Details

    • field_36299

      private static final int field_36299
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Lcge;g:I
      intermediary field_36299 Lnet/minecraft/class_1923;field_36299:I
      named field_36299 Lnet/minecraft/util/math/ChunkPos;field_36299:I
    • MARKER

      public static final long MARKER
      Mappings:
      Namespace Name Mixin selector
      official a Lcge;a:J
      intermediary field_17348 Lnet/minecraft/class_1923;field_17348:J
      named MARKER Lnet/minecraft/util/math/ChunkPos;MARKER:J
    • ORIGIN

      public static final ChunkPos ORIGIN
      Mappings:
      Namespace Name Mixin selector
      official b Lcge;b:Lcge;
      intermediary field_35107 Lnet/minecraft/class_1923;field_35107:Lnet/minecraft/class_1923;
      named ORIGIN Lnet/minecraft/util/math/ChunkPos;ORIGIN:Lnet/minecraft/util/math/ChunkPos;
    • field_30953

      private static final long field_30953
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Lcge;h:J
      intermediary field_30953 Lnet/minecraft/class_1923;field_30953:J
      named field_30953 Lnet/minecraft/util/math/ChunkPos;field_30953:J
    • field_30954

      private static final long field_30954
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official i Lcge;i:J
      intermediary field_30954 Lnet/minecraft/class_1923;field_30954:J
      named field_30954 Lnet/minecraft/util/math/ChunkPos;field_30954:J
    • field_30955

      private static final int field_30955
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Lcge;j:I
      intermediary field_30955 Lnet/minecraft/class_1923;field_30955:I
      named field_30955 Lnet/minecraft/util/math/ChunkPos;field_30955:I
    • field_38224

      public static final int field_38224
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lcge;c:I
      intermediary field_38224 Lnet/minecraft/class_1923;field_38224:I
      named field_38224 Lnet/minecraft/util/math/ChunkPos;field_38224:I
    • field_30956

      private static final int field_30956
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Lcge;k:I
      intermediary field_30956 Lnet/minecraft/class_1923;field_30956:I
      named field_30956 Lnet/minecraft/util/math/ChunkPos;field_30956:I
    • field_38225

      public static final int field_38225
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lcge;d:I
      intermediary field_38225 Lnet/minecraft/class_1923;field_38225:I
      named field_38225 Lnet/minecraft/util/math/ChunkPos;field_38225:I
    • field_30957

      private static final int field_30957
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lcge;l:I
      intermediary field_30957 Lnet/minecraft/class_1923;field_30957:I
      named field_30957 Lnet/minecraft/util/math/ChunkPos;field_30957:I
    • field_30958

      private static final int field_30958
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official m Lcge;m:I
      intermediary field_30958 Lnet/minecraft/class_1923;field_30958:I
      named field_30958 Lnet/minecraft/util/math/ChunkPos;field_30958:I
    • field_30959

      private static final int field_30959
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Lcge;n:I
      intermediary field_30959 Lnet/minecraft/class_1923;field_30959:I
      named field_30959 Lnet/minecraft/util/math/ChunkPos;field_30959:I
    • x

      public final int x
      Mappings:
      Namespace Name Mixin selector
      official e Lcge;e:I
      intermediary field_9181 Lnet/minecraft/class_1923;field_9181:I
      named x Lnet/minecraft/util/math/ChunkPos;x:I
    • z

      public final int z
      Mappings:
      Namespace Name Mixin selector
      official f Lcge;f:I
      intermediary field_9180 Lnet/minecraft/class_1923;field_9180:I
      named z Lnet/minecraft/util/math/ChunkPos;z:I
  • Constructor Details

    • ChunkPos

      public ChunkPos(int x, int z)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcge;<init>(II)V
      intermediary <init> Lnet/minecraft/class_1923;<init>(II)V
      named <init> Lnet/minecraft/util/math/ChunkPos;<init>(II)V
    • ChunkPos

      public ChunkPos(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcge;<init>(Lgt;)V
      intermediary <init> Lnet/minecraft/class_1923;<init>(Lnet/minecraft/class_2338;)V
      named <init> Lnet/minecraft/util/math/ChunkPos;<init>(Lnet/minecraft/util/math/BlockPos;)V
    • ChunkPos

      public ChunkPos(long pos)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcge;<init>(J)V
      intermediary <init> Lnet/minecraft/class_1923;<init>(J)V
      named <init> Lnet/minecraft/util/math/ChunkPos;<init>(J)V
  • Method Details

    • fromRegion

      public static ChunkPos fromRegion(int x, int z)
      Mappings:
      Namespace Name Mixin selector
      official a Lcge;a(II)Lcge;
      intermediary method_42305 Lnet/minecraft/class_1923;method_42305(II)Lnet/minecraft/class_1923;
      named fromRegion Lnet/minecraft/util/math/ChunkPos;fromRegion(II)Lnet/minecraft/util/math/ChunkPos;
    • fromRegionCenter

      public static ChunkPos fromRegionCenter(int x, int z)
      Mappings:
      Namespace Name Mixin selector
      official b Lcge;b(II)Lcge;
      intermediary method_42306 Lnet/minecraft/class_1923;method_42306(II)Lnet/minecraft/class_1923;
      named fromRegionCenter Lnet/minecraft/util/math/ChunkPos;fromRegionCenter(II)Lnet/minecraft/util/math/ChunkPos;
    • toLong

      public long toLong()
      Mappings:
      Namespace Name Mixin selector
      official a Lcge;a()J
      intermediary method_8324 Lnet/minecraft/class_1923;method_8324()J
      named toLong Lnet/minecraft/util/math/ChunkPos;toLong()J
    • toLong

      public static long toLong(int chunkX, int chunkZ)
      Mappings:
      Namespace Name Mixin selector
      official c Lcge;c(II)J
      intermediary method_8331 Lnet/minecraft/class_1923;method_8331(II)J
      named toLong Lnet/minecraft/util/math/ChunkPos;toLong(II)J
    • toLong

      public static long toLong(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lcge;a(Lgt;)J
      intermediary method_37232 Lnet/minecraft/class_1923;method_37232(Lnet/minecraft/class_2338;)J
      named toLong Lnet/minecraft/util/math/ChunkPos;toLong(Lnet/minecraft/util/math/BlockPos;)J
    • getPackedX

      public static int getPackedX(long pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lcge;a(J)I
      intermediary method_8325 Lnet/minecraft/class_1923;method_8325(J)I
      named getPackedX Lnet/minecraft/util/math/ChunkPos;getPackedX(J)I
    • getPackedZ

      public static int getPackedZ(long pos)
      Mappings:
      Namespace Name Mixin selector
      official b Lcge;b(J)I
      intermediary method_8332 Lnet/minecraft/class_1923;method_8332(J)I
      named getPackedZ Lnet/minecraft/util/math/ChunkPos;getPackedZ(J)I
    • hashCode

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

      public static int hashCode(int x, int z)
      Mappings:
      Namespace Name Mixin selector
      official d Lcge;d(II)I
      intermediary method_42307 Lnet/minecraft/class_1923;method_42307(II)I
      named hashCode Lnet/minecraft/util/math/ChunkPos;hashCode(II)I
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lcge;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_1923;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/util/math/ChunkPos;equals(Ljava/lang/Object;)Z
    • getCenterX

      public int getCenterX()
      Mappings:
      Namespace Name Mixin selector
      official b Lcge;b()I
      intermediary method_33940 Lnet/minecraft/class_1923;method_33940()I
      named getCenterX Lnet/minecraft/util/math/ChunkPos;getCenterX()I
    • getCenterZ

      public int getCenterZ()
      Mappings:
      Namespace Name Mixin selector
      official c Lcge;c()I
      intermediary method_33942 Lnet/minecraft/class_1923;method_33942()I
      named getCenterZ Lnet/minecraft/util/math/ChunkPos;getCenterZ()I
    • getStartX

      public int getStartX()
      Mappings:
      Namespace Name Mixin selector
      official d Lcge;d()I
      intermediary method_8326 Lnet/minecraft/class_1923;method_8326()I
      named getStartX Lnet/minecraft/util/math/ChunkPos;getStartX()I
    • getStartZ

      public int getStartZ()
      Mappings:
      Namespace Name Mixin selector
      official e Lcge;e()I
      intermediary method_8328 Lnet/minecraft/class_1923;method_8328()I
      named getStartZ Lnet/minecraft/util/math/ChunkPos;getStartZ()I
    • getEndX

      public int getEndX()
      Mappings:
      Namespace Name Mixin selector
      official f Lcge;f()I
      intermediary method_8327 Lnet/minecraft/class_1923;method_8327()I
      named getEndX Lnet/minecraft/util/math/ChunkPos;getEndX()I
    • getEndZ

      public int getEndZ()
      Mappings:
      Namespace Name Mixin selector
      official g Lcge;g()I
      intermediary method_8329 Lnet/minecraft/class_1923;method_8329()I
      named getEndZ Lnet/minecraft/util/math/ChunkPos;getEndZ()I
    • getRegionX

      public int getRegionX()
      Mappings:
      Namespace Name Mixin selector
      official h Lcge;h()I
      intermediary method_17885 Lnet/minecraft/class_1923;method_17885()I
      named getRegionX Lnet/minecraft/util/math/ChunkPos;getRegionX()I
    • getRegionZ

      public int getRegionZ()
      Mappings:
      Namespace Name Mixin selector
      official i Lcge;i()I
      intermediary method_17886 Lnet/minecraft/class_1923;method_17886()I
      named getRegionZ Lnet/minecraft/util/math/ChunkPos;getRegionZ()I
    • getRegionRelativeX

      public int getRegionRelativeX()
      Mappings:
      Namespace Name Mixin selector
      official j Lcge;j()I
      intermediary method_17887 Lnet/minecraft/class_1923;method_17887()I
      named getRegionRelativeX Lnet/minecraft/util/math/ChunkPos;getRegionRelativeX()I
    • getRegionRelativeZ

      public int getRegionRelativeZ()
      Mappings:
      Namespace Name Mixin selector
      official k Lcge;k()I
      intermediary method_17888 Lnet/minecraft/class_1923;method_17888()I
      named getRegionRelativeZ Lnet/minecraft/util/math/ChunkPos;getRegionRelativeZ()I
    • getBlockPos

      public BlockPos getBlockPos(int offsetX, int y, int offsetZ)
      Mappings:
      Namespace Name Mixin selector
      official a Lcge;a(III)Lgt;
      intermediary method_35231 Lnet/minecraft/class_1923;method_35231(III)Lnet/minecraft/class_2338;
      named getBlockPos Lnet/minecraft/util/math/ChunkPos;getBlockPos(III)Lnet/minecraft/util/math/BlockPos;
    • getOffsetX

      public int getOffsetX(int offset)
      Mappings:
      Namespace Name Mixin selector
      official a Lcge;a(I)I
      intermediary method_33939 Lnet/minecraft/class_1923;method_33939(I)I
      named getOffsetX Lnet/minecraft/util/math/ChunkPos;getOffsetX(I)I
    • getOffsetZ

      public int getOffsetZ(int offset)
      Mappings:
      Namespace Name Mixin selector
      official b Lcge;b(I)I
      intermediary method_33941 Lnet/minecraft/class_1923;method_33941(I)I
      named getOffsetZ Lnet/minecraft/util/math/ChunkPos;getOffsetZ(I)I
    • getCenterAtY

      public BlockPos getCenterAtY(int y)
      Mappings:
      Namespace Name Mixin selector
      official c Lcge;c(I)Lgt;
      intermediary method_33943 Lnet/minecraft/class_1923;method_33943(I)Lnet/minecraft/class_2338;
      named getCenterAtY Lnet/minecraft/util/math/ChunkPos;getCenterAtY(I)Lnet/minecraft/util/math/BlockPos;
    • toString

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

      public BlockPos getStartPos()
      Mappings:
      Namespace Name Mixin selector
      official l Lcge;l()Lgt;
      intermediary method_8323 Lnet/minecraft/class_1923;method_8323()Lnet/minecraft/class_2338;
      named getStartPos Lnet/minecraft/util/math/ChunkPos;getStartPos()Lnet/minecraft/util/math/BlockPos;
    • getChebyshevDistance

      public int getChebyshevDistance(ChunkPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lcge;a(Lcge;)I
      intermediary method_24022 Lnet/minecraft/class_1923;method_24022(Lnet/minecraft/class_1923;)I
      named getChebyshevDistance Lnet/minecraft/util/math/ChunkPos;getChebyshevDistance(Lnet/minecraft/util/math/ChunkPos;)I
    • stream

      public static Stream<ChunkPos> stream(ChunkPos center, int radius)
      Mappings:
      Namespace Name Mixin selector
      official a Lcge;a(Lcge;I)Ljava/util/stream/Stream;
      intermediary method_19280 Lnet/minecraft/class_1923;method_19280(Lnet/minecraft/class_1923;I)Ljava/util/stream/Stream;
      named stream Lnet/minecraft/util/math/ChunkPos;stream(Lnet/minecraft/util/math/ChunkPos;I)Ljava/util/stream/Stream;
    • stream

      public static Stream<ChunkPos> stream(ChunkPos pos1, ChunkPos pos2)
      Mappings:
      Namespace Name Mixin selector
      official a Lcge;a(Lcge;Lcge;)Ljava/util/stream/Stream;
      intermediary method_19281 Lnet/minecraft/class_1923;method_19281(Lnet/minecraft/class_1923;Lnet/minecraft/class_1923;)Ljava/util/stream/Stream;
      named stream Lnet/minecraft/util/math/ChunkPos;stream(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/util/math/ChunkPos;)Ljava/util/stream/Stream;