|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.morbz.minecraft.world.NibbleArray
public class NibbleArray
This is an array for nibbles (4-bit values).
Constructor Summary | |
---|---|
NibbleArray(int size)
Creates a new instance. |
Method Summary | |
---|---|
byte |
get(int index)
Gets an element. |
byte[] |
getBytes()
Returns the byte array that holds the nibble values. |
void |
set(int index,
byte value)
Sets an element. |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NibbleArray(int size)
size
- The number elements that the array can holdMethod Detail |
---|
public void set(int index, byte value)
index
- The index of the elementvalue
- The value of the elementpublic byte get(int index)
index
- The index of the element
public int size()
public byte[] getBytes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |