Files

1.9 KiB

INBTList.toArray

← INBTList · ← Master

Parça 1/3 · sonraki

toArray()

java.lang.Object[] Turns a NBT list into a Java array.

Methods inherited from interface mchorse.mappet.api.scripts.user.nbt.INBT combine, copy, isCompound, isEmpty, isList, isSame, size, stringify

Method Detail getNBTTagList

NBTTagList getNBTTagList()

Get raw NBT tag list. BEWARE: you need to know the MCP mappings in order to directly call methods on this instance!

has

boolean has(int index)

Check whether this list has an element at given index (instead of checking manually for index to be within 0..size-1 range)

remove

void remove(int index)

Remove an element at given index

getByte

byte getByte(int index)

Get byte (8-bit integer) value at given index

setByte

void setByte(int index, byte value)

Set byte (8-bit integer) value at given index

addByte

void addByte(byte value)

Add byte (8-bit integer) value at the end of the list

getShort

short getShort(int index)

Get short (16-bit integer) value at given index

setShort

void setShort(int index, short value)

Set short (16-bit integer) value at given index

addShort

void addShort(short value)

Add short (16-bit integer) value at the end of the list

getInt

int getInt(int index)

Get integer (32-bit integer) value at given index

setInt

void setInt(int index, int value)

Set integer (32-bit integer) value at given index

addInt

void addInt(int value)

Add integer (32-bit integer) value at the end of the list

getLong

long getLong(int index)

Get long (64-bit integer) value at given index

setLong

void setLong(int index, long value)

Set long (64-bit integer) value at given index

addLong

void addLong(long value)

Add long (64-bit integer) value at the end of the list

getFloat