net.minecraft.core

public interface Registry<T>

extends com.mojang.serialization.Keyable, IdMap<T>

jv
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>>
c()
key()
method_30517()
m_akxosniq()
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>>
a()
referenceHolderWithLifecycle()
method_57059()
m_ksueyykv()
getReferenceEntryCodec()
getReferenceHolderWithLifecycle()
m_322937_()
private com.mojang.serialization.DataResult<Holder$Reference<T>>
a(ji<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
a(ale<T> arg0)
get(ResourceKey<T> arg0)
method_29107(class_5321<T> arg0)
m_jouyrjiz(C_xhhleach<T> arg0)
get(RegistryKey<T> key)
get(RegistryKey<T> key)
m_6246_(C_5264_<T> arg0)
T
a(alf arg0)
get(ResourceLocation arg0)
method_10223(class_2960 arg0)
m_mazpxlja(C_ncpywfca arg0)
get(Identifier id)
get(Identifier id)
m_7745_(C_5265_ arg0)
Optional<RegistrationInfo>
c(ale<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> registryKey)
m_6228_(C_5264_<T> arg0)
com.mojang.serialization.Lifecycle
d()
registryLifecycle()
method_31138()
m_aotfisde()
getLifecycle()
getLifecycle()
m_203658_()
default Optional<T>
b(alf arg0)
getOptional(ResourceLocation arg0)
method_17966(class_2960 arg0)
m_vnyaisgo(C_ncpywfca arg0)
getOrEmpty(Identifier id)
getOrEmpty(Identifier id)
m_6612_(C_5265_ arg0)
default Optional<T>
e(ale<T> arg0)
getOptional(ResourceKey<T> arg0)
method_31189(class_5321<T> arg0)
m_ikxlhrge(C_xhhleach<T> arg0)
getOrEmpty(RegistryKey<T> key)
getOrEmpty(RegistryKey<T> key)
m_123009_(C_5264_<T> arg0)
default T
f(ale<T> arg0)
getOrThrow(ResourceKey<T> arg0)
method_31140(class_5321<T> arg0)
m_qomglfhh(C_xhhleach<T> arg0)
getOrThrow(RegistryKey<T> key)
getOrThrow(RegistryKey<T> key)
m_123013_(C_5264_<T> arg0)
Set<ResourceLocation>
e()
keySet()
method_10235()
m_tuivosjn()
getIds()
getIds()
m_6566_()
Set<Map$Entry<ResourceKey<T>, T>>
g()
entrySet()
method_29722()
m_nqoydeav()
getEntrySet()
getEntries()
m_6579_()
Set<ResourceKey<T>>
f()
registryKeySet()
method_42021()
m_ckzkjowv()
getKeys()
getKeys()
m_214010_()
Optional<Holder$Reference<T>>
a(azh 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(alf 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
d(ale<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(jv<? 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(jv<V> arg0, alf 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(jv<V> arg0, ale<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(jv<T> arg0, ale<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(jv<T> arg0, alf 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>
l()
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 holder)
m_203693_(T arg0)
Optional<Holder$Reference<T>>
c(int arg0)
getHolder(int arg0)
method_40265(int arg0)
m_icvixlic(int arg0)
getEntry(int rawId)
getHolder(int index)
m_203300_(int arg0)
Optional<Holder$Reference<T>>
c(alf arg0)
getHolder(ResourceLocation arg0)
method_55841(class_2960 arg0)
m_nxhthmir(C_ncpywfca arg0)
getEntry(Identifier id)
getHolder(Identifier id)
m_320017_(C_5265_ arg0)
Optional<Holder$Reference<T>>
b(ale<T> arg0)
getHolder(ResourceKey<T> arg0)
method_40264(class_5321<T> arg0)
m_jrpizpyt(C_xhhleach<T> arg0)
getEntry(RegistryKey<T> key)
getHolder(RegistryKey<T> key)
m_203636_(C_5264_<T> 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 Holder$Reference<T>
g(ale<T> arg0)
getHolderOrThrow(ResourceKey<T> arg0)
method_40290(class_5321<T> arg0)
m_eovqcbhp(C_xhhleach<T> arg0)
entryOf(RegistryKey<T> key)
getHolderOrThrow(RegistryKey<T> holder)
m_246971_(C_5264_<T> arg0)
Stream<Holder$Reference<T>>
h()
holders()
method_40270()
m_aeozypen()
streamEntries()
holders()
m_203611_()
Optional<HolderSet$Named<T>>
b(axf<T> arg0)
getTag(TagKey<T> arg0)
method_40266(class_6862<T> arg0)
m_zmzcglcp(C_ednuhnnn<T> arg0)
getEntryList(TagKey<T> tag)
getTag(TagKey<T> tag)
m_203431_(C_203208_<T> arg0)
default Iterable<Holder<T>>
c(axf<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(axf<T> arg0, azh 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)
HolderSet$Named<T>
a(axf<T> arg0)
getOrCreateTag(TagKey<T> arg0)
method_40260(class_6862<T> arg0)
m_yixsuhqe(C_ednuhnnn<T> arg0)
getOrCreateEntryList(TagKey<T> tag)
getOrCreateTag(TagKey<T> key)
m_203561_(C_203208_<T> arg0)
Stream<com.mojang.datafixers.util.Pair<TagKey<T>, HolderSet$Named<T>>>
i()
getTags()
method_40272()
m_wicxsqqn()
streamTagsAndEntries()
getTags()
m_203612_()
Stream<TagKey<T>>
j()
getTagNames()
method_40273()
m_ojrrpohi()
streamTags()
getTagKeys()
m_203613_()
void
m()
resetTags()
method_40278()
m_rpcsjdnz()
clearTags()
resetTags()
m_203635_()
void
a(Map<axf<T>, List<ji<T>>> arg0)
bindTags(Map<TagKey<T>, List<Holder<T>>> arg0)
method_40257(Map<class_6862<T>, List<class_6880<T>>> arg0)
m_hcgrzopp(Map<C_ednuhnnn<T>, List<C_cjzoxshv<T>>> arg0)
populateTags(Map<TagKey<T>, List<RegistryEntry<T>>> tagEntries)
bindTags(Map<TagKey<T>, List<Holder<T>>> tags)
m_203652_(Map<C_203208_<T>, List<C_203228_<T>>> arg0)
default IdMap<Holder<T>>
t()
asHolderIdMap()
method_40295()
m_qeyctvgm()
getIndexedEntries()
asHolderIdMap()
m_206115_()
HolderOwner<T>
o()
holderOwner()
method_46770()
m_zyikfshi()
getEntryOwner()
asHolderOwner()
m_255331_()
HolderLookup$RegistryLookup<T>
p()
asLookup()
method_46771()
m_ecfgtygn()
getReadOnlyWrapper()
asLookup()
m_255303_()
default HolderLookup$RegistryLookup<T>
u()
asTagAddingLookup()
method_46772()
m_vnzovfum()
getTagCreatingWrapper()
asTagAwareLookup()
m_255014_()