net.minecraft.resources

public class ResourceKey<T>

wv
net.minecraft.resources.ResourceKey
net.minecraft.class_5321
net.minecraft.util.registry.RegistryKey
net.minecraft.src.C_5264_
net.minecraft.resources.ResourceKey

Field summary

Modifier and TypeField
private static final Map<String, ResourceKey<?>>
a
VALUES
field_25136
INSTANCES
f_135775_
private final ResourceLocation
b
registryName
field_25137
registry
f_135776_
private final ResourceLocation
c
location
field_25138
value
f_135777_

Constructor summary

ModifierConstructor
private (ResourceLocation registry, ResourceLocation value)

Method summary

Modifier and TypeMethod
public static <T> ResourceKey<T>
a(wv<? extends gw<T>> arg0, ww arg1)
create(ResourceKey<? extends Registry<T>> arg0, ResourceLocation arg1)
method_29179(class_5321<? extends class_2378<T>> arg0, class_2960 arg1)
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(ww arg0)
createRegistryKey(ResourceLocation arg0)
method_29180(class_2960 arg0)
ofRegistry(Identifier registry)
m_135788_(C_5265_ p_135789_)
private static <T> ResourceKey<T>
a(ww arg0, ww arg1)
create(ResourceLocation arg0, ResourceLocation arg1)
method_29181(class_2960 arg0, class_2960 arg1)
of(Identifier registry, Identifier value)
m_135790_(C_5265_ p_135791_, C_5265_ p_135792_)
public boolean
a(wv<? extends gw<?>> arg0)
isFor(ResourceKey<? extends Registry<?>> arg0)
method_31163(class_5321<? extends class_2378<?>> arg0)
isOf(RegistryKey<? extends Registry<?>> registry)
m_135783_(C_5264_<? extends C_4705_<?>> arg0)
public ResourceLocation
a()
location()
method_29177()
getValue()
m_135782_()
public static <T> Function<ResourceLocation, ResourceKey<T>>
b(wv<? extends gw<T>> arg0)
elementKey(ResourceKey<? extends Registry<T>> arg0)
method_29178(class_5321<? extends class_2378<T>> arg0)
createKeyFactory(RegistryKey<? extends Registry<T>> registry)
m_135797_(C_5264_<? extends C_4705_<T>> p_135798_)