Class NBTListType

java.lang.Object
ca.spottedleaf.dataconverter.types.nbt.NBTListType
All Implemented Interfaces:
ListType

public final class NBTListType extends Object implements ListType
  • Constructor Details

    • NBTListType

      public NBTListType()
    • NBTListType

      public NBTListType(net.kyori.adventure.nbt.ListBinaryTag tag)
    • NBTListType

      public NBTListType(List<Object> entries)
  • Method Details

    • getTypeUtil

      public TypeUtil getTypeUtil()
      Specified by:
      getTypeUtil in interface ListType
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface ListType
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface ListType
      Overrides:
      hashCode in class Object
    • toString

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

      public net.kyori.adventure.nbt.ListBinaryTag getTag()
    • copy

      public ListType copy()
      Specified by:
      copy in interface ListType
    • getType

      protected static ObjectType getType(byte id)
    • getType

      public ObjectType getType()
      Specified by:
      getType in interface ListType
    • size

      public int size()
      Specified by:
      size in interface ListType
    • remove

      public void remove(int index)
      Specified by:
      remove in interface ListType
    • getNumber

      public Number getNumber(int index)
      Specified by:
      getNumber in interface ListType
    • getByte

      public byte getByte(int index)
      Specified by:
      getByte in interface ListType
    • setByte

      public void setByte(int index, byte to)
      Specified by:
      setByte in interface ListType
    • getShort

      public short getShort(int index)
      Specified by:
      getShort in interface ListType
    • setShort

      public void setShort(int index, short to)
      Specified by:
      setShort in interface ListType
    • getInt

      public int getInt(int index)
      Specified by:
      getInt in interface ListType
    • setInt

      public void setInt(int index, int to)
      Specified by:
      setInt in interface ListType
    • getLong

      public long getLong(int index)
      Specified by:
      getLong in interface ListType
    • setLong

      public void setLong(int index, long to)
      Specified by:
      setLong in interface ListType
    • getFloat

      public float getFloat(int index)
      Specified by:
      getFloat in interface ListType
    • setFloat

      public void setFloat(int index, float to)
      Specified by:
      setFloat in interface ListType
    • getDouble

      public double getDouble(int index)
      Specified by:
      getDouble in interface ListType
    • setDouble

      public void setDouble(int index, double to)
      Specified by:
      setDouble in interface ListType
    • getBytes

      public byte[] getBytes(int index)
      Specified by:
      getBytes in interface ListType
    • setBytes

      public void setBytes(int index, byte[] to)
      Specified by:
      setBytes in interface ListType
    • getShorts

      public short[] getShorts(int index)
      Specified by:
      getShorts in interface ListType
    • setShorts

      public void setShorts(int index, short[] to)
      Specified by:
      setShorts in interface ListType
    • getInts

      public int[] getInts(int index)
      Specified by:
      getInts in interface ListType
    • setInts

      public void setInts(int index, int[] to)
      Specified by:
      setInts in interface ListType
    • getLongs

      public long[] getLongs(int index)
      Specified by:
      getLongs in interface ListType
    • setLongs

      public void setLongs(int index, long[] to)
      Specified by:
      setLongs in interface ListType
    • getList

      public ListType getList(int index)
      Specified by:
      getList in interface ListType
    • setList

      public void setList(int index, ListType list)
      Specified by:
      setList in interface ListType
    • getMap

      public MapType<String> getMap(int index)
      Specified by:
      getMap in interface ListType
    • setMap

      public void setMap(int index, MapType<?> to)
      Specified by:
      setMap in interface ListType
    • getString

      public String getString(int index)
      Specified by:
      getString in interface ListType
    • setString

      public void setString(int index, String to)
      Specified by:
      setString in interface ListType
    • addByte

      public void addByte(byte b)
      Specified by:
      addByte in interface ListType
    • addByte

      public void addByte(int index, byte b)
      Specified by:
      addByte in interface ListType
    • addShort

      public void addShort(short s)
      Specified by:
      addShort in interface ListType
    • addShort

      public void addShort(int index, short s)
      Specified by:
      addShort in interface ListType
    • addInt

      public void addInt(int i)
      Specified by:
      addInt in interface ListType
    • addInt

      public void addInt(int index, int i)
      Specified by:
      addInt in interface ListType
    • addLong

      public void addLong(long l)
      Specified by:
      addLong in interface ListType
    • addLong

      public void addLong(int index, long l)
      Specified by:
      addLong in interface ListType
    • addFloat

      public void addFloat(float f)
      Specified by:
      addFloat in interface ListType
    • addFloat

      public void addFloat(int index, float f)
      Specified by:
      addFloat in interface ListType
    • addDouble

      public void addDouble(double d)
      Specified by:
      addDouble in interface ListType
    • addDouble

      public void addDouble(int index, double d)
      Specified by:
      addDouble in interface ListType
    • addByteArray

      public void addByteArray(byte[] arr)
      Specified by:
      addByteArray in interface ListType
    • addByteArray

      public void addByteArray(int index, byte[] arr)
      Specified by:
      addByteArray in interface ListType
    • addShortArray

      public void addShortArray(short[] arr)
      Specified by:
      addShortArray in interface ListType
    • addShortArray

      public void addShortArray(int index, short[] arr)
      Specified by:
      addShortArray in interface ListType
    • addIntArray

      public void addIntArray(int[] arr)
      Specified by:
      addIntArray in interface ListType
    • addIntArray

      public void addIntArray(int index, int[] arr)
      Specified by:
      addIntArray in interface ListType
    • addLongArray

      public void addLongArray(long[] arr)
      Specified by:
      addLongArray in interface ListType
    • addLongArray

      public void addLongArray(int index, long[] arr)
      Specified by:
      addLongArray in interface ListType
    • addList

      public void addList(ListType list)
      Specified by:
      addList in interface ListType
    • addList

      public void addList(int index, ListType list)
      Specified by:
      addList in interface ListType
    • addMap

      public void addMap(MapType<?> map)
      Specified by:
      addMap in interface ListType
    • addMap

      public void addMap(int index, MapType<?> map)
      Specified by:
      addMap in interface ListType
    • addString

      public void addString(String string)
      Specified by:
      addString in interface ListType
    • addString

      public void addString(int index, String string)
      Specified by:
      addString in interface ListType