2020-05-20 16:04:40 -04:00
|
|
|
CLASS net/minecraft/class_5321 net/minecraft/util/registry/RegistryKey
|
2020-05-21 07:34:12 -04:00
|
|
|
COMMENT Represents a key for a value in a registry in a context where a
|
|
|
|
COMMENT root registry is available.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @param <T> the type of the value
|
|
|
|
COMMENT @see Registry#ROOT
|
2020-05-20 16:04:40 -04:00
|
|
|
FIELD field_25136 INSTANCES Ljava/util/Map;
|
2020-05-21 07:34:12 -04:00
|
|
|
COMMENT A cache of all registry keys ever created.
|
|
|
|
FIELD field_25137 registry Lnet/minecraft/class_2960;
|
|
|
|
COMMENT The identifier of the registry in the root registry.
|
|
|
|
FIELD field_25138 value Lnet/minecraft/class_2960;
|
|
|
|
COMMENT The identifier of the value in the registry specified by {@link #registry}.
|
2020-05-20 16:04:40 -04:00
|
|
|
METHOD <init> (Lnet/minecraft/class_2960;Lnet/minecraft/class_2960;)V
|
2020-05-21 07:34:12 -04:00
|
|
|
ARG 1 registry
|
|
|
|
ARG 2 value
|
|
|
|
METHOD method_29177 getValue ()Lnet/minecraft/class_2960;
|
|
|
|
METHOD method_29179 of (Lnet/minecraft/class_5321;Lnet/minecraft/class_2960;)Lnet/minecraft/class_5321;
|
|
|
|
COMMENT Creates a registry key for a value in a registry with a registry key for
|
|
|
|
COMMENT the value-holding registry in the root registry and an identifier of the
|
|
|
|
COMMENT value.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>You can call it like {@code RegistryKey.of(Registry.ITEM_KEY, new Identifier("iron_ingot"))}
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT to create a registry key for iron ingot.
|
2020-05-21 07:34:12 -04:00
|
|
|
COMMENT
|
|
|
|
COMMENT @param <T> the type of the value
|
|
|
|
ARG 0 registry
|
|
|
|
COMMENT the registry key of the registry in the root registry
|
|
|
|
ARG 1 value
|
|
|
|
COMMENT the identifier of the value
|
|
|
|
METHOD method_29180 ofRegistry (Lnet/minecraft/class_2960;)Lnet/minecraft/class_5321;
|
|
|
|
COMMENT Creates a registry key for a registry in the root registry (registry of
|
|
|
|
COMMENT all registries) with an identifier for the registry.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>You can call it like {@code RegistryKey.of(new Identifier("block"))}
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT to create a registry key for the block registry.
|
2020-05-21 07:34:12 -04:00
|
|
|
COMMENT
|
|
|
|
COMMENT @param <T> the element type of the registry
|
|
|
|
ARG 0 registry
|
|
|
|
COMMENT the identifier of the registry
|
|
|
|
METHOD method_29181 of (Lnet/minecraft/class_2960;Lnet/minecraft/class_2960;)Lnet/minecraft/class_5321;
|
|
|
|
ARG 0 registry
|
|
|
|
ARG 1 value
|
2022-02-16 10:57:25 -05:00
|
|
|
METHOD method_29182 (Lnet/minecraft/class_2960;Lnet/minecraft/class_2960;Ljava/lang/String;)Lnet/minecraft/class_5321;
|
|
|
|
ARG 2 id
|
2020-08-14 16:30:05 -04:00
|
|
|
METHOD method_31163 isOf (Lnet/minecraft/class_5321;)Z
|
|
|
|
COMMENT Returns whether this registry key belongs to the given registry (according to its type, not whether the registry actually contains this key).
|
|
|
|
ARG 1 registry
|
|
|
|
COMMENT the key of the registry that this registry key should be inside
|
2021-10-19 12:26:17 -04:00
|
|
|
METHOD method_39154 createCodec (Lnet/minecraft/class_5321;)Lcom/mojang/serialization/Codec;
|
|
|
|
ARG 0 registry
|
|
|
|
METHOD method_39155 (Lnet/minecraft/class_5321;Lnet/minecraft/class_2960;)Lnet/minecraft/class_5321;
|
|
|
|
ARG 1 id
|
2022-02-16 10:57:25 -05:00
|
|
|
METHOD method_39752 tryCast (Lnet/minecraft/class_5321;)Ljava/util/Optional;
|
|
|
|
COMMENT {@return {@code Optional.of(this)} if the key is of {@code registryRef},
|
|
|
|
COMMENT otherwise {@link Optional#empty}}
|
|
|
|
COMMENT
|
|
|
|
COMMENT @apiNote This can be used to safely cast an unknown key to {@code RegistryKey<E>}
|
|
|
|
COMMENT by passing the registry {@code E}.
|
|
|
|
ARG 1 registryRef
|
2022-03-23 06:36:40 -04:00
|
|
|
METHOD method_41185 getRegistry ()Lnet/minecraft/class_2960;
|