net.minecraft.core

public interface Registry<T>

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

hq
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()
createEntryCodec()
holderByNameCodec()
m_206110_()
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>>
c(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(aev<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(aew 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)
com.mojang.serialization.Lifecycle
e(T arg0)
lifecycle(T arg0)
method_31139(T arg0)
m_sefrrypp(T arg0)
getEntryLifecycle(T entry)
getEntryLifecycle(T entry)
m_6228_(T arg0)
com.mojang.serialization.Lifecycle
d()
registryLifecycle()
method_31138()
m_aotfisde()
getLifecycle()
getLifecycle()
m_203658_()
default Optional<T>
b(aew 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>
d(aev<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
e(aev<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(asc 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
c(aew 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
c(aev<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(hq<? 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(hq<V> arg0, aew 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(hq<V> arg0, aev<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(hq<T> arg0, aev<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(hq<T> arg0, aew 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>>
b(aev<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>
d(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>
f(aev<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(aqh<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(aqh<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)
HolderSet$Named<T>
a(aqh<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<aqh<T>, List<he<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_()