2019-06-28 17:55:20 -04:00
|
|
|
CLASS net/minecraft/class_1923 net/minecraft/util/math/ChunkPos
|
2022-10-18 16:15:20 -04:00
|
|
|
COMMENT An immutable pair of two integers representing the X and Z coordinates of a chunk.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>Chunk positions are usually serialized as a {@code long}.
|
2019-09-12 09:28:23 -04:00
|
|
|
FIELD field_17348 MARKER J
|
2022-10-18 16:15:20 -04:00
|
|
|
COMMENT A {@code long}-serialized chunk position {@code 1875066, 1875066}. This is a
|
|
|
|
COMMENT special value used as a marker.
|
2021-10-15 11:30:33 -04:00
|
|
|
FIELD field_35107 ORIGIN Lnet/minecraft/class_1923;
|
2022-10-18 16:15:20 -04:00
|
|
|
COMMENT The origin of the chunk position, {@code 0, 0}.
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_9180 z I
|
|
|
|
FIELD field_9181 x I
|
2018-12-12 12:22:18 -05:00
|
|
|
METHOD <init> (II)V
|
2018-11-04 07:22:38 -05:00
|
|
|
ARG 1 x
|
2019-01-30 05:53:59 -05:00
|
|
|
ARG 2 z
|
|
|
|
METHOD <init> (J)V
|
|
|
|
ARG 1 pos
|
2019-07-08 12:09:22 -04:00
|
|
|
METHOD <init> (Lnet/minecraft/class_2338;)V
|
2019-01-30 05:53:59 -05:00
|
|
|
ARG 1 pos
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD equals (Ljava/lang/Object;)Z
|
|
|
|
ARG 1 o
|
|
|
|
METHOD method_17885 getRegionX ()I
|
|
|
|
METHOD method_17886 getRegionZ ()I
|
|
|
|
METHOD method_17887 getRegionRelativeX ()I
|
|
|
|
METHOD method_17888 getRegionRelativeZ ()I
|
|
|
|
METHOD method_19280 stream (Lnet/minecraft/class_1923;I)Ljava/util/stream/Stream;
|
2019-04-17 12:23:22 -04:00
|
|
|
ARG 0 center
|
2019-04-04 16:04:27 -04:00
|
|
|
ARG 1 radius
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_19281 stream (Lnet/minecraft/class_1923;Lnet/minecraft/class_1923;)Ljava/util/stream/Stream;
|
2019-04-17 12:23:22 -04:00
|
|
|
ARG 0 pos1
|
|
|
|
ARG 1 pos2
|
2021-02-05 03:20:56 -05:00
|
|
|
METHOD method_24022 getChebyshevDistance (Lnet/minecraft/class_1923;)I
|
|
|
|
ARG 1 pos
|
2021-03-09 14:52:29 -05:00
|
|
|
METHOD method_33939 getOffsetX (I)I
|
|
|
|
ARG 1 offset
|
|
|
|
METHOD method_33940 getCenterX ()I
|
|
|
|
METHOD method_33941 getOffsetZ (I)I
|
|
|
|
ARG 1 offset
|
|
|
|
METHOD method_33942 getCenterZ ()I
|
|
|
|
METHOD method_33943 getCenterAtY (I)Lnet/minecraft/class_2338;
|
|
|
|
ARG 1 y
|
2021-05-04 13:25:42 -04:00
|
|
|
METHOD method_35231 getBlockPos (III)Lnet/minecraft/class_2338;
|
|
|
|
ARG 1 offsetX
|
|
|
|
ARG 2 y
|
|
|
|
ARG 3 offsetZ
|
2021-07-23 08:53:43 -04:00
|
|
|
METHOD method_37232 toLong (Lnet/minecraft/class_2338;)J
|
2022-10-18 16:15:20 -04:00
|
|
|
COMMENT {@return the chunk position of the given {@code pos} serialized as {@code long}}
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #toLong(int, int)
|
2021-07-23 08:53:43 -04:00
|
|
|
ARG 0 pos
|
2022-03-30 05:19:16 -04:00
|
|
|
METHOD method_42305 fromRegion (II)Lnet/minecraft/class_1923;
|
|
|
|
ARG 0 x
|
|
|
|
ARG 1 z
|
|
|
|
METHOD method_42306 fromRegionCenter (II)Lnet/minecraft/class_1923;
|
|
|
|
ARG 0 x
|
|
|
|
ARG 1 z
|
|
|
|
METHOD method_42307 hashCode (II)I
|
|
|
|
ARG 0 x
|
|
|
|
ARG 1 z
|
2020-08-30 06:07:55 -04:00
|
|
|
METHOD method_8323 getStartPos ()Lnet/minecraft/class_2338;
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_8324 toLong ()J
|
2022-10-18 16:15:20 -04:00
|
|
|
COMMENT {@return the chunk position serialized as {@code long}}
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #toLong(int, int)
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_8325 getPackedX (J)I
|
|
|
|
ARG 0 pos
|
|
|
|
METHOD method_8326 getStartX ()I
|
|
|
|
METHOD method_8327 getEndX ()I
|
|
|
|
METHOD method_8328 getStartZ ()I
|
|
|
|
METHOD method_8329 getEndZ ()I
|
|
|
|
METHOD method_8331 toLong (II)J
|
2022-10-18 16:15:20 -04:00
|
|
|
COMMENT {@return the chunk position serialized as {@code long}}
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>This returns {@code chunkX | (chunkZ << 32)}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #toLong()
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 0 chunkX
|
|
|
|
ARG 1 chunkZ
|
|
|
|
METHOD method_8332 getPackedZ (J)I
|
2019-01-30 05:53:59 -05:00
|
|
|
ARG 0 pos
|
2019-12-02 08:55:18 -05:00
|
|
|
CLASS 1
|
|
|
|
FIELD field_18684 position Lnet/minecraft/class_1923;
|
|
|
|
METHOD tryAdvance (Ljava/util/function/Consumer;)Z
|
|
|
|
ARG 1 consumer
|