Interface RegistryEntryList<T>

All Superinterfaces:
Iterable<RegistryEntry<T>>
All Known Implementing Classes:
RegistryEntryList.Direct, RegistryEntryList.ListBacked, RegistryEntryList.Named

public interface RegistryEntryList<T> extends Iterable<RegistryEntry<T>>
Mappings:
Namespace Name
official he
intermediary net/minecraft/class_6885
named net/minecraft/util/registry/RegistryEntryList
  • Method Details

    • stream

      Stream<RegistryEntry<T>> stream()
      Mappings:
      Namespace Name Mixin selector
      official a Lhe;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;
    • size

      int size()
      Mappings:
      Namespace Name Mixin selector
      official b Lhe;b()I
      intermediary method_40247 Lnet/minecraft/class_6885;method_40247()I
      named size Lnet/minecraft/util/registry/RegistryEntryList;size()I
    • getStorage

      com.mojang.datafixers.util.Either<TagKey<T>,List<RegistryEntry<T>>> getStorage()
      Mappings:
      Namespace Name Mixin selector
      official c Lhe;c()Lcom/mojang/datafixers/util/Either;
      intermediary method_40248 Lnet/minecraft/class_6885;method_40248()Lcom/mojang/datafixers/util/Either;
      named getStorage Lnet/minecraft/util/registry/RegistryEntryList;getStorage()Lcom/mojang/datafixers/util/Either;
    • getRandom

      Optional<RegistryEntry<T>> getRandom(Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lhe;a(Lamn;)Ljava/util/Optional;
      intermediary method_40243 Lnet/minecraft/class_6885;method_40243(Lnet/minecraft/class_5819;)Ljava/util/Optional;
      named getRandom Lnet/minecraft/util/registry/RegistryEntryList;getRandom(Lnet/minecraft/util/math/random/Random;)Ljava/util/Optional;
    • get

      RegistryEntry<T> get(int index)
      Mappings:
      Namespace Name Mixin selector
      official a Lhe;a(I)Lhc;
      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;
    • contains

      boolean contains(RegistryEntry<T> entry)
      Mappings:
      Namespace Name Mixin selector
      official a Lhe;a(Lhc;)Z
      intermediary method_40241 Lnet/minecraft/class_6885;method_40241(Lnet/minecraft/class_6880;)Z
      named contains Lnet/minecraft/util/registry/RegistryEntryList;contains(Lnet/minecraft/util/registry/RegistryEntry;)Z
    • isOf

      boolean isOf(Registry<T> registry)
      Mappings:
      Namespace Name Mixin selector
      official a Lhe;a(Lhm;)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
    • of

      @SafeVarargs static <T> RegistryEntryList.Direct<T> of(RegistryEntry<T>[] entries)
      Mappings:
      Namespace Name Mixin selector
      official a Lhe;a([Lhc;)Lhe$a;
      intermediary method_40246 Lnet/minecraft/class_6885;method_40246([Lnet/minecraft/class_6880;)Lnet/minecraft/class_6885$class_6886;
      named of Lnet/minecraft/util/registry/RegistryEntryList;of([Lnet/minecraft/util/registry/RegistryEntry;)Lnet/minecraft/util/registry/RegistryEntryList$Direct;
    • of

      static <T> RegistryEntryList.Direct<T> of(List<? extends RegistryEntry<T>> entries)
      Mappings:
      Namespace Name Mixin selector
      official a Lhe;a(Ljava/util/List;)Lhe$a;
      intermediary method_40242 Lnet/minecraft/class_6885;method_40242(Ljava/util/List;)Lnet/minecraft/class_6885$class_6886;
      named of Lnet/minecraft/util/registry/RegistryEntryList;of(Ljava/util/List;)Lnet/minecraft/util/registry/RegistryEntryList$Direct;
    • of

      @SafeVarargs static <E, T> RegistryEntryList.Direct<T> of(Function<E,RegistryEntry<T>> mapper, E[] values)
      Mappings:
      Namespace Name Mixin selector
      official a Lhe;a(Ljava/util/function/Function;[Ljava/lang/Object;)Lhe$a;
      intermediary method_40245 Lnet/minecraft/class_6885;method_40245(Ljava/util/function/Function;[Ljava/lang/Object;)Lnet/minecraft/class_6885$class_6886;
      named of Lnet/minecraft/util/registry/RegistryEntryList;of(Ljava/util/function/Function;[Ljava/lang/Object;)Lnet/minecraft/util/registry/RegistryEntryList$Direct;
    • of

      static <E, T> RegistryEntryList.Direct<T> of(Function<E,RegistryEntry<T>> mapper, List<E> values)
      Mappings:
      Namespace Name Mixin selector
      official a Lhe;a(Ljava/util/function/Function;Ljava/util/List;)Lhe$a;
      intermediary method_40244 Lnet/minecraft/class_6885;method_40244(Ljava/util/function/Function;Ljava/util/List;)Lnet/minecraft/class_6885$class_6886;
      named of Lnet/minecraft/util/registry/RegistryEntryList;of(Ljava/util/function/Function;Ljava/util/List;)Lnet/minecraft/util/registry/RegistryEntryList$Direct;