Package net.minecraft.resources
Class ResourceKey<T>
java.lang.Object
net.minecraft.resources.ResourceKey<T>
- All Implemented Interfaces:
Comparable<ResourceKey<?>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate ResourceLocation
private ResourceLocation
private static Map<String,ResourceKey<?>>
-
Constructor Summary
ModifierConstructorDescriptionprivate
ResourceKey(ResourceLocation p_135780_, ResourceLocation p_135781_)
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo(ResourceKey<?> o)
static <T> ResourceKey<T>
create(ResourceKey<? extends Registry<T>> p_135786_, ResourceLocation p_135787_)
private static <T> ResourceKey<T>
create(ResourceLocation p_135791_, ResourceLocation p_135792_)
static <T> ResourceKey<Registry<T>>
createRegistryKey(ResourceLocation p_135789_)
static <T> Function<ResourceLocation,ResourceKey<T>>
elementKey(ResourceKey<? extends Registry<T>> p_135798_)
boolean
boolean
isFor(ResourceKey<? extends Registry<?>> p_135784_)
location()
toString()
-
Field Details
-
VALUES
-
registryName
-
location
-
-
Constructor Details
-
ResourceKey
-
-
Method Details
-
create
public static <T> ResourceKey<T> create(ResourceKey<? extends Registry<T>> p_135786_, ResourceLocation p_135787_) -
createRegistryKey
-
create
-
toString
-
isFor
-
location
-
elementKey
public static <T> Function<ResourceLocation,ResourceKey<T>> elementKey(ResourceKey<? extends Registry<T>> p_135798_) -
getRegistryName
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<T>
-