net.minecraft.core

public interface Registry<T>

extends com.mojang.serialization.Keyable, HolderLookup$RegistryLookup<T>, IdMap<T>

kd
net.minecraft.core.Registry
net.minecraft.class_2378
net.minecraft.registry.Registry
net.minecraft.core.IRegistry

Method summary

Modifier and TypeMethod
ResourceKey<? extends Registry<T>>
g()
key()
method_46765()
getKey()
default com.mojang.serialization.Codec<T>
q()
byNameCodec()
method_39673()
getCodec()
default com.mojang.serialization.Codec<Holder<T>>
r()
holderByNameCodec()
method_40294()
getEntryCodec()
private com.mojang.serialization.Codec<Holder$Reference<T>>
b()
referenceHolderWithLifecycle()
method_57059()
getReferenceEntryCodec()
private com.mojang.serialization.DataResult<Holder$Reference<T>>
a(jq<T> arg0)
safeCastToReference(Holder<T> arg0)
method_57061(class_6880<T> arg0)
validateReference(RegistryEntry<T> entry)
default <U> Stream<U>
keys(com.mojang.serialization.DynamicOps<U> arg0)
keys(com.mojang.serialization.DynamicOps<U> arg0)
keys(com.mojang.serialization.DynamicOps<U> arg0)
keys(com.mojang.serialization.DynamicOps<U> ops)
ResourceLocation
b(T arg0)
getKey(T arg0)
method_10221(T arg0)
getId(T value)
Optional<ResourceKey<T>>
d(T arg0)
getResourceKey(T arg0)
method_29113(T arg0)
getKey(T entry)
int
a(T arg0)
getId(T arg0)
method_10206(T arg0)
getRawId(T arg0)
T
c(aly<T> arg0)
getValue(ResourceKey<T> arg0)
method_29107(class_5321<T> arg0)
get(RegistryKey<T> key)
T
a(alz arg0)
getValue(ResourceLocation arg0)
method_63535(class_2960 arg0)
get(Identifier id)
Optional<RegistrationInfo>
d(aly<T> arg0)
registrationInfo(ResourceKey<T> arg0)
method_57058(class_5321<T> arg0)
getEntryInfo(RegistryKey<T> key)
default Optional<T>
b(alz arg0)
getOptional(ResourceLocation arg0)
method_17966(class_2960 arg0)
getOptionalValue(Identifier id)
default Optional<T>
f(aly<T> arg0)
getOptional(ResourceKey<T> arg0)
method_31189(class_5321<T> arg0)
getOptionalValue(RegistryKey<T> key)
Optional<Holder$Reference<T>>
a()
getAny()
method_60385()
getDefaultEntry()
default T
g(aly<T> arg0)
getValueOrThrow(ResourceKey<T> arg0)
method_31140(class_5321<T> arg0)
getValueOrThrow(RegistryKey<T> key)
Set<ResourceLocation>
i()
keySet()
method_10235()
getIds()
Set<Map$Entry<ResourceKey<T>, T>>
k()
entrySet()
method_29722()
getEntrySet()
Set<ResourceKey<T>>
j()
registryKeySet()
method_42021()
getKeys()
Optional<Holder$Reference<T>>
a(bam arg0)
getRandom(RandomSource arg0)
method_10240(class_5819 arg0)
getRandom(Random random)
default Stream<T>
s()
stream()
method_10220()
stream()
boolean
d(alz arg0)
containsKey(ResourceLocation arg0)
method_10250(class_2960 arg0)
containsId(Identifier id)
boolean
e(aly<T> arg0)
containsKey(ResourceKey<T> arg0)
method_35842(class_5321<T> arg0)
contains(RegistryKey<T> key)
static <T> T
a(kd<? super T> arg0, String arg1, T arg2)
register(Registry<? super T> arg0, String arg1, T arg2)
method_10226(class_2378<? super T> arg0, String arg1, T arg2)
register(Registry<? super T> registry, String id, T entry)
static <V, T extends V> T
a(kd<V> arg0, alz arg1, T arg2)
register(Registry<V> arg0, ResourceLocation arg1, T arg2)
method_10230(class_2378<V> arg0, class_2960 arg1, T arg2)
register(Registry<V> registry, Identifier id, T entry)
static <V, T extends V> T
a(kd<V> arg0, aly<V> arg1, T arg2)
register(Registry<V> arg0, ResourceKey<V> arg1, T arg2)
method_39197(class_2378<V> arg0, class_5321<V> arg1, T arg2)
register(Registry<V> registry, RegistryKey<V> key, T entry)
static <T> Holder$Reference<T>
b(kd<T> arg0, aly<T> arg1, T arg2)
registerForHolder(Registry<T> arg0, ResourceKey<T> arg1, T arg2)
method_47984(class_2378<T> arg0, class_5321<T> arg1, T arg2)
registerReference(Registry<T> registry, RegistryKey<T> key, T entry)
static <T> Holder$Reference<T>
b(kd<T> arg0, alz arg1, T arg2)
registerForHolder(Registry<T> arg0, ResourceLocation arg1, T arg2)
method_47985(class_2378<T> arg0, class_2960 arg1, T arg2)
registerReference(Registry<T> registry, Identifier id, T entry)
Registry<T>
n()
freeze()
method_40276()
freeze()
Holder$Reference<T>
f(T arg0)
createIntrusiveHolder(T arg0)
method_40269(T arg0)
createEntry(T value)
Optional<Holder$Reference<T>>
c(int arg0)
get(int arg0)
method_40265(int arg0)
getEntry(int rawId)
Optional<Holder$Reference<T>>
c(alz arg0)
get(ResourceLocation arg0)
method_10223(class_2960 arg0)
getEntry(Identifier id)
Holder<T>
e(T arg0)
wrapAsHolder(T arg0)
method_47983(T arg0)
getEntry(T value)
default Iterable<Holder<T>>
c(ayk<T> arg0)
getTagOrEmpty(TagKey<T> arg0)
method_40286(class_6862<T> arg0)
iterateEntries(TagKey<T> tag)
default Optional<Holder<T>>
a(ayk<T> arg0, bam arg1)
getRandomElementOf(TagKey<T> arg0, RandomSource arg1)
method_56159(class_6862<T> arg0, class_5819 arg1)
getRandomEntry(TagKey<T> tag, Random random)
Stream<HolderSet$Named<T>>
l()
getTags()
method_40272()
streamTags()
default IdMap<Holder<T>>
t()
asHolderIdMap()
method_40295()
getIndexedEntries()
Registry$PendingTags<T>
a(ayl$c<T> arg0)
prepareTagReload(TagLoader$LoadResult<T> arg0)
method_62683(class_3503$class_6863<T> arg0)
startTagReload(TagGroupLoader$RegistryTags<T> tags)