Class ArrayListDeque.ReversedWrapper

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

private class ArrayListDeque.ReversedWrapper extends AbstractList<T> implements ListDeque<T>
Mappings:
Namespace Name
named net/minecraft/util/collection/ArrayListDeque$ReversedWrapper
intermediary net/minecraft/class_8623$class_9633
official ayr$b
  • Field Details

    • original

      private final ArrayListDeque<T> original
      Mappings:
      Namespace Name Mixin selector
      named original Lnet/minecraft/util/collection/ArrayListDeque$ReversedWrapper;original:Lnet/minecraft/util/collection/ArrayListDeque;
      intermediary field_51346 Lnet/minecraft/class_8623$class_9633;field_51346:Lnet/minecraft/class_8623;
      official b Layr$b;b:Layr;
  • Constructor Details

    • ReversedWrapper

      public ReversedWrapper(ArrayListDeque<T> original)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/collection/ArrayListDeque$ReversedWrapper;<init>(Lnet/minecraft/util/collection/ArrayListDeque;Lnet/minecraft/util/collection/ArrayListDeque;)V
      intermediary <init> Lnet/minecraft/class_8623$class_9633;<init>(Lnet/minecraft/class_8623;Lnet/minecraft/class_8623;)V
      official <init> Layr$b;<init>(Layr;Layr;)V
  • Method Details

    • 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$ReversedWrapper;reversed()Lnet/minecraft/util/collection/ListDeque;
      intermediary method_59513 Lnet/minecraft/class_8623$class_9633;method_59513()Lnet/minecraft/class_9634;
      official method_59513 Layr$b;method_59513()Lbaa;
    • 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>
    • 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/ListDeque;addFirst(Ljava/lang/Object;)V
      intermediary addFirst Lnet/minecraft/class_9634;addFirst(Ljava/lang/Object;)V
      official addFirst Lbaa;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/ListDeque;addLast(Ljava/lang/Object;)V
      intermediary addLast Lnet/minecraft/class_9634;addLast(Ljava/lang/Object;)V
      official addLast Lbaa;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$ReversedWrapper;offerFirst(Ljava/lang/Object;)Z
      intermediary offerFirst Lnet/minecraft/class_8623$class_9633;offerFirst(Ljava/lang/Object;)Z
      official offerFirst Layr$b;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$ReversedWrapper;offerLast(Ljava/lang/Object;)Z
      intermediary offerLast Lnet/minecraft/class_8623$class_9633;offerLast(Ljava/lang/Object;)Z
      official offerLast Layr$b;offerLast(Ljava/lang/Object;)Z
    • pollFirst

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

      public T pollLast()
      Specified by:
      pollLast in interface Deque<T>
    • peekFirst

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

      public T peekLast()
      Specified by:
      peekLast in interface Deque<T>
    • 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>
    • 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$ReversedWrapper;removeFirstOccurrence(Ljava/lang/Object;)Z
      intermediary removeFirstOccurrence Lnet/minecraft/class_8623$class_9633;removeFirstOccurrence(Ljava/lang/Object;)Z
      official removeFirstOccurrence Layr$b;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$ReversedWrapper;removeLastOccurrence(Ljava/lang/Object;)Z
      intermediary removeLastOccurrence Lnet/minecraft/class_8623$class_9633;removeLastOccurrence(Ljava/lang/Object;)Z
      official removeLastOccurrence Layr$b;removeLastOccurrence(Ljava/lang/Object;)Z
    • descendingIterator

      public Iterator<T> descendingIterator()
      Specified by:
      descendingIterator in interface Deque<T>
    • 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>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Collection<T>
      Specified by:
      isEmpty in interface List<T>
      Overrides:
      isEmpty in class AbstractCollection<T>
    • contains

      public boolean contains(Object value)
      Specified by:
      contains in interface Collection<T>
      Specified by:
      contains in interface Deque<T>
      Specified by:
      contains in interface List<T>
      Overrides:
      contains in class AbstractCollection<T>
      Mappings:
      Namespace Name Mixin selector
      named contains Lnet/minecraft/util/collection/ArrayListDeque$ReversedWrapper;contains(Ljava/lang/Object;)Z
      intermediary contains Lnet/minecraft/class_8623$class_9633;contains(Ljava/lang/Object;)Z
      official contains Layr$b;contains(Ljava/lang/Object;)Z
    • 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$ReversedWrapper;get(I)Ljava/lang/Object;
      intermediary get Lnet/minecraft/class_8623$class_9633;get(I)Ljava/lang/Object;
      official get Layr$b;get(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$ReversedWrapper;set(ILjava/lang/Object;)Ljava/lang/Object;
      intermediary set Lnet/minecraft/class_8623$class_9633;set(ILjava/lang/Object;)Ljava/lang/Object;
      official set Layr$b;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$ReversedWrapper;add(ILjava/lang/Object;)V
      intermediary add Lnet/minecraft/class_8623$class_9633;add(ILjava/lang/Object;)V
      official add Layr$b;add(ILjava/lang/Object;)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$ReversedWrapper;remove(I)Ljava/lang/Object;
      intermediary remove Lnet/minecraft/class_8623$class_9633;remove(I)Ljava/lang/Object;
      official remove Layr$b;remove(I)Ljava/lang/Object;
    • indexOf

      public int indexOf(Object value)
      Specified by:
      indexOf in interface List<T>
      Overrides:
      indexOf in class AbstractList<T>
      Mappings:
      Namespace Name Mixin selector
      named indexOf Lnet/minecraft/util/collection/ArrayListDeque$ReversedWrapper;indexOf(Ljava/lang/Object;)I
      intermediary indexOf Lnet/minecraft/class_8623$class_9633;indexOf(Ljava/lang/Object;)I
      official indexOf Layr$b;indexOf(Ljava/lang/Object;)I
    • lastIndexOf

      public int lastIndexOf(Object value)
      Specified by:
      lastIndexOf in interface List<T>
      Overrides:
      lastIndexOf in class AbstractList<T>
      Mappings:
      Namespace Name Mixin selector
      named lastIndexOf Lnet/minecraft/util/collection/ArrayListDeque$ReversedWrapper;lastIndexOf(Ljava/lang/Object;)I
      intermediary lastIndexOf Lnet/minecraft/class_8623$class_9633;lastIndexOf(Ljava/lang/Object;)I
      official lastIndexOf Layr$b;lastIndexOf(Ljava/lang/Object;)I
    • subList

      public List<T> subList(int start, int end)
      Specified by:
      subList in interface List<T>
      Overrides:
      subList in class AbstractList<T>
      Mappings:
      Namespace Name Mixin selector
      named subList Lnet/minecraft/util/collection/ArrayListDeque$ReversedWrapper;subList(II)Ljava/util/List;
      intermediary subList Lnet/minecraft/class_8623$class_9633;subList(II)Ljava/util/List;
      official subList Layr$b;subList(II)Ljava/util/List;
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Collection<T>
      Specified by:
      iterator in interface Deque<T>
      Specified by:
      iterator in interface Iterable<T>
      Specified by:
      iterator in interface List<T>
      Overrides:
      iterator in class AbstractList<T>
    • clear

      public void clear()
      Specified by:
      clear in interface Collection<T>
      Specified by:
      clear in interface List<T>
      Overrides:
      clear in class AbstractList<T>
    • getReversedIndex

      private int getReversedIndex(int index)
      Mappings:
      Namespace Name Mixin selector
      named getReversedIndex Lnet/minecraft/util/collection/ArrayListDeque$ReversedWrapper;getReversedIndex(I)I
      intermediary method_59514 Lnet/minecraft/class_8623$class_9633;method_59514(I)I
      official a Layr$b;a(I)I