net.minecraft.resources

public class ResourceKey<T>

aly
net.minecraft.resources.ResourceKey
net.minecraft.class_5321
net.minecraft.registry.RegistryKey
net.minecraft.resources.ResourceKey

Field summary

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

Constructor summary

ModifierConstructor
private (ResourceLocation registry, ResourceLocation value)

Method summary

Modifier and TypeMethod
public static <T> com.mojang.serialization.Codec<ResourceKey<T>>
a(aly<? extends kd<T>> arg0)
codec(ResourceKey<? extends Registry<T>> arg0)
method_39154(class_5321<? extends class_2378<T>> arg0)
createCodec(RegistryKey<? extends Registry<T>> registry)
public static <T> StreamCodec<io.netty.buffer.ByteBuf, ResourceKey<T>>
b(aly<? extends kd<T>> arg0)
streamCodec(ResourceKey<? extends Registry<T>> arg0)
method_56038(class_5321<? extends class_2378<T>> arg0)
createPacketCodec(RegistryKey<? extends Registry<T>> registry)
public static <T> ResourceKey<T>
a(aly<? extends kd<T>> arg0, alz 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)
public static <T> ResourceKey<Registry<T>>
a(alz arg0)
createRegistryKey(ResourceLocation arg0)
method_29180(class_2960 arg0)
ofRegistry(Identifier registry)
private static <T> ResourceKey<T>
a(alz arg0, alz arg1)
create(ResourceLocation arg0, ResourceLocation arg1)
method_29181(class_2960 arg0, class_2960 arg1)
of(Identifier registry, Identifier value)
public boolean
c(aly<? extends kd<?>> arg0)
isFor(ResourceKey<? extends Registry<?>> arg0)
method_31163(class_5321<? extends class_2378<?>> arg0)
isOf(RegistryKey<? extends Registry<?>> registry)
public <E> Optional<ResourceKey<E>>
d(aly<? extends kd<E>> arg0)
cast(ResourceKey<? extends Registry<E>> arg0)
method_39752(class_5321<? extends class_2378<E>> arg0)
tryCast(RegistryKey<? extends Registry<E>> registryRef)
public ResourceLocation
a()
location()
method_29177()
getValue()
public ResourceLocation
b()
registry()
method_41185()
getRegistry()
public ResourceKey<Registry<T>>
c()
registryKey()
method_58273()
getRegistryRef()