Package net.minecraft.world.level.chunk
Class DataLayer
java.lang.Object
net.minecraft.world.level.chunk.DataLayer
-
Field Summary
Modifier and TypeFieldDescriptionprotected byte[]
private int
static final int
static final int
private static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
void
fill
(int p_285142_) 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
isDefinitelyFilledWith
(int p_281763_) boolean
boolean
isEmpty()
layerToString
(int p_156342_) private static byte
packFilled
(int p_282176_) 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:
-
LAYER_SIZE
public static final int LAYER_SIZE- See Also:
-
SIZE
public static final int SIZE- See Also:
-
NIBBLE_SIZE
private static final int NIBBLE_SIZE- See Also:
-
data
@Nullable protected byte[] data -
defaultValue
private int defaultValue
-
-
Constructor Details
-
DataLayer
public DataLayer() -
DataLayer
public DataLayer(int p_62554_) -
DataLayer
public DataLayer(byte[] p_62556_)
-
-
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_) -
fill
public void fill(int p_285142_) -
packFilled
private static byte packFilled(int p_282176_) -
getData
public byte[] getData() -
copy
-
toString
-
layerToString
-
isDefinitelyHomogenous
public boolean isDefinitelyHomogenous() -
isDefinitelyFilledWith
public boolean isDefinitelyFilledWith(int p_281763_) -
isEmpty
public boolean isEmpty()
-