Class ArrayListDeque<T>

java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
net.minecraft.util.collection.ArrayListDeque<T>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, Deque<T>, List<T>, Queue<T>, RandomAccess, SequencedCollection<T>, ListDeque<T>

public class ArrayListDeque<T> extends AbstractList<T> implements ListDeque<T>
See Also:
Mappings:
Namespace Name
named net/minecraft/util/collection/ArrayListDeque
intermediary net/minecraft/class_8623
official ayr
  • Field Details

    • MISSING

      private static final int MISSING
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MISSING Lnet/minecraft/util/collection/ArrayListDeque;MISSING:I
      intermediary field_45067 Lnet/minecraft/class_8623;field_45067:I
      official a Layr;a:I
    • array

      private Object[] array
      Mappings:
      Namespace Name Mixin selector
      named array Lnet/minecraft/util/collection/ArrayListDeque;array:[Ljava/lang/Object;
      intermediary field_45068 Lnet/minecraft/class_8623;field_45068:[Ljava/lang/Object;
      official b Layr;b:[Ljava/lang/Object;
    • startIndex

      private int startIndex
      Mappings:
      Namespace Name Mixin selector
      named startIndex Lnet/minecraft/util/collection/ArrayListDeque;startIndex:I
      intermediary field_45069 Lnet/minecraft/class_8623;field_45069:I
      official c Layr;c:I
    • size

      private int size
      Mappings:
      Namespace Name Mixin selector
      named size Lnet/minecraft/util/collection/ArrayListDeque;size:I
      intermediary field_45070 Lnet/minecraft/class_8623;field_45070:I
      official d Layr;d:I
  • Constructor Details

    • ArrayListDeque

      public ArrayListDeque()
    • ArrayListDeque

      public ArrayListDeque(int size)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/collection/ArrayListDeque;<init>(I)V
      intermediary <init> Lnet/minecraft/class_8623;<init>(I)V
      official <init> Layr;<init>(I)V
  • Method Details

    • size

      public int size()
      Specified by:
      size in interface Collection<T>
      Specified by:
      size in interface Deque<T>
      Specified by:
      size in interface List<T>
      Specified by:
      size in class AbstractCollection<T>
    • getArrayLength

      public int getArrayLength()
      Mappings:
      Namespace Name Mixin selector
      named getArrayLength Lnet/minecraft/util/collection/ArrayListDeque;getArrayLength()I
      intermediary method_52450 Lnet/minecraft/class_8623;method_52450()I
      official a Layr;a()I
    • wrap

      private int wrap(int index)
      Mappings:
      Namespace Name Mixin selector
      named wrap Lnet/minecraft/util/collection/ArrayListDeque;wrap(I)I
      intermediary method_52451 Lnet/minecraft/class_8623;method_52451(I)I
      official a Layr;a(I)I
    • get

      public T get(int index)
      Specified by:
      get in interface List<T>
      Specified by:
      get in class AbstractList<T>
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/util/collection/ArrayListDeque;get(I)Ljava/lang/Object;
      intermediary get Lnet/minecraft/class_8623;get(I)Ljava/lang/Object;
      official get Layr;get(I)Ljava/lang/Object;
    • checkBounds

      private static void checkBounds(int start, int end)
      Mappings:
      Namespace Name Mixin selector
      named checkBounds Lnet/minecraft/util/collection/ArrayListDeque;checkBounds(II)V
      intermediary method_52452 Lnet/minecraft/class_8623;method_52452(II)V
      official a Layr;a(II)V
    • checkBounds

      private void checkBounds(int index)
      Mappings:
      Namespace Name Mixin selector
      named checkBounds Lnet/minecraft/util/collection/ArrayListDeque;checkBounds(I)V
      intermediary method_52455 Lnet/minecraft/class_8623;method_52455(I)V
      official b Layr;b(I)V
    • getRaw

      private T getRaw(int index)
      Mappings:
      Namespace Name Mixin selector
      named getRaw Lnet/minecraft/util/collection/ArrayListDeque;getRaw(I)Ljava/lang/Object;
      intermediary method_52456 Lnet/minecraft/class_8623;method_52456(I)Ljava/lang/Object;
      official c Layr;c(I)Ljava/lang/Object;
    • set

      public T set(int index, T value)
      Specified by:
      set in interface List<T>
      Overrides:
      set in class AbstractList<T>
      Mappings:
      Namespace Name Mixin selector
      named set Lnet/minecraft/util/collection/ArrayListDeque;set(ILjava/lang/Object;)Ljava/lang/Object;
      intermediary set Lnet/minecraft/class_8623;set(ILjava/lang/Object;)Ljava/lang/Object;
      official set Layr;set(ILjava/lang/Object;)Ljava/lang/Object;
    • add

      public void add(int index, T value)
      Specified by:
      add in interface List<T>
      Overrides:
      add in class AbstractList<T>
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/util/collection/ArrayListDeque;add(ILjava/lang/Object;)V
      intermediary add Lnet/minecraft/class_8623;add(ILjava/lang/Object;)V
      official add Layr;add(ILjava/lang/Object;)V
    • enlarge

      private void enlarge()
      Mappings:
      Namespace Name Mixin selector
      named enlarge Lnet/minecraft/util/collection/ArrayListDeque;enlarge()V
      intermediary method_52454 Lnet/minecraft/class_8623;method_52454()V
      official c Layr;c()V
    • remove

      public T remove(int index)
      Specified by:
      remove in interface List<T>
      Overrides:
      remove in class AbstractList<T>
      Mappings:
      Namespace Name Mixin selector
      named remove Lnet/minecraft/util/collection/ArrayListDeque;remove(I)Ljava/lang/Object;
      intermediary remove Lnet/minecraft/class_8623;remove(I)Ljava/lang/Object;
      official remove Layr;remove(I)Ljava/lang/Object;
    • removeIf

      public boolean removeIf(Predicate<? super T> predicate)
      Specified by:
      removeIf in interface Collection<T>
      Mappings:
      Namespace Name Mixin selector
      named removeIf Lnet/minecraft/util/collection/ArrayListDeque;removeIf(Ljava/util/function/Predicate;)Z
      intermediary removeIf Lnet/minecraft/class_8623;removeIf(Ljava/util/function/Predicate;)Z
      official removeIf Layr;removeIf(Ljava/util/function/Predicate;)Z
    • copyTo

      private void copyTo(Object[] array, int size)
      Mappings:
      Namespace Name Mixin selector
      named copyTo Lnet/minecraft/util/collection/ArrayListDeque;copyTo([Ljava/lang/Object;I)V
      intermediary method_52453 Lnet/minecraft/class_8623;method_52453([Ljava/lang/Object;I)V
      official a Layr;a([Ljava/lang/Object;I)V
    • replaceAll

      public void replaceAll(UnaryOperator<T> mapper)
      Specified by:
      replaceAll in interface List<T>
      Mappings:
      Namespace Name Mixin selector
      named replaceAll Lnet/minecraft/util/collection/ArrayListDeque;replaceAll(Ljava/util/function/UnaryOperator;)V
      intermediary replaceAll Lnet/minecraft/class_8623;replaceAll(Ljava/util/function/UnaryOperator;)V
      official replaceAll Layr;replaceAll(Ljava/util/function/UnaryOperator;)V
    • forEach

      public void forEach(Consumer<? super T> consumer)
      Specified by:
      forEach in interface Iterable<T>
      Mappings:
      Namespace Name Mixin selector
      named forEach Lnet/minecraft/util/collection/ArrayListDeque;forEach(Ljava/util/function/Consumer;)V
      intermediary forEach Lnet/minecraft/class_8623;forEach(Ljava/util/function/Consumer;)V
      official forEach Layr;forEach(Ljava/util/function/Consumer;)V
    • addFirst

      public void addFirst(T value)
      Specified by:
      addFirst in interface Deque<T>
      Specified by:
      addFirst in interface List<T>
      Specified by:
      addFirst in interface ListDeque<T>
      Specified by:
      addFirst in interface SequencedCollection<T>
      Mappings:
      Namespace Name Mixin selector
      named addFirst Lnet/minecraft/util/collection/ArrayListDeque;addFirst(Ljava/lang/Object;)V
      intermediary addFirst Lnet/minecraft/class_8623;addFirst(Ljava/lang/Object;)V
      official addFirst Layr;addFirst(Ljava/lang/Object;)V
    • addLast

      public void addLast(T value)
      Specified by:
      addLast in interface Deque<T>
      Specified by:
      addLast in interface List<T>
      Specified by:
      addLast in interface ListDeque<T>
      Specified by:
      addLast in interface SequencedCollection<T>
      Mappings:
      Namespace Name Mixin selector
      named addLast Lnet/minecraft/util/collection/ArrayListDeque;addLast(Ljava/lang/Object;)V
      intermediary addLast Lnet/minecraft/class_8623;addLast(Ljava/lang/Object;)V
      official addLast Layr;addLast(Ljava/lang/Object;)V
    • offerFirst

      public boolean offerFirst(T value)
      Specified by:
      offerFirst in interface Deque<T>
      Mappings:
      Namespace Name Mixin selector
      named offerFirst Lnet/minecraft/util/collection/ArrayListDeque;offerFirst(Ljava/lang/Object;)Z
      intermediary offerFirst Lnet/minecraft/class_8623;offerFirst(Ljava/lang/Object;)Z
      official offerFirst Layr;offerFirst(Ljava/lang/Object;)Z
    • offerLast

      public boolean offerLast(T value)
      Specified by:
      offerLast in interface Deque<T>
      Mappings:
      Namespace Name Mixin selector
      named offerLast Lnet/minecraft/util/collection/ArrayListDeque;offerLast(Ljava/lang/Object;)Z
      intermediary offerLast Lnet/minecraft/class_8623;offerLast(Ljava/lang/Object;)Z
      official offerLast Layr;offerLast(Ljava/lang/Object;)Z
    • removeFirst

      public T removeFirst()
      Specified by:
      removeFirst in interface Deque<T>
      Specified by:
      removeFirst in interface List<T>
      Specified by:
      removeFirst in interface ListDeque<T>
      Specified by:
      removeFirst in interface SequencedCollection<T>
    • removeLast

      public T removeLast()
      Specified by:
      removeLast in interface Deque<T>
      Specified by:
      removeLast in interface List<T>
      Specified by:
      removeLast in interface ListDeque<T>
      Specified by:
      removeLast in interface SequencedCollection<T>
    • reversed

      public ListDeque<T> reversed()
      Specified by:
      reversed in interface Deque<T>
      Specified by:
      reversed in interface List<T>
      Specified by:
      reversed in interface ListDeque<T>
      Specified by:
      reversed in interface SequencedCollection<T>
      Mappings:
      Namespace Name Mixin selector
      named reversed Lnet/minecraft/util/collection/ArrayListDeque;reversed()Lnet/minecraft/util/collection/ListDeque;
      intermediary method_59513 Lnet/minecraft/class_8623;method_59513()Lnet/minecraft/class_9634;
      official method_59513 Layr;method_59513()Lbaa;
    • pollFirst

      @Nullable public T pollFirst()
      Specified by:
      pollFirst in interface Deque<T>
    • pollLast

      @Nullable public T pollLast()
      Specified by:
      pollLast in interface Deque<T>
    • getFirst

      public T getFirst()
      Specified by:
      getFirst in interface Deque<T>
      Specified by:
      getFirst in interface List<T>
      Specified by:
      getFirst in interface ListDeque<T>
      Specified by:
      getFirst in interface SequencedCollection<T>
    • getLast

      public T getLast()
      Specified by:
      getLast in interface Deque<T>
      Specified by:
      getLast in interface List<T>
      Specified by:
      getLast in interface ListDeque<T>
      Specified by:
      getLast in interface SequencedCollection<T>
    • peekFirst

      @Nullable public T peekFirst()
      Specified by:
      peekFirst in interface Deque<T>
    • peekLast

      @Nullable public T peekLast()
      Specified by:
      peekLast in interface Deque<T>
    • removeFirstOccurrence

      public boolean removeFirstOccurrence(Object value)
      Specified by:
      removeFirstOccurrence in interface Deque<T>
      Mappings:
      Namespace Name Mixin selector
      named removeFirstOccurrence Lnet/minecraft/util/collection/ArrayListDeque;removeFirstOccurrence(Ljava/lang/Object;)Z
      intermediary removeFirstOccurrence Lnet/minecraft/class_8623;removeFirstOccurrence(Ljava/lang/Object;)Z
      official removeFirstOccurrence Layr;removeFirstOccurrence(Ljava/lang/Object;)Z
    • removeLastOccurrence

      public boolean removeLastOccurrence(Object value)
      Specified by:
      removeLastOccurrence in interface Deque<T>
      Mappings:
      Namespace Name Mixin selector
      named removeLastOccurrence Lnet/minecraft/util/collection/ArrayListDeque;removeLastOccurrence(Ljava/lang/Object;)Z
      intermediary removeLastOccurrence Lnet/minecraft/class_8623;removeLastOccurrence(Ljava/lang/Object;)Z
      official removeLastOccurrence Layr;removeLastOccurrence(Ljava/lang/Object;)Z
    • descendingIterator

      public Iterator<T> descendingIterator()
      Specified by:
      descendingIterator in interface Deque<T>