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>

public static class RegistryEntryList.Named<T> extends RegistryEntryList.ListBacked<T>
A registry entry list that references a tag from the registry.
Mappings:
Namespace Name
official hi$c
intermediary net/minecraft/class_6885$class_6888
named net/minecraft/registry/entry/RegistryEntryList$Named
  • Field Details

    • owner

      private final RegistryEntryOwner<T> owner
      Mappings:
      Namespace Name Mixin selector
      official a Lhi$c;a:Lhh;
      intermediary field_40936 Lnet/minecraft/class_6885$class_6888;field_40936:Lnet/minecraft/class_7876;
      named owner Lnet/minecraft/registry/entry/RegistryEntryList$Named;owner:Lnet/minecraft/registry/entry/RegistryEntryOwner;
    • tag

      private final TagKey<T> tag
      Mappings:
      Namespace Name Mixin selector
      official b Lhi$c;b:Laqh;
      intermediary field_36459 Lnet/minecraft/class_6885$class_6888;field_36459:Lnet/minecraft/class_6862;
      named tag Lnet/minecraft/registry/entry/RegistryEntryList$Named;tag:Lnet/minecraft/registry/tag/TagKey;
    • entries

      private List<RegistryEntry<T>> entries
      Mappings:
      Namespace Name Mixin selector
      official c Lhi$c;c:Ljava/util/List;
      intermediary field_36460 Lnet/minecraft/class_6885$class_6888;field_36460:Ljava/util/List;
      named entries Lnet/minecraft/registry/entry/RegistryEntryList$Named;entries:Ljava/util/List;
  • Constructor Details

    • Named

      Named(RegistryEntryOwner<T> owner, TagKey<T> tag)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lhi$c;<init>(Lhh;Laqh;)V
      intermediary <init> Lnet/minecraft/class_6885$class_6888;<init>(Lnet/minecraft/class_7876;Lnet/minecraft/class_6862;)V
      named <init> Lnet/minecraft/registry/entry/RegistryEntryList$Named;<init>(Lnet/minecraft/registry/entry/RegistryEntryOwner;Lnet/minecraft/registry/tag/TagKey;)V
  • Method Details

    • copyOf

      void copyOf(List<RegistryEntry<T>> entries)
      Mappings:
      Namespace Name Mixin selector
      official b Lhi$c;b(Ljava/util/List;)V
      intermediary method_40250 Lnet/minecraft/class_6885$class_6888;method_40250(Ljava/util/List;)V
      named copyOf Lnet/minecraft/registry/entry/RegistryEntryList$Named;copyOf(Ljava/util/List;)V
    • getTag

      public TagKey<T> getTag()
      Returns the tag key that this list references.
      Returns:
      the tag key that this list references
      Mappings:
      Namespace Name Mixin selector
      official f Lhi$c;f()Laqh;
      intermediary method_40251 Lnet/minecraft/class_6885$class_6888;method_40251()Lnet/minecraft/class_6862;
      named getTag Lnet/minecraft/registry/entry/RegistryEntryList$Named;getTag()Lnet/minecraft/registry/tag/TagKey;
    • getEntries

      protected List<RegistryEntry<T>> getEntries()
      Specified by:
      getEntries in class RegistryEntryList.ListBacked<T>
      Mappings:
      Namespace Name Mixin selector
      official e Lhi$b;e()Ljava/util/List;
      intermediary method_40249 Lnet/minecraft/class_6885$class_6887;method_40249()Ljava/util/List;
      named getEntries Lnet/minecraft/registry/entry/RegistryEntryList$ListBacked;getEntries()Ljava/util/List;
    • getStorage

      public com.mojang.datafixers.util.Either<TagKey<T>,List<RegistryEntry<T>>> 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 c Lhi;c()Lcom/mojang/datafixers/util/Either;
      intermediary method_40248 Lnet/minecraft/class_6885;method_40248()Lcom/mojang/datafixers/util/Either;
      named getStorage Lnet/minecraft/registry/entry/RegistryEntryList;getStorage()Lcom/mojang/datafixers/util/Either;
    • getTagKey

      public Optional<TagKey<T>> getTagKey()
      Mappings:
      Namespace Name Mixin selector
      official d Lhi;d()Ljava/util/Optional;
      intermediary method_45925 Lnet/minecraft/class_6885;method_45925()Ljava/util/Optional;
      named getTagKey Lnet/minecraft/registry/entry/RegistryEntryList;getTagKey()Ljava/util/Optional;
    • contains

      public boolean contains(RegistryEntry<T> entry)
      Returns whether entry is in this list.
      Returns:
      whether entry is in this list
      Mappings:
      Namespace Name Mixin selector
      official a Lhi;a(Lhe;)Z
      intermediary method_40241 Lnet/minecraft/class_6885;method_40241(Lnet/minecraft/class_6880;)Z
      named contains Lnet/minecraft/registry/entry/RegistryEntryList;contains(Lnet/minecraft/registry/entry/RegistryEntry;)Z
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • ownerEquals

      public boolean ownerEquals(RegistryEntryOwner<T> owner)
      Specified by:
      ownerEquals in interface RegistryEntryList<T>
      Overrides:
      ownerEquals in class RegistryEntryList.ListBacked<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lhi;a(Lhh;)Z
      intermediary method_46768 Lnet/minecraft/class_6885;method_46768(Lnet/minecraft/class_7876;)Z
      named ownerEquals Lnet/minecraft/registry/entry/RegistryEntryList;ownerEquals(Lnet/minecraft/registry/entry/RegistryEntryOwner;)Z