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 TypeMethodDescriptionvoidaddByte(byte value) Adds a byte at the end of the list.voidaddByte(int i, byte value) Adds a byte at a specified index.voidaddByteArray(byte[] value) Adds a byte[] at the end of the list.voidaddByteArray(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.voidaddDouble(double value) Adds a double at the end of the list.voidaddDouble(int i, double value) Adds a double at a specified index.voidaddFloat(float value) Adds a float at the end of the list.voidaddFloat(int i, float value) Adds a float at a specified index.voidaddInt(int value) Adds an int at the end of the list.voidaddInt(int i, int value) Adds an int at a specified index.voidaddIntArray(int[] value) Adds an int[] at the end of the list.voidaddIntArray(int i, int[] value) Adds an int[] at a specified index.voidaddItemStack(int i, org.bukkit.inventory.ItemStack bukkitItemStack) Adds a ItemStack at a specified index.voidaddItemStack(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.voidAdds a List at a specified index.Adds a NList at the end of the list.voidAdds a List at the end of the list.voidaddLong(int i, long value) Adds a long at a specified index.voidaddLong(long value) Adds a long at the end of the list.voidaddLongArray(int i, long[] value) Adds a long[] at a specified index.voidaddLongArray(long[] value) Adds a long[] at the end of the list.protected voidvoidaddShort(int i, short value) Adds a short at a specified index.voidaddShort(short value) Adds a short at the end of the list.voidAdds a String at a specified index.voidAdds a String at the end of the list.shortgetByte(int i) byte @Nullable []getByteArray(int i) @Nullable NCompoundgetCompound(int i) doublegetDouble(int i) floatgetFloat(int i) intgetInt(int i) int @Nullable []getIntArray(int i) @Nullable org.bukkit.inventory.ItemStackgetItemStack(int i) @Nullable NListgetList(int i) long @Nullable []getLongArray(int i) getOrAddCompound(int i) getOrAddList(int i) getRaw(int i) shortgetShort(int i) getString(int i) @NotNull Iterator<int[]> booleanisEmpty()@NotNull Iterator<org.bukkit.inventory.ItemStack> static Objectstatic NListstatic NListstatic NListofIntArrayList(List<int[]> list) static NListstatic NListofItemStackList(List<org.bukkit.inventory.ItemStack> list) static NListofLongArrayList(List<long[]> list) static NListofShortList(List<Short> list) static NListremove(int i) Removed the element at a specified index.voidsetByte(int i, byte value) Replaces the byte at a specified index.voidsetByteArray(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.voidsetDouble(int i, double value) Replaces the double at a specified index.voidsetFloat(int i, float value) Replaces the float at a specified index.voidsetInt(int i, int value) Replaces the int at a specified index.voidsetIntArray(int i, int[] value) Replaces the int[] at a specified index.voidsetItemStack(int i, org.bukkit.inventory.ItemStack bukkitItemStack) Replaces the ItemStack at a specified index.voidReplaces the NList at a specified index.voidReplaces the List at a specified index.voidsetLong(int i, long value) Replaces the long at a specified index.voidsetLongArray(int i, long[] value) Replaces the long[] at a specified index.protected voidvoidsetShort(int i, short value) Replaces the short at a specified index.voidReplaces the String at a specified index.intsize()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
-