Package beer.devs.fastnbt.nms.nbt
Class NList
java.lang.Object
beer.devs.fastnbt.nms.nbt.NList
Version without boxing and safety checks and limits inheritance.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addByte
(byte value) Adds a byte at the end of the list.void
addByte
(int i, byte value) Adds a byte at a specified index.void
addByteArray
(byte[] value) Adds a byte[] at the end of the list.void
addByteArray
(int i, byte[] value) Adds a byte[] at a specified index.Adds a new NCompound at the end of the list.addCompound
(int i) Adds a new NCompound at a specified index.<N extends NCompound>
voidaddCompound
(int i, N nCompound) Adds a NCompound at a specified index.<N extends NCompound>
voidaddCompound
(N nCompound) Adds a NCompound at the end of the list.void
addDouble
(double value) Adds a double at the end of the list.void
addDouble
(int i, double value) Adds a double at a specified index.void
addFloat
(float value) Adds a float at the end of the list.void
addFloat
(int i, float value) Adds a float at a specified index.void
addInt
(int value) Adds an int at the end of the list.void
addInt
(int i, int value) Adds an int at a specified index.void
addIntArray
(int[] value) Adds an int[] at the end of the list.void
addIntArray
(int i, int[] value) Adds an int[] at a specified index.void
addItemStack
(int i, org.bukkit.inventory.ItemStack bukkitItemStack) Adds a ItemStack at a specified index.void
addItemStack
(org.bukkit.inventory.ItemStack bukkitItemStack) Adds a ItemStack at the end of the list.addList()
Adds a new NList at the end of the list.addList
(int i) Adds a new NList at a specified index.Adds a NList at a specified index.void
Adds a List at a specified index.Adds a NList at the end of the list.void
Adds a List at the end of the list.void
addLong
(int i, long value) Adds a long at a specified index.void
addLong
(long value) Adds a long at the end of the list.void
addLongArray
(int i, long[] value) Adds a long[] at a specified index.void
addLongArray
(long[] value) Adds a long[] at the end of the list.protected void
void
addShort
(int i, short value) Adds a short at a specified index.void
addShort
(short value) Adds a short at the end of the list.void
Adds a String at a specified index.void
Adds a String at the end of the list.short
getByte
(int i) byte @Nullable []
getByteArray
(int i) @Nullable NCompound
getCompound
(int i) double
getDouble
(int i) float
getFloat
(int i) int
getInt
(int i) int @Nullable []
getIntArray
(int i) @Nullable org.bukkit.inventory.ItemStack
getItemStack
(int i) @Nullable NList
getList
(int i) long @Nullable []
getLongArray
(int i) getOrAddCompound
(int i) getOrAddList
(int i) getRaw
(int i) short
getShort
(int i) getString
(int i) @NotNull Iterator
<int[]> boolean
isEmpty()
@NotNull Iterator
<org.bukkit.inventory.ItemStack> static Object
static NList
static NList
static NList
ofIntArrayList
(List<int[]> list) static NList
static NList
ofItemStackList
(List<org.bukkit.inventory.ItemStack> list) static NList
ofLongArrayList
(List<long[]> list) static NList
ofShortList
(List<Short> list) static NList
remove
(int i) Removed the element at a specified index.void
setByte
(int i, byte value) Replaces the byte at a specified index.void
setByteArray
(int i, byte[] value) Replaces the byte[] at a specified index.<N extends NCompound>
voidsetCompound
(int i, N nCompound) Replaces the ItemStack at a specified index.void
setDouble
(int i, double value) Replaces the double at a specified index.void
setFloat
(int i, float value) Replaces the float at a specified index.void
setInt
(int i, int value) Replaces the int at a specified index.void
setIntArray
(int i, int[] value) Replaces the int[] at a specified index.void
setItemStack
(int i, org.bukkit.inventory.ItemStack bukkitItemStack) Replaces the ItemStack at a specified index.void
Replaces the NList at a specified index.void
Replaces the List at a specified index.void
setLong
(int i, long value) Replaces the long at a specified index.void
setLongArray
(int i, long[] value) Replaces the long[] at a specified index.protected void
void
setShort
(int i, short value) Replaces the short at a specified index.void
Replaces the String at a specified index.int
size()
toString()
-
Field Details
-
handler
-
handle
-
-
Constructor Details
-
NList
public NList() -
NList
-
-
Method Details
-
newInstance
-
ofItemStackList
-
ofShortList
-
ofIntList
-
ofIntArrayList
-
ofLongArrayList
-
ofDouble
-
ofFloat
-
ofString
-
getInternal
-
size
public int size() -
getRaw
-
getCompound
-
getOrAddCompound
-
getItemStack
@Nullable public @Nullable org.bukkit.inventory.ItemStack getItemStack(int i) -
getList
-
getOrAddList
-
getByte
public short getByte(int i) -
getShort
public short getShort(int i) -
getInt
public int getInt(int i) -
getByteArray
public byte @Nullable [] getByteArray(int i) -
getIntArray
public int @Nullable [] getIntArray(int i) -
getLongArray
public long @Nullable [] getLongArray(int i) -
getDouble
public double getDouble(int i) -
getFloat
public float getFloat(int i) -
getString
-
addRaw
-
addCompound
Adds a NCompound at a specified index. -
addCompound
Adds a NCompound at the end of the list. -
addCompound
Adds a new NCompound at a specified index. -
addCompound
Adds a new NCompound at the end of the list. -
addItemStack
public void addItemStack(int i, org.bukkit.inventory.ItemStack bukkitItemStack) Adds a ItemStack at a specified index. -
addItemStack
public void addItemStack(org.bukkit.inventory.ItemStack bukkitItemStack) Adds a ItemStack at the end of the list. -
addList
Adds a NList at a specified index. -
addList
Adds a NList at the end of the list. -
addList
Adds a new NList at a specified index. -
addList
Adds a new NList at the end of the list. -
addByte
public void addByte(byte value) Adds a byte at the end of the list. -
addByte
public void addByte(int i, byte value) Adds a byte at a specified index. -
addShort
public void addShort(short value) Adds a short at the end of the list. -
addShort
public void addShort(int i, short value) Adds a short at a specified index. -
addInt
public void addInt(int value) Adds an int at the end of the list. -
addInt
public void addInt(int i, int value) Adds an int at a specified index. -
addLong
public void addLong(long value) Adds a long at the end of the list. -
addLong
public void addLong(int i, long value) Adds a long at a specified index. -
addFloat
public void addFloat(float value) Adds a float at the end of the list. -
addFloat
public void addFloat(int i, float value) Adds a float at a specified index. -
addDouble
public void addDouble(double value) Adds a double at the end of the list. -
addDouble
public void addDouble(int i, double value) Adds a double at a specified index. -
addByteArray
public void addByteArray(byte[] value) Adds a byte[] at the end of the list. -
addByteArray
public void addByteArray(int i, byte[] value) Adds a byte[] at a specified index. -
addString
Adds a String at the end of the list. -
addString
Adds a String at a specified index. -
addList
Adds a List at the end of the list. -
addList
Adds a List at a specified index. -
addIntArray
public void addIntArray(int[] value) Adds an int[] at the end of the list. -
addIntArray
public void addIntArray(int i, int[] value) Adds an int[] at a specified index. -
addLongArray
public void addLongArray(long[] value) Adds a long[] at the end of the list. -
addLongArray
public void addLongArray(int i, long[] value) Adds a long[] at a specified index. -
setRaw
-
setItemStack
public void setItemStack(int i, org.bukkit.inventory.ItemStack bukkitItemStack) Replaces the ItemStack at a specified index. -
setCompound
Replaces the ItemStack at a specified index. -
setList
Replaces the List at a specified index. -
setList
Replaces the NList at a specified index. -
setByte
public void setByte(int i, byte value) Replaces the byte at a specified index. -
setShort
public void setShort(int i, short value) Replaces the short at a specified index. -
setInt
public void setInt(int i, int value) Replaces the int at a specified index. -
setLong
public void setLong(int i, long value) Replaces the long at a specified index. -
setFloat
public void setFloat(int i, float value) Replaces the float at a specified index. -
setDouble
public void setDouble(int i, double value) Replaces the double at a specified index. -
setString
Replaces the String at a specified index. -
setByteArray
public void setByteArray(int i, byte[] value) Replaces the byte[] at a specified index. -
setIntArray
public void setIntArray(int i, int[] value) Replaces the int[] at a specified index. -
setLongArray
public void setLongArray(int i, long[] value) Replaces the long[] at a specified index. -
remove
Removed the element at a specified index. -
toString
-
isEmpty
public boolean isEmpty() -
compoundIterator
-
stringIterator
-
itemIterator
-
listIterator
-
shortIterator
-
intIterator
-
intArrayIterator
-