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.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()
createEntryCodec()
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)
getId(T value)
m_7981_(T arg0)
Optional<ResourceKey<T>>
c(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(aev<T> arg0)
get(ResourceKey<T> arg0)
method_29107(class_5321<T> arg0)
get(RegistryKey<T> key)
m_6246_(C_5264_<T> arg0)
T
a(aew arg0)
get(ResourceLocation arg0)
method_10223(class_2960 arg0)
get(Identifier id)
m_7745_(C_5265_ arg0)
com.mojang.serialization.Lifecycle
e(T arg0)
lifecycle(T arg0)
method_31139(T arg0)
getEntryLifecycle(T entry)
m_6228_(T arg0)
com.mojang.serialization.Lifecycle
d()
registryLifecycle()
method_31138()
getLifecycle()
m_203658_()
default Optional<T>
b(aew arg0)
getOptional(ResourceLocation arg0)
method_17966(class_2960 arg0)
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)
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)
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(asc 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
c(aew arg0)
containsKey(ResourceLocation arg0)
method_10250(class_2960 arg0)
containsId(Identifier id)
m_7804_(C_5265_ arg0)
boolean
c(aev<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(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)
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)
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)
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)
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(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)
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>>
b(aev<T> arg0)
getHolder(ResourceKey<T> arg0)
method_40264(class_5321<T> arg0)
getEntry(RegistryKey<T> key)
m_203636_(C_5264_<T> arg0)
Holder<T>
d(T arg0)
wrapAsHolder(T arg0)
method_47983(T arg0)
getEntry(T value)
m_263177_(T arg0)
default Holder$Reference<T>
f(aev<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(aqh<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(aqh<T> arg0)
getTagOrEmpty(TagKey<T> arg0)
method_40286(class_6862<T> arg0)
iterateEntries(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)
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<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)
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_()