Class SortedArraySet<T>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<T>
net.minecraft.util.collection.SortedArraySet<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>, Set<T>

public class SortedArraySet<T> extends AbstractSet<T>
Mappings:
Namespace Name
official aix
intermediary net/minecraft/class_4706
named net/minecraft/util/collection/SortedArraySet
  • Field Details

    • DEFAULT_CAPACITY

      private static final int DEFAULT_CAPACITY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Laix;a:I
      intermediary field_29860 Lnet/minecraft/class_4706;field_29860:I
      named DEFAULT_CAPACITY Lnet/minecraft/util/collection/SortedArraySet;DEFAULT_CAPACITY:I
    • comparator

      private final Comparator<T> comparator
      Mappings:
      Namespace Name Mixin selector
      official b Laix;b:Ljava/util/Comparator;
      intermediary field_21562 Lnet/minecraft/class_4706;field_21562:Ljava/util/Comparator;
      named comparator Lnet/minecraft/util/collection/SortedArraySet;comparator:Ljava/util/Comparator;
    • elements

      T[] elements
      Mappings:
      Namespace Name Mixin selector
      official c Laix;c:[Ljava/lang/Object;
      intermediary field_21563 Lnet/minecraft/class_4706;field_21563:[Ljava/lang/Object;
      named elements Lnet/minecraft/util/collection/SortedArraySet;elements:[Ljava/lang/Object;
    • size

      int size
      Mappings:
      Namespace Name Mixin selector
      official d Laix;d:I
      intermediary field_21564 Lnet/minecraft/class_4706;field_21564:I
      named size Lnet/minecraft/util/collection/SortedArraySet;size:I
  • Constructor Details

    • SortedArraySet

      private SortedArraySet(int initialCapacity, Comparator<T> comparator)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laix;<init>(ILjava/util/Comparator;)V
      intermediary <init> Lnet/minecraft/class_4706;<init>(ILjava/util/Comparator;)V
      named <init> Lnet/minecraft/util/collection/SortedArraySet;<init>(ILjava/util/Comparator;)V
  • Method Details

    • create

      public static <T extends Comparable<T>> SortedArraySet<T> create()
      Mappings:
      Namespace Name Mixin selector
      official a Laix;a()Laix;
      intermediary method_34958 Lnet/minecraft/class_4706;method_34958()Lnet/minecraft/class_4706;
      named create Lnet/minecraft/util/collection/SortedArraySet;create()Lnet/minecraft/util/collection/SortedArraySet;
    • create

      public static <T extends Comparable<T>> SortedArraySet<T> create(int initialCapacity)
      Mappings:
      Namespace Name Mixin selector
      official a Laix;a(I)Laix;
      intermediary method_23859 Lnet/minecraft/class_4706;method_23859(I)Lnet/minecraft/class_4706;
      named create Lnet/minecraft/util/collection/SortedArraySet;create(I)Lnet/minecraft/util/collection/SortedArraySet;
    • create

      public static <T> SortedArraySet<T> create(Comparator<T> comparator)
      Mappings:
      Namespace Name Mixin selector
      official a Laix;a(Ljava/util/Comparator;)Laix;
      intermediary method_34959 Lnet/minecraft/class_4706;method_34959(Ljava/util/Comparator;)Lnet/minecraft/class_4706;
      named create Lnet/minecraft/util/collection/SortedArraySet;create(Ljava/util/Comparator;)Lnet/minecraft/util/collection/SortedArraySet;
    • create

      public static <T> SortedArraySet<T> create(Comparator<T> comparator, int initialCapacity)
      Mappings:
      Namespace Name Mixin selector
      official a Laix;a(Ljava/util/Comparator;I)Laix;
      intermediary method_34960 Lnet/minecraft/class_4706;method_34960(Ljava/util/Comparator;I)Lnet/minecraft/class_4706;
      named create Lnet/minecraft/util/collection/SortedArraySet;create(Ljava/util/Comparator;I)Lnet/minecraft/util/collection/SortedArraySet;
    • cast

      private static <T> T[] cast(Object[] array)
      Mappings:
      Namespace Name Mixin selector
      official a Laix;a([Ljava/lang/Object;)[Ljava/lang/Object;
      intermediary method_23864 Lnet/minecraft/class_4706;method_23864([Ljava/lang/Object;)[Ljava/lang/Object;
      named cast Lnet/minecraft/util/collection/SortedArraySet;cast([Ljava/lang/Object;)[Ljava/lang/Object;
    • binarySearch

      private int binarySearch(T object)
      Mappings:
      Namespace Name Mixin selector
      official c Laix;c(Ljava/lang/Object;)I
      intermediary method_23869 Lnet/minecraft/class_4706;method_23869(Ljava/lang/Object;)I
      named binarySearch Lnet/minecraft/util/collection/SortedArraySet;binarySearch(Ljava/lang/Object;)I
    • insertionPoint

      private static int insertionPoint(int binarySearchResult)
      Mappings:
      Namespace Name Mixin selector
      official b Laix;b(I)I
      intermediary method_23866 Lnet/minecraft/class_4706;method_23866(I)I
      named insertionPoint Lnet/minecraft/util/collection/SortedArraySet;insertionPoint(I)I
    • add

      public boolean add(T t)
      Specified by:
      add in interface Collection<T>
      Specified by:
      add in interface Set<T>
      Overrides:
      add in class AbstractCollection<T>
    • ensureCapacity

      private void ensureCapacity(int minCapacity)
      Mappings:
      Namespace Name Mixin selector
      official c Laix;c(I)V
      intermediary method_23868 Lnet/minecraft/class_4706;method_23868(I)V
      named ensureCapacity Lnet/minecraft/util/collection/SortedArraySet;ensureCapacity(I)V
    • add

      private void add(T object, int index)
      Mappings:
      Namespace Name Mixin selector
      official a Laix;a(Ljava/lang/Object;I)V
      intermediary method_23863 Lnet/minecraft/class_4706;method_23863(Ljava/lang/Object;I)V
      named add Lnet/minecraft/util/collection/SortedArraySet;add(Ljava/lang/Object;I)V
    • remove

      void remove(int index)
      Mappings:
      Namespace Name Mixin selector
      official d Laix;d(I)V
      intermediary method_23870 Lnet/minecraft/class_4706;method_23870(I)V
      named remove Lnet/minecraft/util/collection/SortedArraySet;remove(I)V
    • get

      private T get(int index)
      Mappings:
      Namespace Name Mixin selector
      official e Laix;e(I)Ljava/lang/Object;
      intermediary method_23871 Lnet/minecraft/class_4706;method_23871(I)Ljava/lang/Object;
      named get Lnet/minecraft/util/collection/SortedArraySet;get(I)Ljava/lang/Object;
    • addAndGet

      public T addAndGet(T object)
      Mappings:
      Namespace Name Mixin selector
      official a Laix;a(Ljava/lang/Object;)Ljava/lang/Object;
      intermediary method_23862 Lnet/minecraft/class_4706;method_23862(Ljava/lang/Object;)Ljava/lang/Object;
      named addAndGet Lnet/minecraft/util/collection/SortedArraySet;addAndGet(Ljava/lang/Object;)Ljava/lang/Object;
    • remove

      public boolean remove(Object object)
      Specified by:
      remove in interface Collection<T>
      Specified by:
      remove in interface Set<T>
      Overrides:
      remove in class AbstractCollection<T>
    • getIfContains

      @Nullable public T getIfContains(T t)
      Mappings:
      Namespace Name Mixin selector
      official b Laix;b(Ljava/lang/Object;)Ljava/lang/Object;
      intermediary method_34961 Lnet/minecraft/class_4706;method_34961(Ljava/lang/Object;)Ljava/lang/Object;
      named getIfContains Lnet/minecraft/util/collection/SortedArraySet;getIfContains(Ljava/lang/Object;)Ljava/lang/Object;
    • first

      public T first()
      Mappings:
      Namespace Name Mixin selector
      official b Laix;b()Ljava/lang/Object;
      intermediary method_23865 Lnet/minecraft/class_4706;method_23865()Ljava/lang/Object;
      named first Lnet/minecraft/util/collection/SortedArraySet;first()Ljava/lang/Object;
    • last

      public T last()
      Mappings:
      Namespace Name Mixin selector
      official c Laix;c()Ljava/lang/Object;
      intermediary method_34962 Lnet/minecraft/class_4706;method_34962()Ljava/lang/Object;
      named last Lnet/minecraft/util/collection/SortedArraySet;last()Ljava/lang/Object;
    • contains

      public boolean contains(Object object)
      Specified by:
      contains in interface Collection<T>
      Specified by:
      contains in interface Set<T>
      Overrides:
      contains in class AbstractCollection<T>
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Collection<T>
      Specified by:
      iterator in interface Iterable<T>
      Specified by:
      iterator in interface Set<T>
      Specified by:
      iterator in class AbstractCollection<T>
    • size

      public int size()
      Specified by:
      size in interface Collection<T>
      Specified by:
      size in interface Set<T>
      Specified by:
      size in class AbstractCollection<T>
    • toArray

      public Object[] toArray()
      Specified by:
      toArray in interface Collection<T>
      Specified by:
      toArray in interface Set<T>
      Overrides:
      toArray in class AbstractCollection<T>
    • toArray

      public <U> U[] toArray(U[] u)
      Specified by:
      toArray in interface Collection<T>
      Specified by:
      toArray in interface Set<T>
      Overrides:
      toArray in class AbstractCollection<T>
    • clear

      public void clear()
      Specified by:
      clear in interface Collection<T>
      Specified by:
      clear in interface Set<T>
      Overrides:
      clear in class AbstractCollection<T>
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Collection<T>
      Specified by:
      equals in interface Set<T>
      Overrides:
      equals in class AbstractSet<T>
      Mappings:
      Namespace Name Mixin selector
      official equals Laix;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_4706;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/util/collection/SortedArraySet;equals(Ljava/lang/Object;)Z