net.minecraft.registry

public interface RegistryEntryLookup<T>

extends RegistryEntryOwner<T>

net.minecraft.core.HolderGetter
net.minecraft.core.HolderGetter
net.minecraft.class_7871
net.minecraft.registry.RegistryEntryLookup

Method summary

Modifier and TypeMethod
Optional<RegistryEntry$Reference<T>>
get(ResourceKey<T> id)
get(ResourceKey<T> id)
method_46746(class_5321<T> arg0)
getOptional(RegistryKey<T> key)
default RegistryEntry$Reference<T>
getOrThrow(ResourceKey<T> id)
getOrThrow(ResourceKey<T> id)
method_46747(class_5321<T> arg0)
getOrThrow(RegistryKey<T> key)
Optional<RegistryEntryList$Named<T>>
get(TagKey<T> id)
get(TagKey<T> id)
method_46733(class_6862<T> arg0)
getOptional(TagKey<T> tag)
default RegistryEntryList$Named<T>
getOrThrow(TagKey<T> id)
getOrThrow(TagKey<T> id)
method_46735(class_6862<T> arg0)
getOrThrow(TagKey<T> tag)
default Optional<RegistryEntry<T>>
getRandomElementOf(TagKey<T> tag, RandomSource random)
getRandomElementOf(TagKey<T> tag, RandomSource random)
method_73042(class_6862<T> arg0, class_5819 arg1)
getRandomEntry(TagKey<T> tag, Random random)