public class NibbleArray extends Object
| Constructor and Description | 
|---|
NibbleArray(byte[] handle)  | 
NibbleArray(int length)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
actualSize()
Get the actual number of bytes 
 | 
void | 
fill(byte value)
Fill the array with a value 
 | 
byte | 
get(int index)
Get the value at an index 
 | 
byte | 
get(int x,
   int y,
   int z)
Get the value at a desired X, Y, Z 
 | 
byte[] | 
getHandle()
Get the byte array behind this nibble 
 | 
void | 
set(int index,
   int value)
Set a value at an index 
 | 
void | 
set(int x,
   int y,
   int z,
   int value)
Set the value based on an x, y, z 
 | 
void | 
setHandle(byte[] handle)
Copy a byte array into this nibble 
 | 
int | 
size()
The size of this nibble 
 | 
public NibbleArray(int length)
public NibbleArray(byte[] handle)
public byte get(int x,
                int y,
                int z)
x - Block Xy - Block Yz - Block Zpublic byte get(int index)
index - The index to lookuppublic void set(int x,
                int y,
                int z,
                int value)
x - Block Xy - Block Yz - Block Zvalue - Desired Valuepublic void set(int index,
                int value)
index - The index to set the value at.value - The desired valuepublic int size()
public int actualSize()
public void fill(byte value)
value - Value to fill withpublic byte[] getHandle()
public void setHandle(byte[] handle)
handle - The byte array to copy in.Copyright © 2016–2021. All rights reserved.