public class NibbleArrayBase extends Object
Constructor and Description |
---|
NibbleArrayBase() |
NibbleArrayBase(byte[] data) |
Modifier and Type | Method and Description |
---|---|
int |
get(int x,
int y,
int z)
Gets a value from this nibble array
|
byte[] |
getData()
Gets the backing array, which is still referenced.
|
void |
set(int x,
int y,
int z,
int value)
Sets a value in this nibble array
|
byte[] |
toArray()
Allocates a new array and fills it with the contents of this NibbleArray
|
Object |
toHandle()
Creates a new NibbleArray base type with the data contained in this
base
Data is still referenced through |
public NibbleArrayBase(byte[] data)
public NibbleArrayBase()
public byte[] getData()
public byte[] toArray()
public void set(int x, int y, int z, int value)
x
- - coordinatey
- - coordinatez
- - coordinatevalue
- to set topublic int get(int x, int y, int z)
x
- - coordinatey
- - coordinatez
- - coordinatepublic Object toHandle()
Copyright © 2019. All rights reserved.