Class CollectionNBT<T extends INBT>

  • All Implemented Interfaces:
    java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, INBT
    Direct Known Subclasses:
    ByteArrayNBT, IntArrayNBT, ListNBT, LongArrayNBT

    public abstract class CollectionNBT<T extends INBT>
    extends java.util.AbstractList<T>
    implements INBT
    • Constructor Summary

      Constructors 
      Constructor Description
      CollectionNBT()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract void add​(int p_add_1_, T p_add_2_)  
      abstract boolean addTag​(int p_218660_1_, INBT p_218660_2_)  
      abstract byte getElementType()  
      abstract T remove​(int p_remove_1_)  
      abstract T set​(int p_set_1_, T p_set_2_)  
      abstract boolean setTag​(int p_218659_1_, INBT p_218659_2_)  
      • Methods inherited from class java.util.AbstractList

        add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
      • Methods inherited from class java.util.AbstractCollection

        addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArray
    • Constructor Detail

      • CollectionNBT

        public CollectionNBT()
    • Method Detail

      • set

        public abstract T set​(int p_set_1_,
                              T p_set_2_)
        Specified by:
        set in interface java.util.List<T extends INBT>
        Overrides:
        set in class java.util.AbstractList<T extends INBT>
      • add

        public abstract void add​(int p_add_1_,
                                 T p_add_2_)
        Specified by:
        add in interface java.util.List<T extends INBT>
        Overrides:
        add in class java.util.AbstractList<T extends INBT>
      • remove

        public abstract T remove​(int p_remove_1_)
        Specified by:
        remove in interface java.util.List<T extends INBT>
        Overrides:
        remove in class java.util.AbstractList<T extends INBT>
      • setTag

        public abstract boolean setTag​(int p_218659_1_,
                                       INBT p_218659_2_)
      • addTag

        public abstract boolean addTag​(int p_218660_1_,
                                       INBT p_218660_2_)
      • getElementType

        public abstract byte getElementType()