2019-06-28 17:55:20 -04:00
|
|
|
CLASS net/minecraft/class_2804 net/minecraft/world/chunk/ChunkNibbleArray
|
2021-09-16 19:24:14 -04:00
|
|
|
COMMENT A chunk nibble array is an array of nibbles for each block position in
|
|
|
|
COMMENT a chunk. It is most often used to store light data.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>A {@index nibble} is 4 bits, storing an integer from {@code 0} to
|
|
|
|
COMMENT {@code 15}. It takes half the space of a byte.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>The nibbles are stored in an X-Z-Y major order; in the backing array,
|
|
|
|
COMMENT the indices increases by first increasing X, then Z, and finally Y.
|
2021-01-03 15:53:34 -05:00
|
|
|
FIELD field_12783 bytes [B
|
2021-07-01 08:54:06 -04:00
|
|
|
FIELD field_31403 BYTES_LENGTH I
|
|
|
|
FIELD field_31404 COPY_BLOCK_SIZE I
|
2021-09-16 19:24:14 -04:00
|
|
|
FIELD field_31405 NIBBLE_BITS I
|
2021-07-01 08:54:06 -04:00
|
|
|
FIELD field_34052 COPY_TIMES I
|
2021-01-03 15:53:34 -05:00
|
|
|
METHOD <init> (I)V
|
|
|
|
ARG 1 size
|
|
|
|
METHOD <init> ([B)V
|
|
|
|
ARG 1 bytes
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_12137 asByteArray ()[B
|
2021-09-16 19:24:14 -04:00
|
|
|
METHOD method_12138 getArrayIndex (I)I
|
2021-07-01 08:54:06 -04:00
|
|
|
ARG 0 i
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_12139 get (III)I
|
2021-09-16 19:24:14 -04:00
|
|
|
COMMENT {@return the integer value of a nibble, in {@code [0, 15]}}
|
2019-02-10 02:49:48 -05:00
|
|
|
ARG 1 x
|
|
|
|
ARG 2 y
|
|
|
|
ARG 3 z
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_12140 getIndex (III)I
|
2019-01-09 11:05:18 -05:00
|
|
|
ARG 1 x
|
|
|
|
ARG 2 y
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_12141 get (I)I
|
2021-01-03 15:53:34 -05:00
|
|
|
ARG 1 index
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_12142 set (II)V
|
|
|
|
ARG 1 index
|
|
|
|
ARG 2 value
|
|
|
|
METHOD method_12144 copy ()Lnet/minecraft/class_2804;
|
|
|
|
METHOD method_12145 set (IIII)V
|
2021-09-16 19:24:14 -04:00
|
|
|
COMMENT Sets the value of a nibble.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>If the {@code value} has bits outside of the lowest 4 set to {@code 1},
|
|
|
|
COMMENT (value is outside of {@code [0, 15]}), the extraneous bits are discarded.
|
2019-02-10 02:49:48 -05:00
|
|
|
ARG 1 x
|
|
|
|
ARG 2 y
|
|
|
|
ARG 3 z
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 4 value
|
|
|
|
METHOD method_12146 isUninitialized ()Z
|
2021-09-16 19:24:14 -04:00
|
|
|
METHOD method_35320 bottomToString (I)Ljava/lang/String;
|
2021-12-15 12:33:40 -05:00
|
|
|
COMMENT {@return a hexadecimal string representation of the {@code y=0} level of
|
2021-09-16 19:24:14 -04:00
|
|
|
COMMENT this array}
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>It is useful for debugging the grid nibble array.
|
|
|
|
ARG 1 unused
|
|
|
|
COMMENT unused
|
|
|
|
METHOD method_37459 occupiesSmallerBits (I)I
|
|
|
|
COMMENT {@return if the nibble at {@code n} is stored in the less
|
|
|
|
COMMENT significant (smaller) 4 bits of the byte in the backing array}
|
2021-07-01 08:54:06 -04:00
|
|
|
ARG 0 i
|