Package net.minecraft.registry.entry
Class RegistryEntryList.ListBacked<T>
java.lang.Object
net.minecraft.registry.entry.RegistryEntryList.ListBacked<T>
- All Implemented Interfaces:
Iterable<RegistryEntry<T>>,RegistryEntryList<T>
- Direct Known Subclasses:
RegistryEntryList.Direct,RegistryEntryList.Named
- Enclosing interface:
RegistryEntryList<T>
public abstract static class RegistryEntryList.ListBacked<T>
extends Object
implements RegistryEntryList<T>
An internal implementation of
RegistryEntryList.- Mappings:
Namespace Name named net/minecraft/registry/entry/RegistryEntryList$ListBackedintermediary net/minecraft/class_6885$class_6887official jq$b
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.registry.entry.RegistryEntryList
RegistryEntryList.Direct<T>, RegistryEntryList.ListBacked<T>, RegistryEntryList.Named<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(int index) Returns the registry entry atindex.protected abstract List<RegistryEntry<T>> Returns a random entry of the list, or an empty optional if this list is empty.iterator()booleanownerEquals(RegistryEntryOwner<T> owner) intsize()Returns the number of entries in this list.stream()Returns a stream of registry entries in this list.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.registry.entry.RegistryEntryList
contains, getStorage, getTagKey
-
Constructor Details
-
ListBacked
public ListBacked()
-
-
Method Details
-
getEntries
- Mappings:
Namespace Name Mixin selector named getEntriesLnet/minecraft/registry/entry/RegistryEntryList$ListBacked;getEntries()Ljava/util/List;intermediary method_40249Lnet/minecraft/class_6885$class_6887;method_40249()Ljava/util/List;official fLjq$b;f()Ljava/util/List;
-
size
public int size()Returns the number of entries in this list.- Specified by:
sizein interfaceRegistryEntryList<T>- Returns:
- the number of entries in this list
- Mappings:
Namespace Name Mixin selector named sizeLnet/minecraft/registry/entry/RegistryEntryList;size()Iintermediary method_40247Lnet/minecraft/class_6885;method_40247()Iofficial bLjq;b()I
-
spliterator
- Specified by:
spliteratorin interfaceIterable<T>
-
iterator
-
stream
Returns a stream of registry entries in this list.- Specified by:
streamin interfaceRegistryEntryList<T>- Returns:
- a stream of registry entries in this list
- Mappings:
Namespace Name Mixin selector named streamLnet/minecraft/registry/entry/RegistryEntryList;stream()Ljava/util/stream/Stream;intermediary method_40239Lnet/minecraft/class_6885;method_40239()Ljava/util/stream/Stream;official aLjq;a()Ljava/util/stream/Stream;
-
getRandom
Returns a random entry of the list, or an empty optional if this list is empty.- Specified by:
getRandomin interfaceRegistryEntryList<T>- Returns:
- a random entry of the list, or an empty optional if this list is empty
- Mappings:
Namespace Name Mixin selector named getRandomLnet/minecraft/registry/entry/RegistryEntryList;getRandom(Lnet/minecraft/util/math/random/Random;)Ljava/util/Optional;intermediary method_40243Lnet/minecraft/class_6885;method_40243(Lnet/minecraft/class_5819;)Ljava/util/Optional;official aLjq;a(Layw;)Ljava/util/Optional;
-
get
Returns the registry entry atindex.- Specified by:
getin interfaceRegistryEntryList<T>- Returns:
- the registry entry at
index - Throws:
IndexOutOfBoundsException- if the index is out of bounds- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/registry/entry/RegistryEntryList;get(I)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_40240Lnet/minecraft/class_6885;method_40240(I)Lnet/minecraft/class_6880;official aLjq;a(I)Ljm;
-
ownerEquals
- Specified by:
ownerEqualsin interfaceRegistryEntryList<T>- Mappings:
Namespace Name Mixin selector named ownerEqualsLnet/minecraft/registry/entry/RegistryEntryList;ownerEquals(Lnet/minecraft/registry/entry/RegistryEntryOwner;)Zintermediary method_46768Lnet/minecraft/class_6885;method_46768(Lnet/minecraft/class_7876;)Zofficial aLjq;a(Ljp;)Z
-