Package net.minecraft.registry.entry
Class RegistryEntryList.Direct<T>
java.lang.Object
net.minecraft.registry.entry.RegistryEntryList.ListBacked<T>
net.minecraft.registry.entry.RegistryEntryList.Direct<T>
- All Implemented Interfaces:
Iterable<RegistryEntry<T>>,RegistryEntryList<T>
- Enclosing interface:
RegistryEntryList<T>
A direct registry entry list that holds the values directly, instead of using tags.
- Mappings:
Namespace Name official hi$aintermediary net/minecraft/class_6885$class_6886named net/minecraft/registry/entry/RegistryEntryList$Direct
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.registry.entry.RegistryEntryList
RegistryEntryList.Direct<T>, RegistryEntryList.ListBacked<T>, RegistryEntryList.Named<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<RegistryEntry<T>>private Set<RegistryEntry<T>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(RegistryEntry<T> entry) Returns whetherentryis in this list.protected List<RegistryEntry<T>>com.mojang.datafixers.util.Either<TagKey<T>,List<RegistryEntry<T>>> Returns the object that identifies this registry entry list.toString()Methods inherited from class net.minecraft.registry.entry.RegistryEntryList.ListBacked
get, getRandom, iterator, ownerEquals, size, spliterator, stream
-
Field Details
-
entries
- Mappings:
Namespace Name Mixin selector official aLhi$a;a:Ljava/util/List;intermediary field_36457Lnet/minecraft/class_6885$class_6886;field_36457:Ljava/util/List;named entriesLnet/minecraft/registry/entry/RegistryEntryList$Direct;entries:Ljava/util/List;
-
entrySet
- Mappings:
Namespace Name Mixin selector official bLhi$a;b:Ljava/util/Set;intermediary field_36458Lnet/minecraft/class_6885$class_6886;field_36458:Ljava/util/Set;named entrySetLnet/minecraft/registry/entry/RegistryEntryList$Direct;entrySet:Ljava/util/Set;
-
-
Constructor Details
-
Direct
Direct(List<RegistryEntry<T>> entries) - Mappings:
Namespace Name Mixin selector official <init>Lhi$a;<init>(Ljava/util/List;)Vintermediary <init>Lnet/minecraft/class_6885$class_6886;<init>(Ljava/util/List;)Vnamed <init>Lnet/minecraft/registry/entry/RegistryEntryList$Direct;<init>(Ljava/util/List;)V
-
-
Method Details
-
getEntries
- Specified by:
getEntriesin classRegistryEntryList.ListBacked<T>- Mappings:
Namespace Name Mixin selector official eLhi$b;e()Ljava/util/List;intermediary method_40249Lnet/minecraft/class_6885$class_6887;method_40249()Ljava/util/List;named getEntriesLnet/minecraft/registry/entry/RegistryEntryList$ListBacked;getEntries()Ljava/util/List;
-
getStorage
Returns the object that identifies this registry entry list.This is the tag key for a reference list, and the backing list for a direct list.
- Returns:
- the object that identifies this registry entry list
- Mappings:
Namespace Name Mixin selector official cLhi;c()Lcom/mojang/datafixers/util/Either;intermediary method_40248Lnet/minecraft/class_6885;method_40248()Lcom/mojang/datafixers/util/Either;named getStorageLnet/minecraft/registry/entry/RegistryEntryList;getStorage()Lcom/mojang/datafixers/util/Either;
-
getTagKey
- Mappings:
Namespace Name Mixin selector official dLhi;d()Ljava/util/Optional;intermediary method_45925Lnet/minecraft/class_6885;method_45925()Ljava/util/Optional;named getTagKeyLnet/minecraft/registry/entry/RegistryEntryList;getTagKey()Ljava/util/Optional;
-
contains
Returns whetherentryis in this list.- Returns:
- whether
entryis in this list - Mappings:
Namespace Name Mixin selector official aLhi;a(Lhe;)Zintermediary method_40241Lnet/minecraft/class_6885;method_40241(Lnet/minecraft/class_6880;)Znamed containsLnet/minecraft/registry/entry/RegistryEntryList;contains(Lnet/minecraft/registry/entry/RegistryEntry;)Z
-
toString
-