Package net.minecraft.world.chunk
Class NibbleArray
- java.lang.Object
-
- net.minecraft.world.chunk.NibbleArray
-
public class NibbleArray extends java.lang.Object
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Constructor Summary
Constructors Constructor Description NibbleArray()
NibbleArray(byte[] storageArray)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
get(int x, int y, int z)
+ Returns the nibble of data corresponding to the passed in x, y, z.byte[]
getData()
int
getFromIndex(int index)
void
set(int x, int y, int z, int value)
+ Arguments are x, y, z, val.void
setIndex(int index, int value)
-
-
-
Method Detail
-
get
public int get(int x, int y, int z)
+ Returns the nibble of data corresponding to the passed in x, y, z. y is at most 6 bits, z is at most 4.
-
set
public void set(int x, int y, int z, int value)
+ Arguments are x, y, z, val. Sets the nibble of data at x << 11 | z << 7 | y to val.
-
getFromIndex
public int getFromIndex(int index)
-
setIndex
public void setIndex(int index, int value)
-
getData
public byte[] getData()
-
-