Package io.papermc.paper.registry.keys
Class PigVariantKeys
java.lang.Object
io.papermc.paper.registry.keys.PigVariantKeys
Vanilla keys for
RegistryKey.PIG_VARIANT
.- API Note:
- The fields provided here are a direct representation of what is available from the vanilla game source. They may be changed (including removals) on any Minecraft version bump, so cross-version compatibility is not provided on the same level as it is on most of the other API.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypedKey
<Pig.Variant> minecraft:cold
static final TypedKey
<Pig.Variant> minecraft:temperate
static final TypedKey
<Pig.Variant> minecraft:warm
-
Method Summary
Modifier and TypeMethodDescriptionstatic TypedKey
<Pig.Variant> Creates a typed key forPig.Variant
in the registryminecraft:pig_variant
.
-
Field Details
-
COLD
minecraft:cold
- API Note:
- This field is version-dependant and may be removed in future Minecraft versions
-
TEMPERATE
minecraft:temperate
- API Note:
- This field is version-dependant and may be removed in future Minecraft versions
-
WARM
minecraft:warm
- API Note:
- This field is version-dependant and may be removed in future Minecraft versions
-
-
Method Details
-
create
Creates a typed key forPig.Variant
in the registryminecraft:pig_variant
.- Parameters:
key
- the value's key in the registry- Returns:
- a new typed key
-