Package net.minecraft.registry.entry
Class RegistryEntryList.Named<T>
java.lang.Object
net.minecraft.registry.entry.RegistryEntryList.ListBacked<T>
net.minecraft.registry.entry.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 named net/minecraft/registry/entry/RegistryEntryList$Namedintermediary net/minecraft/class_6885$class_6888official jq$c
-
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 List<RegistryEntry<T>> private final RegistryEntryOwner<T> -
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.booleanownerEquals(RegistryEntryOwner<T> owner) toString()Methods inherited from class net.minecraft.registry.entry.RegistryEntryList.ListBacked
get, getRandom, iterator, size, spliterator, stream
-
Field Details
-
owner
- Mappings:
Namespace Name Mixin selector named ownerLnet/minecraft/registry/entry/RegistryEntryList$Named;owner:Lnet/minecraft/registry/entry/RegistryEntryOwner;intermediary field_40936Lnet/minecraft/class_6885$class_6888;field_40936:Lnet/minecraft/class_7876;official aLjq$c;a:Ljp;
-
tag
- Mappings:
Namespace Name Mixin selector named tagLnet/minecraft/registry/entry/RegistryEntryList$Named;tag:Lnet/minecraft/registry/tag/TagKey;intermediary field_36459Lnet/minecraft/class_6885$class_6888;field_36459:Lnet/minecraft/class_6862;official bLjq$c;b:Lawu;
-
entries
- Mappings:
Namespace Name Mixin selector named entriesLnet/minecraft/registry/entry/RegistryEntryList$Named;entries:Ljava/util/List;intermediary field_36460Lnet/minecraft/class_6885$class_6888;field_36460:Ljava/util/List;official cLjq$c;c:Ljava/util/List;
-
-
Constructor Details
-
Named
Named(RegistryEntryOwner<T> owner, TagKey<T> tag) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/registry/entry/RegistryEntryList$Named;<init>(Lnet/minecraft/registry/entry/RegistryEntryOwner;Lnet/minecraft/registry/tag/TagKey;)Vintermediary <init>Lnet/minecraft/class_6885$class_6888;<init>(Lnet/minecraft/class_7876;Lnet/minecraft/class_6862;)Vofficial <init>Ljq$c;<init>(Ljp;Lawu;)V
-
-
Method Details
-
copyOf
- Mappings:
Namespace Name Mixin selector named copyOfLnet/minecraft/registry/entry/RegistryEntryList$Named;copyOf(Ljava/util/List;)Vintermediary method_40250Lnet/minecraft/class_6885$class_6888;method_40250(Ljava/util/List;)Vofficial bLjq$c;b(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 named getTagLnet/minecraft/registry/entry/RegistryEntryList$Named;getTag()Lnet/minecraft/registry/tag/TagKey;intermediary method_40251Lnet/minecraft/class_6885$class_6888;method_40251()Lnet/minecraft/class_6862;official gLjq$c;g()Lawu;
-
getEntries
- Specified by:
getEntriesin classRegistryEntryList.ListBacked<T>- 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;
-
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 named getStorageLnet/minecraft/registry/entry/RegistryEntryList;getStorage()Lcom/mojang/datafixers/util/Either;intermediary method_40248Lnet/minecraft/class_6885;method_40248()Lcom/mojang/datafixers/util/Either;official cLjq;c()Lcom/mojang/datafixers/util/Either;
-
getTagKey
- Mappings:
Namespace Name Mixin selector named getTagKeyLnet/minecraft/registry/entry/RegistryEntryList;getTagKey()Ljava/util/Optional;intermediary method_45925Lnet/minecraft/class_6885;method_45925()Ljava/util/Optional;official dLjq;d()Ljava/util/Optional;
-
contains
Returns whetherentryis in this list.- Returns:
- whether
entryis in this list - Mappings:
Namespace Name Mixin selector named containsLnet/minecraft/registry/entry/RegistryEntryList;contains(Lnet/minecraft/registry/entry/RegistryEntry;)Zintermediary method_40241Lnet/minecraft/class_6885;method_40241(Lnet/minecraft/class_6880;)Zofficial aLjq;a(Ljm;)Z
-
toString
-
ownerEquals
- Specified by:
ownerEqualsin interfaceRegistryEntryList<T>- Overrides:
ownerEqualsin classRegistryEntryList.ListBacked<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
-