Package net.minecraft.world.level.chunk
Class DataLayer
java.lang.Object
net.minecraft.world.level.chunk.DataLayer
-
Field Summary
Modifier and TypeFieldDescriptionprotected byte[]
static int
static int
private static int
static int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
private int
get(int p_62571_)
int
get(int p_62561_, int p_62562_, int p_62563_)
private static int
getByteIndex(int p_62579_)
byte[]
getData()
private static int
getIndex(int p_62572_, int p_62573_, int p_62574_)
private static int
getNibbleIndex(int p_182482_)
boolean
isEmpty()
layerToString(int p_156342_)
private void
set(int p_62558_, int p_62559_)
void
set(int p_62565_, int p_62566_, int p_62567_, int p_62568_)
toString()
-
Field Details
-
LAYER_COUNT
public static final int LAYER_COUNT- See Also:
- Constant Field Values
-
LAYER_SIZE
public static final int LAYER_SIZE- See Also:
- Constant Field Values
-
SIZE
public static final int SIZE- See Also:
- Constant Field Values
-
NIBBLE_SIZE
private static final int NIBBLE_SIZE- See Also:
- Constant Field Values
-
data
@Nullable protected byte[] data
-
-
Constructor Details
-
DataLayer
public DataLayer() -
DataLayer
public DataLayer(byte[] p_62556_) -
DataLayer
protected DataLayer(int p_62554_)
-
-
Method Details
-
get
public int get(int p_62561_, int p_62562_, int p_62563_) -
set
public void set(int p_62565_, int p_62566_, int p_62567_, int p_62568_) -
getIndex
private static int getIndex(int p_62572_, int p_62573_, int p_62574_) -
get
private int get(int p_62571_) -
set
private void set(int p_62558_, int p_62559_) -
getNibbleIndex
private static int getNibbleIndex(int p_182482_) -
getByteIndex
private static int getByteIndex(int p_62579_) -
getData
public byte[] getData() -
copy
-
toString
-
layerToString
-
isEmpty
public boolean isEmpty()
-