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 heintermediary net/minecraft/class_6885named net/minecraft/util/registry/RegistryEntryList
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(RegistryEntry<T> entry) get(int index) com.mojang.datafixers.util.Either<TagKey<T>,List<RegistryEntry<T>>> booleanstatic <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) intsize()stream()Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
stream
Stream<RegistryEntry<T>> stream()- Mappings:
Namespace Name Mixin selector official aLhe;a()Ljava/util/stream/Stream;intermediary method_40239Lnet/minecraft/class_6885;method_40239()Ljava/util/stream/Stream;named streamLnet/minecraft/util/registry/RegistryEntryList;stream()Ljava/util/stream/Stream;
-
size
int size()- Mappings:
Namespace Name Mixin selector official bLhe;b()Iintermediary method_40247Lnet/minecraft/class_6885;method_40247()Inamed sizeLnet/minecraft/util/registry/RegistryEntryList;size()I
-
getStorage
com.mojang.datafixers.util.Either<TagKey<T>,List<RegistryEntry<T>>> getStorage()- Mappings:
Namespace Name Mixin selector official cLhe;c()Lcom/mojang/datafixers/util/Either;intermediary method_40248Lnet/minecraft/class_6885;method_40248()Lcom/mojang/datafixers/util/Either;named getStorageLnet/minecraft/util/registry/RegistryEntryList;getStorage()Lcom/mojang/datafixers/util/Either;
-
getRandom
- Mappings:
Namespace Name Mixin selector official aLhe;a(Lalu;)Ljava/util/Optional;intermediary method_40243Lnet/minecraft/class_6885;method_40243(Lnet/minecraft/class_5819;)Ljava/util/Optional;named getRandomLnet/minecraft/util/registry/RegistryEntryList;getRandom(Lnet/minecraft/util/math/random/Random;)Ljava/util/Optional;
-
get
- Mappings:
Namespace Name Mixin selector official aLhe;a(I)Lhc;intermediary method_40240Lnet/minecraft/class_6885;method_40240(I)Lnet/minecraft/class_6880;named getLnet/minecraft/util/registry/RegistryEntryList;get(I)Lnet/minecraft/util/registry/RegistryEntry;
-
contains
- Mappings:
Namespace Name Mixin selector official aLhe;a(Lhc;)Zintermediary method_40241Lnet/minecraft/class_6885;method_40241(Lnet/minecraft/class_6880;)Znamed containsLnet/minecraft/util/registry/RegistryEntryList;contains(Lnet/minecraft/util/registry/RegistryEntry;)Z
-
isOf
- Mappings:
Namespace Name Mixin selector official aLhe;a(Lhm;)Zintermediary method_40560Lnet/minecraft/class_6885;method_40560(Lnet/minecraft/class_2378;)Znamed isOfLnet/minecraft/util/registry/RegistryEntryList;isOf(Lnet/minecraft/util/registry/Registry;)Z
-
of
- Mappings:
Namespace Name Mixin selector official aLhe;a([Lhc;)Lhe$a;intermediary method_40246Lnet/minecraft/class_6885;method_40246([Lnet/minecraft/class_6880;)Lnet/minecraft/class_6885$class_6886;named ofLnet/minecraft/util/registry/RegistryEntryList;of([Lnet/minecraft/util/registry/RegistryEntry;)Lnet/minecraft/util/registry/RegistryEntryList$Direct;
-
of
- Mappings:
Namespace Name Mixin selector official aLhe;a(Ljava/util/List;)Lhe$a;intermediary method_40242Lnet/minecraft/class_6885;method_40242(Ljava/util/List;)Lnet/minecraft/class_6885$class_6886;named ofLnet/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 aLhe;a(Ljava/util/function/Function;[Ljava/lang/Object;)Lhe$a;intermediary method_40245Lnet/minecraft/class_6885;method_40245(Ljava/util/function/Function;[Ljava/lang/Object;)Lnet/minecraft/class_6885$class_6886;named ofLnet/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 aLhe;a(Ljava/util/function/Function;Ljava/util/List;)Lhe$a;intermediary method_40244Lnet/minecraft/class_6885;method_40244(Ljava/util/function/Function;Ljava/util/List;)Lnet/minecraft/class_6885$class_6886;named ofLnet/minecraft/util/registry/RegistryEntryList;of(Ljava/util/function/Function;Ljava/util/List;)Lnet/minecraft/util/registry/RegistryEntryList$Direct;
-