Package net.minecraft.util.registry
Class RegistryEntryList.Named<T>
java.lang.Object
net.minecraft.util.registry.RegistryEntryList.ListBacked<T>
net.minecraft.util.registry.RegistryEntryList.Named<T>
- All Implemented Interfaces:
Iterable<RegistryEntry<T>>,RegistryEntryList<T>
- Enclosing interface:
RegistryEntryList<T>
A registry entry list that references a tag from the registry.
- Mappings:
Namespace Name official hc$cintermediary net/minecraft/class_6885$class_6888named net/minecraft/util/registry/RegistryEntryList$Named
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.registry.RegistryEntryList
RegistryEntryList.Direct<T>, RegistryEntryList.ListBacked<T>, RegistryEntryList.Named<T> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(RegistryEntry<T> entry) Returns whetherentryis in this list.(package private) voidcopyOf(List<RegistryEntry<T>> entries) protected List<RegistryEntry<T>>com.mojang.datafixers.util.Either<TagKey<T>,List<RegistryEntry<T>>> Returns the object that identifies this registry entry list.getTag()Returns the tag key that this list references.booleanReturns whether the list is of entries fromregistry.toString()Methods inherited from class net.minecraft.util.registry.RegistryEntryList.ListBacked
get, getRandom, iterator, size, spliterator, stream
-
Field Details
-
registry
- Mappings:
Namespace Name Mixin selector official aLhc$c;a:Lhl;intermediary field_36633Lnet/minecraft/class_6885$class_6888;field_36633:Lnet/minecraft/class_2378;named registryLnet/minecraft/util/registry/RegistryEntryList$Named;registry:Lnet/minecraft/util/registry/Registry;
-
tag
- Mappings:
Namespace Name Mixin selector official bLhc$c;b:Lamg;intermediary field_36459Lnet/minecraft/class_6885$class_6888;field_36459:Lnet/minecraft/class_6862;named tagLnet/minecraft/util/registry/RegistryEntryList$Named;tag:Lnet/minecraft/tag/TagKey;
-
entries
- Mappings:
Namespace Name Mixin selector official cLhc$c;c:Ljava/util/List;intermediary field_36460Lnet/minecraft/class_6885$class_6888;field_36460:Ljava/util/List;named entriesLnet/minecraft/util/registry/RegistryEntryList$Named;entries:Ljava/util/List;
-
-
Constructor Details
-
Named
- Mappings:
Namespace Name Mixin selector official <init>Lhc$c;<init>(Lhl;Lamg;)Vintermediary <init>Lnet/minecraft/class_6885$class_6888;<init>(Lnet/minecraft/class_2378;Lnet/minecraft/class_6862;)Vnamed <init>Lnet/minecraft/util/registry/RegistryEntryList$Named;<init>(Lnet/minecraft/util/registry/Registry;Lnet/minecraft/tag/TagKey;)V
-
-
Method Details
-
copyOf
- Mappings:
Namespace Name Mixin selector official bLhc$c;b(Ljava/util/List;)Vintermediary method_40250Lnet/minecraft/class_6885$class_6888;method_40250(Ljava/util/List;)Vnamed copyOfLnet/minecraft/util/registry/RegistryEntryList$Named;copyOf(Ljava/util/List;)V
-
getTag
Returns the tag key that this list references.- Returns:
- the tag key that this list references
- Mappings:
Namespace Name Mixin selector official fLhc$c;f()Lamg;intermediary method_40251Lnet/minecraft/class_6885$class_6888;method_40251()Lnet/minecraft/class_6862;named getTagLnet/minecraft/util/registry/RegistryEntryList$Named;getTag()Lnet/minecraft/tag/TagKey;
-
getEntries
- Specified by:
getEntriesin classRegistryEntryList.ListBacked<T>- Mappings:
Namespace Name Mixin selector official eLhc$b;e()Ljava/util/List;intermediary method_40249Lnet/minecraft/class_6885$class_6887;method_40249()Ljava/util/List;named getEntriesLnet/minecraft/util/registry/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 cLhc;c()Lcom/mojang/datafixers/util/Either;intermediary method_40248Lnet/minecraft/class_6885;method_40248()Lcom/mojang/datafixers/util/Either;named getStorageLnet/minecraft/util/registry/RegistryEntryList;getStorage()Lcom/mojang/datafixers/util/Either;
-
getTagKey
- Mappings:
Namespace Name Mixin selector official dLhc;d()Ljava/util/Optional;intermediary method_45925Lnet/minecraft/class_6885;method_45925()Ljava/util/Optional;named getTagKeyLnet/minecraft/util/registry/RegistryEntryList;getTagKey()Ljava/util/Optional;
-
contains
Returns whetherentryis in this list.- Returns:
- whether
entryis in this list - Mappings:
Namespace Name Mixin selector official aLhc;a(Lha;)Zintermediary method_40241Lnet/minecraft/class_6885;method_40241(Lnet/minecraft/class_6880;)Znamed containsLnet/minecraft/util/registry/RegistryEntryList;contains(Lnet/minecraft/util/registry/RegistryEntry;)Z
-
toString
-
isOf
Returns whether the list is of entries fromregistry.This always returns
truefor direct lists.- Specified by:
isOfin interfaceRegistryEntryList<T>- Overrides:
isOfin classRegistryEntryList.ListBacked<T>- Returns:
- whether the list is of entries from
registry - Mappings:
Namespace Name Mixin selector official aLhc;a(Lhl;)Zintermediary method_40560Lnet/minecraft/class_6885;method_40560(Lnet/minecraft/class_2378;)Znamed isOfLnet/minecraft/util/registry/RegistryEntryList;isOf(Lnet/minecraft/util/registry/Registry;)Z
-