Package net.minecraft.util.registry
Interface RegistryEntryList<T>
- All Superinterfaces:
Iterable<RegistryEntry<T>>
- All Known Implementing Classes:
RegistryEntryList.Direct
,RegistryEntryList.ListBacked
,RegistryEntryList.Named
- Mappings:
Namespace Name official he
intermediary net/minecraft/class_6885
named net/minecraft/util/registry/RegistryEntryList
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
static class
static class
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(RegistryEntry<T> entry) get
(int index) com.mojang.datafixers.util.Either<TagKey<T>,
List<RegistryEntry<T>>> boolean
static <E,
T> RegistryEntryList.Direct<T> of
(Function<E, RegistryEntry<T>> mapper, E[] values) static <E,
T> RegistryEntryList.Direct<T> of
(Function<E, RegistryEntry<T>> mapper, List<E> values) static <T> RegistryEntryList.Direct<T>
of
(List<? extends RegistryEntry<T>> entries) static <T> RegistryEntryList.Direct<T>
of
(RegistryEntry<T>[] entries) int
size()
stream()
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
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
- 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
- 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
- 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
- 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
- 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
- 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
- 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;
-