Class ChunkPos

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

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

    • MARKER

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

      public final int x
      Mappings:
      Namespace Name Mixin selector
      official b Lbta;b: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 c Lbta;c: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> Lbta;<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> Lbta;<init>(Lfx;)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> Lbta;<init>(J)V
      intermediary <init> Lnet/minecraft/class_1923;<init>(J)V
      named <init> Lnet/minecraft/util/math/ChunkPos;<init>(J)V
  • Method Details

    • toLong

      public long toLong()
      Mappings:
      Namespace Name Mixin selector
      official a Lbta;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 a Lbta;a(II)J
      intermediary method_8331 Lnet/minecraft/class_1923;method_8331(II)J
      named toLong Lnet/minecraft/util/math/ChunkPos;toLong(II)J
    • getPackedX

      public static int getPackedX​(long pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbta;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 Lbta;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
      Mappings:
      Namespace Name Mixin selector
      official hashCode Lbta;hashCode()I
      intermediary hashCode Lnet/minecraft/class_1923;hashCode()I
      named hashCode Lnet/minecraft/util/math/ChunkPos;hashCode()I
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lbta;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
    • getStartX

      public int getStartX()
      Mappings:
      Namespace Name Mixin selector
      official d Lbta;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 Lbta;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 Lbta;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 Lbta;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 Lbta;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 Lbta;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 Lbta;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 Lbta;k()I
      intermediary method_17888 Lnet/minecraft/class_1923;method_17888()I
      named getRegionRelativeZ Lnet/minecraft/util/math/ChunkPos;getRegionRelativeZ()I
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Lbta;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_1923;toString()Ljava/lang/String;
      named toString Lnet/minecraft/util/math/ChunkPos;toString()Ljava/lang/String;
    • getStartPos

      public BlockPos getStartPos()
      Mappings:
      Namespace Name Mixin selector
      official l Lbta;l()Lfx;
      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 Lbta;a(Lbta;)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 Lbta;a(Lbta;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 Lbta;a(Lbta;Lbta;)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;