Package net.minecraft.util.collection
Class SortedArraySet<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractSet<T>
net.minecraft.util.collection.SortedArraySet<T>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,Set<T>
- Mappings:
Namespace Name named net/minecraft/util/collection/SortedArraySet
intermediary net/minecraft/class_4706
official baw
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Comparator
<T> private static final int
(package private) T[]
(package private) int
-
Constructor Summary
ModifierConstructorDescriptionprivate
SortedArraySet
(int initialCapacity, Comparator<T> comparator) -
Method Summary
Modifier and TypeMethodDescriptionboolean
private void
private int
binarySearch
(T object) private static <T> T[]
void
clear()
boolean
static <T extends Comparable<T>>
SortedArraySet<T> create()
static <T extends Comparable<T>>
SortedArraySet<T> create
(int initialCapacity) static <T> SortedArraySet
<T> create
(Comparator<T> comparator) static <T> SortedArraySet
<T> create
(Comparator<T> comparator, int initialCapacity) private void
ensureCapacity
(int minCapacity) boolean
first()
private T
get
(int index) getIfContains
(T object) private static int
insertionPoint
(int binarySearchResult) iterator()
last()
(package private) void
remove
(int index) boolean
int
size()
Object[]
toArray()
<U> U[]
toArray
(U[] array) Methods inherited from class java.util.AbstractSet
hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, retainAll, 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.util.Set
addAll, containsAll, isEmpty, retainAll, spliterator
-
Field Details
-
DEFAULT_CAPACITY
private static final int DEFAULT_CAPACITY- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_CAPACITY
Lnet/minecraft/util/collection/SortedArraySet;DEFAULT_CAPACITY:I
intermediary field_29860
Lnet/minecraft/class_4706;field_29860:I
official a
Lbaw;a:I
-
comparator
- Mappings:
Namespace Name Mixin selector named comparator
Lnet/minecraft/util/collection/SortedArraySet;comparator:Ljava/util/Comparator;
intermediary field_21562
Lnet/minecraft/class_4706;field_21562:Ljava/util/Comparator;
official b
Lbaw;b:Ljava/util/Comparator;
-
elements
T[] elements- Mappings:
Namespace Name Mixin selector named elements
Lnet/minecraft/util/collection/SortedArraySet;elements:[Ljava/lang/Object;
intermediary field_21563
Lnet/minecraft/class_4706;field_21563:[Ljava/lang/Object;
official c
Lbaw;c:[Ljava/lang/Object;
-
size
int size- Mappings:
Namespace Name Mixin selector named size
Lnet/minecraft/util/collection/SortedArraySet;size:I
intermediary field_21564
Lnet/minecraft/class_4706;field_21564:I
official d
Lbaw;d:I
-
-
Constructor Details
-
SortedArraySet
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/util/collection/SortedArraySet;<init>(ILjava/util/Comparator;)V
intermediary <init>
Lnet/minecraft/class_4706;<init>(ILjava/util/Comparator;)V
official <init>
Lbaw;<init>(ILjava/util/Comparator;)V
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/util/collection/SortedArraySet;create()Lnet/minecraft/util/collection/SortedArraySet;
intermediary method_34958
Lnet/minecraft/class_4706;method_34958()Lnet/minecraft/class_4706;
official a
Lbaw;a()Lbaw;
-
create
- Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/util/collection/SortedArraySet;create(I)Lnet/minecraft/util/collection/SortedArraySet;
intermediary method_23859
Lnet/minecraft/class_4706;method_23859(I)Lnet/minecraft/class_4706;
official a
Lbaw;a(I)Lbaw;
-
create
- Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/util/collection/SortedArraySet;create(Ljava/util/Comparator;)Lnet/minecraft/util/collection/SortedArraySet;
intermediary method_34959
Lnet/minecraft/class_4706;method_34959(Ljava/util/Comparator;)Lnet/minecraft/class_4706;
official a
Lbaw;a(Ljava/util/Comparator;)Lbaw;
-
create
- Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/util/collection/SortedArraySet;create(Ljava/util/Comparator;I)Lnet/minecraft/util/collection/SortedArraySet;
intermediary method_34960
Lnet/minecraft/class_4706;method_34960(Ljava/util/Comparator;I)Lnet/minecraft/class_4706;
official a
Lbaw;a(Ljava/util/Comparator;I)Lbaw;
-
cast
- Mappings:
Namespace Name Mixin selector named cast
Lnet/minecraft/util/collection/SortedArraySet;cast([Ljava/lang/Object;)[Ljava/lang/Object;
intermediary method_23864
Lnet/minecraft/class_4706;method_23864([Ljava/lang/Object;)[Ljava/lang/Object;
official a
Lbaw;a([Ljava/lang/Object;)[Ljava/lang/Object;
-
binarySearch
- Mappings:
Namespace Name Mixin selector named binarySearch
Lnet/minecraft/util/collection/SortedArraySet;binarySearch(Ljava/lang/Object;)I
intermediary method_23869
Lnet/minecraft/class_4706;method_23869(Ljava/lang/Object;)I
official c
Lbaw;c(Ljava/lang/Object;)I
-
insertionPoint
private static int insertionPoint(int binarySearchResult) - Mappings:
Namespace Name Mixin selector named insertionPoint
Lnet/minecraft/util/collection/SortedArraySet;insertionPoint(I)I
intermediary method_23866
Lnet/minecraft/class_4706;method_23866(I)I
official b
Lbaw;b(I)I
-
add
- Specified by:
add
in interfaceCollection<T>
- Specified by:
add
in interfaceSet<T>
- Overrides:
add
in classAbstractCollection<T>
- Mappings:
Namespace Name Mixin selector named add
Lnet/minecraft/util/collection/SortedArraySet;add(Ljava/lang/Object;)Z
intermediary add
Lnet/minecraft/class_4706;add(Ljava/lang/Object;)Z
official add
Lbaw;add(Ljava/lang/Object;)Z
-
ensureCapacity
private void ensureCapacity(int minCapacity) - Mappings:
Namespace Name Mixin selector named ensureCapacity
Lnet/minecraft/util/collection/SortedArraySet;ensureCapacity(I)V
intermediary method_23868
Lnet/minecraft/class_4706;method_23868(I)V
official c
Lbaw;c(I)V
-
add
- Mappings:
Namespace Name Mixin selector named add
Lnet/minecraft/util/collection/SortedArraySet;add(Ljava/lang/Object;I)V
intermediary method_23863
Lnet/minecraft/class_4706;method_23863(Ljava/lang/Object;I)V
official a
Lbaw;a(Ljava/lang/Object;I)V
-
remove
void remove(int index) - Mappings:
Namespace Name Mixin selector named remove
Lnet/minecraft/util/collection/SortedArraySet;remove(I)V
intermediary method_23870
Lnet/minecraft/class_4706;method_23870(I)V
official d
Lbaw;d(I)V
-
get
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/util/collection/SortedArraySet;get(I)Ljava/lang/Object;
intermediary method_23871
Lnet/minecraft/class_4706;method_23871(I)Ljava/lang/Object;
official e
Lbaw;e(I)Ljava/lang/Object;
-
addAndGet
- Mappings:
Namespace Name Mixin selector named addAndGet
Lnet/minecraft/util/collection/SortedArraySet;addAndGet(Ljava/lang/Object;)Ljava/lang/Object;
intermediary method_23862
Lnet/minecraft/class_4706;method_23862(Ljava/lang/Object;)Ljava/lang/Object;
official a
Lbaw;a(Ljava/lang/Object;)Ljava/lang/Object;
-
remove
- Specified by:
remove
in interfaceCollection<T>
- Specified by:
remove
in interfaceSet<T>
- Overrides:
remove
in classAbstractCollection<T>
- Mappings:
Namespace Name Mixin selector named remove
Lnet/minecraft/util/collection/SortedArraySet;remove(Ljava/lang/Object;)Z
intermediary remove
Lnet/minecraft/class_4706;remove(Ljava/lang/Object;)Z
official remove
Lbaw;remove(Ljava/lang/Object;)Z
-
getIfContains
- Mappings:
Namespace Name Mixin selector named getIfContains
Lnet/minecraft/util/collection/SortedArraySet;getIfContains(Ljava/lang/Object;)Ljava/lang/Object;
intermediary method_34961
Lnet/minecraft/class_4706;method_34961(Ljava/lang/Object;)Ljava/lang/Object;
official b
Lbaw;b(Ljava/lang/Object;)Ljava/lang/Object;
-
first
- Mappings:
Namespace Name Mixin selector named first
Lnet/minecraft/util/collection/SortedArraySet;first()Ljava/lang/Object;
intermediary method_23865
Lnet/minecraft/class_4706;method_23865()Ljava/lang/Object;
official b
Lbaw;b()Ljava/lang/Object;
-
last
- Mappings:
Namespace Name Mixin selector named last
Lnet/minecraft/util/collection/SortedArraySet;last()Ljava/lang/Object;
intermediary method_34962
Lnet/minecraft/class_4706;method_34962()Ljava/lang/Object;
official c
Lbaw;c()Ljava/lang/Object;
-
contains
- Specified by:
contains
in interfaceCollection<T>
- Specified by:
contains
in interfaceSet<T>
- Overrides:
contains
in classAbstractCollection<T>
- Mappings:
Namespace Name Mixin selector named contains
Lnet/minecraft/util/collection/SortedArraySet;contains(Ljava/lang/Object;)Z
intermediary contains
Lnet/minecraft/class_4706;contains(Ljava/lang/Object;)Z
official contains
Lbaw;contains(Ljava/lang/Object;)Z
-
iterator
-
size
public int size()- Specified by:
size
in interfaceCollection<T>
- Specified by:
size
in interfaceSet<T>
- Specified by:
size
in classAbstractCollection<T>
-
toArray
- Specified by:
toArray
in interfaceCollection<T>
- Specified by:
toArray
in interfaceSet<T>
- Overrides:
toArray
in classAbstractCollection<T>
-
toArray
public <U> U[] toArray(U[] array) - Specified by:
toArray
in interfaceCollection<T>
- Specified by:
toArray
in interfaceSet<T>
- Overrides:
toArray
in classAbstractCollection<T>
- Mappings:
Namespace Name Mixin selector named toArray
Lnet/minecraft/util/collection/SortedArraySet;toArray([Ljava/lang/Object;)[Ljava/lang/Object;
intermediary toArray
Lnet/minecraft/class_4706;toArray([Ljava/lang/Object;)[Ljava/lang/Object;
official toArray
Lbaw;toArray([Ljava/lang/Object;)[Ljava/lang/Object;
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T>
- Specified by:
clear
in interfaceSet<T>
- Overrides:
clear
in classAbstractCollection<T>
-
equals
- Specified by:
equals
in interfaceCollection<T>
- Specified by:
equals
in interfaceSet<T>
- Overrides:
equals
in classAbstractSet<T>
- Mappings:
Namespace Name Mixin selector named equals
Lnet/minecraft/util/collection/SortedArraySet;equals(Ljava/lang/Object;)Z
intermediary equals
Lnet/minecraft/class_4706;equals(Ljava/lang/Object;)Z
official equals
Lbaw;equals(Ljava/lang/Object;)Z
-