Package net.minecraft.util
Class RegistryKey<T>
java.lang.Object
net.minecraft.util.RegistryKey<T>
- All Implemented Interfaces:
Comparable<RegistryKey<?>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceLocationprivate final ResourceLocationprivate static final Map<String,RegistryKey<?>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRegistryKey(ResourceLocation p_i232592_1_, ResourceLocation p_i232592_2_) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(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_) booleanisFor(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:
compareToin interfaceComparable<T>
-