public class RegistryKey<T> extends java.lang.Object implements java.lang.Comparable<RegistryKey<?>>
Modifier and Type | Field and Description |
---|---|
private ResourceLocation |
location |
private ResourceLocation |
registryName |
private static java.util.Map<java.lang.String,RegistryKey<?>> |
VALUES |
Modifier | Constructor and Description |
---|---|
private |
RegistryKey(ResourceLocation p_i232592_1_,
ResourceLocation p_i232592_2_) |
Modifier and Type | Method and Description |
---|---|
int |
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> java.util.function.Function<ResourceLocation,RegistryKey<T>> |
elementKey(RegistryKey<? extends Registry<T>> p_240902_0_) |
ResourceLocation |
getRegistryName() |
boolean |
isFor(RegistryKey<? extends Registry<?>> p_244356_1_) |
ResourceLocation |
location() |
java.lang.String |
toString() |
private static final java.util.Map<java.lang.String,RegistryKey<?>> VALUES
private final ResourceLocation registryName
private final ResourceLocation location
private RegistryKey(ResourceLocation p_i232592_1_, ResourceLocation p_i232592_2_)
public static <T> RegistryKey<T> create(RegistryKey<? extends Registry<T>> p_240903_0_, ResourceLocation p_240903_1_)
public static <T> RegistryKey<Registry<T>> createRegistryKey(ResourceLocation p_240904_0_)
private static <T> RegistryKey<T> create(ResourceLocation p_240905_0_, ResourceLocation p_240905_1_)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isFor(RegistryKey<? extends Registry<?>> p_244356_1_)
public ResourceLocation location()
public static <T> java.util.function.Function<ResourceLocation,RegistryKey<T>> elementKey(RegistryKey<? extends Registry<T>> p_240902_0_)
public ResourceLocation getRegistryName()
public int compareTo(RegistryKey<?> o)
compareTo
in interface java.lang.Comparable<RegistryKey<?>>