Class CollectionTag<T extends Tag>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
net.minecraft.nbt.CollectionTag<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>, Tag
Direct Known Subclasses:
ByteArrayTag, IntArrayTag, ListTag, LongArrayTag

public abstract class CollectionTag<T extends Tag> extends AbstractList<T> implements Tag
  • Constructor Details

    • CollectionTag

      public CollectionTag()
  • Method Details

    • set

      public abstract T set(int p_128318_, T p_128319_)
      Specified by:
      set in interface List<T extends Tag>
      Overrides:
      set in class AbstractList<T extends Tag>
    • add

      public abstract void add(int p_128315_, T p_128316_)
      Specified by:
      add in interface List<T extends Tag>
      Overrides:
      add in class AbstractList<T extends Tag>
    • remove

      public abstract T remove(int p_128313_)
      Specified by:
      remove in interface List<T extends Tag>
      Overrides:
      remove in class AbstractList<T extends Tag>
    • setTag

      public abstract boolean setTag(int p_128305_, Tag p_128306_)
    • addTag

      public abstract boolean addTag(int p_128310_, Tag p_128311_)
    • getElementType

      public abstract byte getElementType()