net.minecraft.resources

public class ResourceKey<T>

akq
net.minecraft.resources.ResourceKey
net.minecraft.class_5321
net.minecraft.unmapped.C_xhhleach
net.minecraft.registry.RegistryKey
net.minecraft.registry.RegistryKey
net.minecraft.src.C_5264_
net.minecraft.resources.ResourceKey

Field summary

Modifier and TypeField
private static final ConcurrentMap<ResourceKey$InternKey, ResourceKey<?>>
a
VALUES
field_25136
f_nlfborlo
INSTANCES
INSTANCES
f_135775_
private final ResourceLocation
b
registryName
field_25137
f_olufpthr
registry
registry
f_135776_
private final ResourceLocation
c
location
field_25138
f_jevzsdmx
value
value
f_135777_

Constructor summary

ModifierConstructor
private (ResourceLocation registry, ResourceLocation value)

Method summary

Modifier and TypeMethod
public static <T> com.mojang.serialization.Codec<ResourceKey<T>>
a(akq<? extends jz<T>> arg0)
codec(ResourceKey<? extends Registry<T>> arg0)
method_39154(class_5321<? extends class_2378<T>> arg0)
m_omukrpmi(C_xhhleach<? extends C_tqxyjqsk<T>> arg0)
createCodec(RegistryKey<? extends Registry<T>> registry)
codec(RegistryKey<? extends Registry<T>> key)
m_195966_(C_5264_<? extends C_4705_<T>> p_195967_)
public static <T> StreamCodec<io.netty.buffer.ByteBuf, ResourceKey<T>>
b(akq<? extends jz<T>> arg0)
streamCodec(ResourceKey<? extends Registry<T>> arg0)
method_56038(class_5321<? extends class_2378<T>> arg0)
m_bbzwrvpr(C_xhhleach<? extends C_tqxyjqsk<T>> arg0)
createPacketCodec(RegistryKey<? extends Registry<T>> registry)
packetCodec(RegistryKey<? extends Registry<T>> registryKey)
m_323597_(C_5264_<? extends C_4705_<T>> p_335484_)
public static <T> ResourceKey<T>
a(akq<? extends jz<T>> arg0, akr arg1)
create(ResourceKey<? extends Registry<T>> arg0, ResourceLocation arg1)
method_29179(class_5321<? extends class_2378<T>> arg0, class_2960 arg1)
m_fvrtwzrl(C_xhhleach<? extends C_tqxyjqsk<T>> arg0, C_ncpywfca arg1)
of(RegistryKey<? extends Registry<T>> registry, Identifier value)
of(RegistryKey<? extends Registry<T>> registry, Identifier value)
m_135785_(C_5264_<? extends C_4705_<T>> p_135786_, C_5265_ p_135787_)
public static <T> ResourceKey<Registry<T>>
a(akr arg0)
createRegistryKey(ResourceLocation arg0)
method_29180(class_2960 arg0)
m_puwkoaeq(C_ncpywfca arg0)
ofRegistry(Identifier registry)
ofRegistry(Identifier registry)
m_135788_(C_5265_ p_135789_)
private static <T> ResourceKey<T>
a(akr arg0, akr arg1)
create(ResourceLocation arg0, ResourceLocation arg1)
method_29181(class_2960 arg0, class_2960 arg1)
m_gzfvlawi(C_ncpywfca arg0, C_ncpywfca arg1)
of(Identifier registry, Identifier value)
of(Identifier registry, Identifier value)
m_135790_(C_5265_ p_135791_, C_5265_ p_135792_)
public boolean
c(akq<? extends jz<?>> arg0)
isFor(ResourceKey<? extends Registry<?>> arg0)
method_31163(class_5321<? extends class_2378<?>> arg0)
m_odeqnmwq(C_xhhleach<? extends C_tqxyjqsk<?>> arg0)
isOf(RegistryKey<? extends Registry<?>> registry)
isOf(RegistryKey<? extends Registry<?>> registry)
m_135783_(C_5264_<? extends C_4705_<?>> arg0)
public <E> Optional<ResourceKey<E>>
d(akq<? extends jz<E>> arg0)
cast(ResourceKey<? extends Registry<E>> arg0)
method_39752(class_5321<? extends class_2378<E>> arg0)
m_yomlikvd(C_xhhleach<? extends C_tqxyjqsk<E>> arg0)
tryCast(RegistryKey<? extends Registry<E>> registryRef)
cast(RegistryKey<? extends Registry<E>> registry)
m_195975_(C_5264_<? extends C_4705_<E>> arg0)
public ResourceLocation
a()
location()
method_29177()
m_jjvdnjyc()
getValue()
getValue()
m_135782_()
public ResourceLocation
b()
registry()
method_41185()
m_tbhhljwv()
getRegistry()
getRegistry()
m_211136_()
public ResourceKey<Registry<T>>
c()
registryKey()
method_58273()
m_acppaety()
getRegistryRef()
registryKey()
m_323747_()