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$Named
intermediary net/minecraft/class_6885$class_6888
official ju$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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(RegistryEntry<T> entry) Returns whetherentry
is 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.getTag()
Returns the tag key that this list references.boolean
isBound()
boolean
ownerEquals
(RegistryEntryOwner<T> owner) (package private) void
setEntries
(List<RegistryEntry<T>> entries) 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 owner
Lnet/minecraft/registry/entry/RegistryEntryList$Named;owner:Lnet/minecraft/registry/entry/RegistryEntryOwner;
intermediary field_40936
Lnet/minecraft/class_6885$class_6888;field_40936:Lnet/minecraft/class_7876;
official a
Lju$c;a:Ljt;
-
tag
- Mappings:
Namespace Name Mixin selector named tag
Lnet/minecraft/registry/entry/RegistryEntryList$Named;tag:Lnet/minecraft/registry/tag/TagKey;
intermediary field_36459
Lnet/minecraft/class_6885$class_6888;field_36459:Lnet/minecraft/class_6862;
official b
Lju$c;b:Layk;
-
entries
- Mappings:
Namespace Name Mixin selector named entries
Lnet/minecraft/registry/entry/RegistryEntryList$Named;entries:Ljava/util/List;
intermediary field_36460
Lnet/minecraft/class_6885$class_6888;field_36460:Ljava/util/List;
official c
Lju$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;)V
intermediary <init>
Lnet/minecraft/class_6885$class_6888;<init>(Lnet/minecraft/class_7876;Lnet/minecraft/class_6862;)V
official <init>
Lju$c;<init>(Ljt;Layk;)V
-
-
Method Details
-
setEntries
- Mappings:
Namespace Name Mixin selector named setEntries
Lnet/minecraft/registry/entry/RegistryEntryList$Named;setEntries(Ljava/util/List;)V
intermediary method_40250
Lnet/minecraft/class_6885$class_6888;method_40250(Ljava/util/List;)V
official b
Lju$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 getTag
Lnet/minecraft/registry/entry/RegistryEntryList$Named;getTag()Lnet/minecraft/registry/tag/TagKey;
intermediary method_40251
Lnet/minecraft/class_6885$class_6888;method_40251()Lnet/minecraft/class_6862;
official h
Lju$c;h()Layk;
-
getEntries
- Specified by:
getEntries
in classRegistryEntryList.ListBacked<T>
- Mappings:
Namespace Name Mixin selector named getEntries
Lnet/minecraft/registry/entry/RegistryEntryList$ListBacked;getEntries()Ljava/util/List;
intermediary method_40249
Lnet/minecraft/class_6885$class_6887;method_40249()Ljava/util/List;
official g
Lju$b;g()Ljava/util/List;
-
isBound
public boolean isBound()- Mappings:
Namespace Name Mixin selector named isBound
Lnet/minecraft/registry/entry/RegistryEntryList;isBound()Z
intermediary method_62680
Lnet/minecraft/class_6885;method_62680()Z
official c
Lju;c()Z
-
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 getStorage
Lnet/minecraft/registry/entry/RegistryEntryList;getStorage()Lcom/mojang/datafixers/util/Either;
intermediary method_40248
Lnet/minecraft/class_6885;method_40248()Lcom/mojang/datafixers/util/Either;
official d
Lju;d()Lcom/mojang/datafixers/util/Either;
-
getTagKey
- Mappings:
Namespace Name Mixin selector named getTagKey
Lnet/minecraft/registry/entry/RegistryEntryList;getTagKey()Ljava/util/Optional;
intermediary method_45925
Lnet/minecraft/class_6885;method_45925()Ljava/util/Optional;
official e
Lju;e()Ljava/util/Optional;
-
contains
Returns whetherentry
is in this list.- Returns:
- whether
entry
is in this list - Mappings:
Namespace Name Mixin selector named contains
Lnet/minecraft/registry/entry/RegistryEntryList;contains(Lnet/minecraft/registry/entry/RegistryEntry;)Z
intermediary method_40241
Lnet/minecraft/class_6885;method_40241(Lnet/minecraft/class_6880;)Z
official a
Lju;a(Ljq;)Z
-
toString
-
ownerEquals
- Specified by:
ownerEquals
in interfaceRegistryEntryList<T>
- Overrides:
ownerEquals
in classRegistryEntryList.ListBacked<T>
- Mappings:
Namespace Name Mixin selector named ownerEquals
Lnet/minecraft/registry/entry/RegistryEntryList;ownerEquals(Lnet/minecraft/registry/entry/RegistryEntryOwner;)Z
intermediary method_46768
Lnet/minecraft/class_6885;method_46768(Lnet/minecraft/class_7876;)Z
official a
Lju;a(Ljt;)Z
-