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.unmapped.C_tqxyjqsk
net.minecraft.registry.Registry
net.minecraft.registry.Registry
net.minecraft.src.C_4705_
net.minecraft.core.IRegistry

Method summary

Modifier and TypeMethod
ResourceKey<? extends Registry<T>>
g()
key()
method_46765()
m_wgqigdhk()
getKey()
getKey()
m_123023_()
default com.mojang.serialization.Codec<T>
q()
byNameCodec()
method_39673()
m_pvyfqcdo()
getCodec()
getCodec()
m_194605_()
default com.mojang.serialization.Codec<Holder<T>>
r()
holderByNameCodec()
method_40294()
m_pquqhkot()
getEntryCodec()
holderByNameCodec()
m_206110_()
private com.mojang.serialization.Codec<Holder$Reference<T>>
b()
referenceHolderWithLifecycle()
method_57059()
m_ksueyykv()
getReferenceEntryCodec()
getReferenceHolderWithLifecycle()
m_322937_()
private com.mojang.serialization.DataResult<Holder$Reference<T>>
a(jq<T> arg0)
safeCastToReference(Holder<T> arg0)
method_57061(class_6880<T> arg0)
m_qkhirdbw(C_cjzoxshv<T> arg0)
validateReference(RegistryEntry<T> entry)
validateReference(Holder<T> holder)
m_324863_(C_203228_<T> arg0)
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)
keys(com.mojang.serialization.DynamicOps<U> arg0)
ResourceLocation
b(T arg0)
getKey(T arg0)
method_10221(T arg0)
m_vqpjfuha(T arg0)
getId(T value)
getId(T entry)
m_7981_(T arg0)
Optional<ResourceKey<T>>
d(T arg0)
getResourceKey(T arg0)
method_29113(T arg0)
m_cjwbheqc(T arg0)
getKey(T entry)
getKey(T entry)
m_7854_(T arg0)
int
a(T arg0)
getId(T arg0)
method_10206(T arg0)
m_rauboliw(T arg0)
getRawId(T arg0)
getRawId(T arg0)
m_7447_(T arg0)
T
c(aly<T> arg0)
getValue(ResourceKey<T> arg0)
method_29107(class_5321<T> arg0)
m_ifyosden(C_xhhleach<T> arg0)
get(RegistryKey<T> key)
get(RegistryKey<T> key)
m_122713_(C_5264_<T> arg0)
T
a(alz arg0)
getValue(ResourceLocation arg0)
method_63535(class_2960 arg0)
m_kxeijgiq(C_ncpywfca arg0)
get(Identifier id)
get(Identifier id)
m_122327_(C_5265_ arg0)
Optional<RegistrationInfo>
d(aly<T> arg0)
registrationInfo(ResourceKey<T> arg0)
method_57058(class_5321<T> arg0)
m_nlhggctm(C_xhhleach<T> arg0)
getEntryInfo(RegistryKey<T> key)
getRegistrationInfo(RegistryKey<T> key)
m_6228_(C_5264_<T> arg0)
default Optional<T>
b(alz arg0)
getOptional(ResourceLocation arg0)
method_17966(class_2960 arg0)
m_vnyaisgo(C_ncpywfca arg0)
getOptionalValue(Identifier id)
getOrEmpty(Identifier id)
m_6612_(C_5265_ arg0)
default Optional<T>
f(aly<T> arg0)
getOptional(ResourceKey<T> arg0)
method_31189(class_5321<T> arg0)
m_ikxlhrge(C_xhhleach<T> arg0)
getOptionalValue(RegistryKey<T> key)
getOrEmpty(RegistryKey<T> key)
m_123009_(C_5264_<T> arg0)
Optional<Holder$Reference<T>>
a()
getAny()
method_60385()
m_vongjcbr()
getDefaultEntry()
findAny()
m_338366_()
default T
g(aly<T> arg0)
getValueOrThrow(ResourceKey<T> arg0)
method_31140(class_5321<T> arg0)
m_auupvvtk(C_xhhleach<T> arg0)
getValueOrThrow(RegistryKey<T> key)
getOrThrow(RegistryKey<T> key)
m_356090_(C_5264_<T> arg0)
Set<ResourceLocation>
i()
keySet()
method_10235()
m_tuivosjn()
getIds()
getIds()
m_6566_()
Set<Map$Entry<ResourceKey<T>, T>>
k()
entrySet()
method_29722()
m_nqoydeav()
getEntrySet()
getEntries()
m_6579_()
Set<ResourceKey<T>>
j()
registryKeySet()
method_42021()
m_ckzkjowv()
getKeys()
getKeys()
m_214010_()
Optional<Holder$Reference<T>>
a(bam arg0)
getRandom(RandomSource arg0)
method_10240(class_5819 arg0)
m_uxrzxmkr(C_rlomrsco arg0)
getRandom(Random random)
getRandom(RandomGenerator random)
m_213642_(C_212974_ arg0)
default Stream<T>
s()
stream()
method_10220()
m_leajtcub()
stream()
stream()
m_123024_()
boolean
d(alz arg0)
containsKey(ResourceLocation arg0)
method_10250(class_2960 arg0)
m_slujyvbt(C_ncpywfca arg0)
containsId(Identifier id)
containsId(Identifier id)
m_7804_(C_5265_ arg0)
boolean
e(aly<T> arg0)
containsKey(ResourceKey<T> arg0)
method_35842(class_5321<T> arg0)
m_ueokaqte(C_xhhleach<T> arg0)
contains(RegistryKey<T> key)
contains(RegistryKey<T> key)
m_142003_(C_5264_<T> arg0)
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)
m_xyrkdyzg(C_tqxyjqsk<? super T> arg0, String arg1, T arg2)
register(Registry<? super T> registry, String id, T entry)
register(Registry<? super T> registry, String id, T entry)
m_122961_(C_4705_<? super T> p_122962_, String p_122963_, T p_122964_)
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)
m_nqhcjajy(C_tqxyjqsk<V> arg0, C_ncpywfca arg1, T arg2)
register(Registry<V> registry, Identifier id, T entry)
register(Registry<V> registry, Identifier id, T entry)
m_122965_(C_4705_<V> p_122966_, C_5265_ p_122967_, T p_122968_)
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)
m_vctomypu(C_tqxyjqsk<V> arg0, C_xhhleach<V> arg1, T arg2)
register(Registry<V> registry, RegistryKey<V> key, T entry)
register(Registry<V> registry, RegistryKey<V> key, T entry)
m_194579_(C_4705_<V> p_194580_, C_5264_<V> p_194581_, T p_194582_)
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)
m_wvmzcded(C_tqxyjqsk<T> arg0, C_xhhleach<T> arg1, T arg2)
registerReference(Registry<T> registry, RegistryKey<T> key, T entry)
registryHolder(Registry<T> registry, RegistryKey<T> key, T entry)
m_263175_(C_4705_<T> p_263347_, C_5264_<T> p_263355_, T p_263428_)
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)
m_jktnfzok(C_tqxyjqsk<T> arg0, C_ncpywfca arg1, T arg2)
registerReference(Registry<T> registry, Identifier id, T entry)
registerHolder(Registry<T> registry, Identifier id, T entry)
m_263174_(C_4705_<T> p_263351_, C_5265_ p_263363_, T p_263423_)
Registry<T>
n()
freeze()
method_40276()
m_fiunuwfp()
freeze()
freeze()
m_203521_()
Holder$Reference<T>
f(T arg0)
createIntrusiveHolder(T arg0)
method_40269(T arg0)
m_dixnzblu(T arg0)
createEntry(T value)
createIntrusiveHolder(T entry)
m_203693_(T arg0)
Optional<Holder$Reference<T>>
c(int arg0)
get(int arg0)
method_40265(int arg0)
m_iotvxcay(int arg0)
getEntry(int rawId)
find(int rawId)
m_7745_(int arg0)
Optional<Holder$Reference<T>>
c(alz arg0)
get(ResourceLocation arg0)
method_10223(class_2960 arg0)
m_hnixtpdg(C_ncpywfca arg0)
getEntry(Identifier id)
find(Identifier id)
m_6246_(C_5265_ arg0)
Holder<T>
e(T arg0)
wrapAsHolder(T arg0)
method_47983(T arg0)
m_bpoptgww(T arg0)
getEntry(T value)
wrapAsHolder(T entry)
m_263177_(T arg0)
default Iterable<Holder<T>>
c(ayk<T> arg0)
getTagOrEmpty(TagKey<T> arg0)
method_40286(class_6862<T> arg0)
m_keyttxmd(C_ednuhnnn<T> arg0)
iterateEntries(TagKey<T> tag)
getTagOrEmpty(TagKey<T> tag)
m_206058_(C_203208_<T> arg0)
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)
m_nzuihlla(C_ednuhnnn<T> arg0, C_rlomrsco arg1)
getRandomEntry(TagKey<T> tag, Random random)
getRandomElement(TagKey<T> tag, RandomGenerator random)
m_321004_(C_203208_<T> p_335036_, C_212974_ arg1)
Stream<HolderSet$Named<T>>
l()
getTags()
method_40272()
m_wicxsqqn()
streamTags()
streamBoundTags()
m_203612_()
default IdMap<Holder<T>>
t()
asHolderIdMap()
method_40295()
m_qeyctvgm()
getIndexedEntries()
asHolderIdMap()
m_206115_()
Registry$PendingTags<T>
a(ayl$c<T> arg0)
prepareTagReload(TagLoader$LoadResult<T> arg0)
method_62683(class_3503$class_6863<T> arg0)
m_prsibeni(C_loluvnda$C_shtfmyxy<T> arg0)
startTagReload(TagGroupLoader$RegistryTags<T> tags)
startTagReload(TagGroupLoader$RegistryTags<T> registryTags)
m_351680_(C_161_$C_345882_<T> arg0)