Package net.minecraft.util
Class RegistryKey<T>
java.lang.Object
net.minecraft.util.RegistryKey<T>
- All Implemented Interfaces:
Comparable<RegistryKey<?>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ResourceLocation
private final ResourceLocation
private static final Map<String,
RegistryKey<?>> -
Constructor Summary
ModifierConstructorDescriptionprivate
RegistryKey
(ResourceLocation p_i232592_1_, ResourceLocation p_i232592_2_) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(RegistryKey<?> o) static <T> RegistryKey<T>
create
(RegistryKey<? extends Registry<T>> p_240903_0_, ResourceLocation p_240903_1_) private static <T> RegistryKey<T>
create
(ResourceLocation p_240905_0_, ResourceLocation p_240905_1_) static <T> RegistryKey<Registry<T>>
createRegistryKey
(ResourceLocation p_240904_0_) static <T> Function<ResourceLocation,
RegistryKey<T>> elementKey
(RegistryKey<? extends Registry<T>> p_240902_0_) boolean
isFor
(RegistryKey<? extends Registry<?>> p_244356_1_) location()
toString()
-
Field Details
-
VALUES
-
registryName
-
location
-
-
Constructor Details
-
RegistryKey
-
-
Method Details
-
create
public static <T> RegistryKey<T> create(RegistryKey<? extends Registry<T>> p_240903_0_, ResourceLocation p_240903_1_) -
createRegistryKey
-
create
private static <T> RegistryKey<T> create(ResourceLocation p_240905_0_, ResourceLocation p_240905_1_) -
toString
-
isFor
-
location
-
elementKey
public static <T> Function<ResourceLocation,RegistryKey<T>> elementKey(RegistryKey<? extends Registry<T>> p_240902_0_) -
getRegistryName
-
compareTo
- Specified by:
compareTo
in interfaceComparable<T>
-