Class NList

java.lang.Object
beer.devs.fastnbt.nms.nbt.NList

public class NList extends Object
Version without boxing and safety checks and limits inheritance.
  • Field Details

    • handler

      protected IListTag handler
    • handle

      protected Object handle
  • Constructor Details

    • NList

      public NList()
    • NList

      public NList(Object handle)
  • Method Details

    • newInstance

      public static Object newInstance()
    • ofItemStackList

      public static NList ofItemStackList(List<org.bukkit.inventory.ItemStack> list)
    • ofShortList

      public static NList ofShortList(List<Short> list)
    • ofIntList

      public static NList ofIntList(List<Integer> list)
    • ofIntArrayList

      public static NList ofIntArrayList(List<int[]> list)
    • ofLongArrayList

      public static NList ofLongArrayList(List<long[]> list)
    • ofDouble

      public static NList ofDouble(List<Double> list)
    • ofFloat

      public static NList ofFloat(List<Float> list)
    • ofString

      public static NList ofString(List<String> list)
    • getInternal

      public Object getInternal()
    • size

      public int size()
    • getRaw

      @Internal public Object getRaw(int i)
    • getCompound

      @Nullable public @Nullable NCompound getCompound(int i)
    • getOrAddCompound

      public NCompound getOrAddCompound(int i)
    • getItemStack

      @Nullable public @Nullable org.bukkit.inventory.ItemStack getItemStack(int i)
    • getList

      @Nullable public @Nullable NList getList(int i)
    • getOrAddList

      public NList getOrAddList(int i)
    • 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

      public String getString(int i)
    • addRaw

      @Internal protected void addRaw(Object any)
    • addCompound

      public <N extends NCompound> void addCompound(int i, N nCompound)
      Adds a NCompound at a specified index.
    • addCompound

      public <N extends NCompound> void addCompound(N nCompound)
      Adds a NCompound at the end of the list.
    • addCompound

      public NCompound addCompound(int i)
      Adds a new NCompound at a specified index.
    • addCompound

      public NCompound 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

      public NList addList(int i, NList list)
      Adds a NList at a specified index.
    • addList

      public NList addList(NList list)
      Adds a NList at the end of the list.
    • addList

      public NList addList(int i)
      Adds a new NList at a specified index.
    • addList

      public NList 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

      public void addString(String value)
      Adds a String at the end of the list.
    • addString

      public void addString(int i, String value)
      Adds a String at a specified index.
    • addList

      public void addList(List<?> value)
      Adds a List at the end of the list.
    • addList

      public void addList(int i, List<?> value)
      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

      @Internal protected void setRaw(int i, Object any)
    • setItemStack

      public void setItemStack(int i, org.bukkit.inventory.ItemStack bukkitItemStack)
      Replaces the ItemStack at a specified index.
    • setCompound

      public <N extends NCompound> void setCompound(int i, N nCompound)
      Replaces the ItemStack at a specified index.
    • setList

      public void setList(int i, List<?> value)
      Replaces the List at a specified index.
    • setList

      public void setList(int i, NList list)
      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

      public void setString(int i, String value)
      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

      public Object remove(int i)
      Removed the element at a specified index.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isEmpty

      public boolean isEmpty()
    • compoundIterator

      @NotNull public @NotNull Iterator<NCompound> compoundIterator()
    • stringIterator

      @NotNull public @NotNull Iterator<String> stringIterator()
    • itemIterator

      @NotNull public @NotNull Iterator<org.bukkit.inventory.ItemStack> itemIterator()
    • listIterator

      @NotNull public @NotNull Iterator<NList> listIterator()
    • shortIterator

      @NotNull public @NotNull Iterator<Short> shortIterator()
    • intIterator

      @NotNull public @NotNull Iterator<Integer> intIterator()
    • intArrayIterator

      @NotNull public @NotNull Iterator<int[]> intArrayIterator()