net.minecraft.registry.entry

public interface RegistryEntryList<T>

extends Iterable<RegistryEntry<T>>

net.minecraft.core.HolderSet
net.minecraft.class_6885
net.minecraft.registry.entry.RegistryEntryList

Method summary

Modifier and TypeMethod
Stream<RegistryEntry<T>>
stream()
method_40239()
stream()
int
size()
method_40247()
size()
boolean
isBound()
method_62680()
isBound()
com.mojang.datafixers.util.Either<TagKey<T>, List<RegistryEntry<T>>>
unwrap()
method_40248()
getStorage()
Optional<RegistryEntry<T>>
getRandomElement(RandomSource random)
method_40243(class_5819 arg0)
getRandom(Random random)
RegistryEntry<T>
get(int index)
method_40240(int arg0)
get(int index)
boolean
contains(Holder<T> value)
method_40241(class_6880<T> arg0)
contains(RegistryEntry<T> entry)
boolean
canSerializeIn(HolderOwner<T> owner)
method_46768(class_7876<T> arg0)
ownerEquals(RegistryEntryOwner<T> owner)
Optional<TagKey<T>>
unwrapKey()
method_45925()
getTagKey()
static <T> RegistryEntryList$Named<T>
emptyNamed(HolderOwner<T> owner, TagKey<T> key)
method_45924(class_7876<T> arg0, class_6862<T> arg1)
of(RegistryEntryOwner<T> owner, TagKey<T> tagKey)
static <T> RegistryEntryList<T>
empty()
method_58563()
empty()
static <T> RegistryEntryList$Direct<T>
direct(Holder<T>... values)
method_40246(class_6880<T>... arg0)
of(RegistryEntry<T>... entries)
static <T> RegistryEntryList$Direct<T>
direct(List<? extends Holder<T>> values)
method_40242(List<? extends class_6880<T>> arg0)
of(List<? extends RegistryEntry<T>> entries)
static <E, T> RegistryEntryList$Direct<T>
direct(Function<E, Holder<T>> holderGetter, E... elements)
method_40245(Function<E, class_6880<T>> arg0, E... arg1)
of(Function<E, RegistryEntry<T>> mapper, E... values)
static <E, T> RegistryEntryList$Direct<T>
direct(Function<E, Holder<T>> holderGetter, Collection<E> elements)
method_40244(Function<E, class_6880<T>> arg0, Collection<E> arg1)
of(Function<E, RegistryEntry<T>> mapper, Collection<E> values)