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

Method summary

Modifier and TypeMethod
ResourceKey<? extends Registry<T>>
c()
key()
method_30517()
getKey()
m_123023_()
default com.mojang.serialization.Codec<T>
q()
byNameCodec()
method_39673()
getCodec()
m_194605_()
default com.mojang.serialization.Codec<Holder<T>>
r()
holderByNameCodec()
method_40294()
getEntryCodec()
m_206110_()
private com.mojang.serialization.Codec<Holder$Reference<T>>
a()
referenceHolderWithLifecycle()
method_57059()
getReferenceEntryCodec()
m_322937_()
private com.mojang.serialization.DataResult<Holder$Reference<T>>
a(ji<T> arg0)
safeCastToReference(Holder<T> arg0)
method_57061(class_6880<T> arg0)
validateReference(RegistryEntry<T> entry)
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)
getId(T value)
m_7981_(T arg0)
Optional<ResourceKey<T>>
d(T arg0)
getResourceKey(T arg0)
method_29113(T arg0)
getKey(T entry)
m_7854_(T arg0)
int
a(T arg0)
getId(T arg0)
method_10206(T arg0)
getRawId(T arg0)
m_7447_(T arg0)
T
a(ale<T> arg0)
get(ResourceKey<T> arg0)
method_29107(class_5321<T> arg0)
get(RegistryKey<T> key)
m_6246_(C_5264_<T> arg0)
T
a(alf arg0)
get(ResourceLocation arg0)
method_10223(class_2960 arg0)
get(Identifier id)
m_7745_(C_5265_ arg0)
Optional<RegistrationInfo>
c(ale<T> arg0)
registrationInfo(ResourceKey<T> arg0)
method_57058(class_5321<T> arg0)
getEntryInfo(RegistryKey<T> key)
m_6228_(C_5264_<T> arg0)
com.mojang.serialization.Lifecycle
d()
registryLifecycle()
method_31138()
getLifecycle()
m_203658_()
default Optional<T>
b(alf arg0)
getOptional(ResourceLocation arg0)
method_17966(class_2960 arg0)
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)
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)
getOrThrow(RegistryKey<T> key)
m_123013_(C_5264_<T> arg0)
Set<ResourceLocation>
e()
keySet()
method_10235()
getIds()
m_6566_()
Set<Map$Entry<ResourceKey<T>, T>>
g()
entrySet()
method_29722()
getEntrySet()
m_6579_()
Set<ResourceKey<T>>
f()
registryKeySet()
method_42021()
getKeys()
m_214010_()
Optional<Holder$Reference<T>>
a(azh arg0)
getRandom(RandomSource arg0)
method_10240(class_5819 arg0)
getRandom(Random random)
m_213642_(C_212974_ arg0)
default Stream<T>
s()
stream()
method_10220()
stream()
m_123024_()
boolean
d(alf arg0)
containsKey(ResourceLocation arg0)
method_10250(class_2960 arg0)
containsId(Identifier id)
m_7804_(C_5265_ arg0)
boolean
d(ale<T> arg0)
containsKey(ResourceKey<T> arg0)
method_35842(class_5321<T> arg0)
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)
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)
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)
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)
registerReference(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)
registerReference(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()
freeze()
m_203521_()
Holder$Reference<T>
f(T arg0)
createIntrusiveHolder(T arg0)
method_40269(T arg0)
createEntry(T value)
m_203693_(T arg0)
Optional<Holder$Reference<T>>
c(int arg0)
getHolder(int arg0)
method_40265(int arg0)
getEntry(int rawId)
m_203300_(int arg0)
Optional<Holder$Reference<T>>
c(alf arg0)
getHolder(ResourceLocation arg0)
method_55841(class_2960 arg0)
getEntry(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)
getEntry(RegistryKey<T> key)
m_203636_(C_5264_<T> arg0)
Holder<T>
e(T arg0)
wrapAsHolder(T arg0)
method_47983(T arg0)
getEntry(T value)
m_263177_(T arg0)
default Holder$Reference<T>
g(ale<T> arg0)
getHolderOrThrow(ResourceKey<T> arg0)
method_40290(class_5321<T> arg0)
entryOf(RegistryKey<T> key)
m_246971_(C_5264_<T> arg0)
Stream<Holder$Reference<T>>
h()
holders()
method_40270()
streamEntries()
m_203611_()
Optional<HolderSet$Named<T>>
b(axf<T> arg0)
getTag(TagKey<T> arg0)
method_40266(class_6862<T> arg0)
getEntryList(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)
iterateEntries(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)
getRandomEntry(TagKey<T> tag, Random 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)
getOrCreateEntryList(TagKey<T> tag)
m_203561_(C_203208_<T> arg0)
Stream<com.mojang.datafixers.util.Pair<TagKey<T>, HolderSet$Named<T>>>
i()
getTags()
method_40272()
streamTagsAndEntries()
m_203612_()
Stream<TagKey<T>>
j()
getTagNames()
method_40273()
streamTags()
m_203613_()
void
m()
resetTags()
method_40278()
clearTags()
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)
populateTags(Map<TagKey<T>, List<RegistryEntry<T>>> tagEntries)
m_203652_(Map<C_203208_<T>, List<C_203228_<T>>> arg0)
default IdMap<Holder<T>>
t()
asHolderIdMap()
method_40295()
getIndexedEntries()
m_206115_()
HolderOwner<T>
o()
holderOwner()
method_46770()
getEntryOwner()
m_255331_()
HolderLookup$RegistryLookup<T>
p()
asLookup()
method_46771()
getReadOnlyWrapper()
m_255303_()
default HolderLookup$RegistryLookup<T>
u()
asTagAddingLookup()
method_46772()
getTagCreatingWrapper()
m_255014_()