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>

public static class RegistryEntryList.Direct<T> extends RegistryEntryList.ListBacked<T>
A direct registry entry list that holds the values directly, instead of using tags.
Mappings:
Namespace Name
official hd$a
intermediary net/minecraft/class_6885$class_6886
named net/minecraft/registry/entry/RegistryEntryList$Direct
  • Field Details

    • entries

      private final List<RegistryEntry<T>> entries
      Mappings:
      Namespace Name Mixin selector
      official a Lhd$a;a:Ljava/util/List;
      intermediary field_36457 Lnet/minecraft/class_6885$class_6886;field_36457:Ljava/util/List;
      named entries Lnet/minecraft/registry/entry/RegistryEntryList$Direct;entries:Ljava/util/List;
    • entrySet

      private Set<RegistryEntry<T>> entrySet
      Mappings:
      Namespace Name Mixin selector
      official b Lhd$a;b:Ljava/util/Set;
      intermediary field_36458 Lnet/minecraft/class_6885$class_6886;field_36458:Ljava/util/Set;
      named entrySet Lnet/minecraft/registry/entry/RegistryEntryList$Direct;entrySet:Ljava/util/Set;
  • Constructor Details

    • Direct

      Direct(List<RegistryEntry<T>> entries)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lhd$a;<init>(Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_6885$class_6886;<init>(Ljava/util/List;)V
      named <init> Lnet/minecraft/registry/entry/RegistryEntryList$Direct;<init>(Ljava/util/List;)V
  • Method Details

    • getEntries

      protected List<RegistryEntry<T>> getEntries()
      Specified by:
      getEntries in class RegistryEntryList.ListBacked<T>
      Mappings:
      Namespace Name Mixin selector
      official e Lhd$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 Lhd;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 Lhd;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 Lhd;a(Lgz;)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