Class PigSoundVariantKeys

java.lang.Object
io.papermc.paper.registry.keys.PigSoundVariantKeys

@NullMarked @GeneratedClass public final class PigSoundVariantKeys extends Object
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 Details

    • BIG

      public static final TypedKey<Pig.SoundVariant> BIG
      minecraft:big
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • CLASSIC

      public static final TypedKey<Pig.SoundVariant> CLASSIC
      minecraft:classic
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • MINI

      public static final TypedKey<Pig.SoundVariant> MINI
      minecraft:mini
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
  • Method Details

    • create

      public static TypedKey<Pig.SoundVariant> create(Key key)
      Creates a typed key for Pig.SoundVariant in the registry minecraft:pig_sound_variant.
      Parameters:
      key - the value's key in the registry
      Returns:
      a new typed key