Class RegistryEntryList.ListBacked<T>

java.lang.Object
net.minecraft.util.registry.RegistryEntryList.ListBacked<T>
All Implemented Interfaces:
Iterable<RegistryEntry<T>>, RegistryEntryList<T>
Direct Known Subclasses:
RegistryEntryList.Direct, RegistryEntryList.Named
Enclosing interface:
RegistryEntryList<T>

public abstract static class RegistryEntryList.ListBacked<T> extends Object implements RegistryEntryList<T>
Mappings:
Namespace Name
official gt$b
intermediary net/minecraft/class_6885$class_6887
named net/minecraft/util/registry/RegistryEntryList$ListBacked
  • Constructor Details

    • ListBacked

      public ListBacked()
  • Method Details

    • getEntries

      protected abstract List<RegistryEntry<T>> getEntries()
      Mappings:
      Namespace Name Mixin selector
      official d Lgt$b;d()Ljava/util/List;
      intermediary method_40249 Lnet/minecraft/class_6885$class_6887;method_40249()Ljava/util/List;
      named getEntries Lnet/minecraft/util/registry/RegistryEntryList$ListBacked;getEntries()Ljava/util/List;
    • size

      public int size()
      Specified by:
      size in interface RegistryEntryList<T>
      Mappings:
      Namespace Name Mixin selector
      official b Lgt;b()I
      intermediary method_40247 Lnet/minecraft/class_6885;method_40247()I
      named size Lnet/minecraft/util/registry/RegistryEntryList;size()I
    • spliterator

      public Spliterator<RegistryEntry<T>> spliterator()
      Specified by:
      spliterator in interface Iterable<T>
    • iterator

      public Iterator<RegistryEntry<T>> iterator()
      Specified by:
      iterator in interface Iterable<T>
    • stream

      public Stream<RegistryEntry<T>> stream()
      Specified by:
      stream in interface RegistryEntryList<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lgt;a()Ljava/util/stream/Stream;
      intermediary method_40239 Lnet/minecraft/class_6885;method_40239()Ljava/util/stream/Stream;
      named stream Lnet/minecraft/util/registry/RegistryEntryList;stream()Ljava/util/stream/Stream;
    • getRandom

      public Optional<RegistryEntry<T>> getRandom(Random random)
      Specified by:
      getRandom in interface RegistryEntryList<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lgt;a(Ljava/util/Random;)Ljava/util/Optional;
      intermediary method_40243 Lnet/minecraft/class_6885;method_40243(Ljava/util/Random;)Ljava/util/Optional;
      named getRandom Lnet/minecraft/util/registry/RegistryEntryList;getRandom(Ljava/util/Random;)Ljava/util/Optional;
    • get

      public RegistryEntry<T> get(int index)
      Specified by:
      get in interface RegistryEntryList<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lgt;a(I)Lgs;
      intermediary method_40240 Lnet/minecraft/class_6885;method_40240(I)Lnet/minecraft/class_6880;
      named get Lnet/minecraft/util/registry/RegistryEntryList;get(I)Lnet/minecraft/util/registry/RegistryEntry;
    • isOf

      public boolean isOf(Registry<T> registry)
      Specified by:
      isOf in interface RegistryEntryList<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lgt;a(Lhb;)Z
      intermediary method_40560 Lnet/minecraft/class_6885;method_40560(Lnet/minecraft/class_2378;)Z
      named isOf Lnet/minecraft/util/registry/RegistryEntryList;isOf(Lnet/minecraft/util/registry/Registry;)Z