Interface Pig

All Superinterfaces:
Ageable, Animals, Attributable, Audience, Breedable, CommandSender, Creature, Damageable, Entity, Frictional, HoverEventSource<HoverEvent.ShowEntity>, Leashable, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, Pointered, ProjectileSource, ServerOperator, Sound.Emitter, Steerable, Vehicle

@NullMarked public interface Pig extends Steerable, Vehicle
Represents a Pig.
  • Method Details Link icon

    • getVariant Link icon

      Pig.Variant getVariant()
      Gets the variant of this pig.
      Returns:
      the pig variant
    • setVariant Link icon

      void setVariant(Pig.Variant variant)
      Sets the variant of this pig.
      Parameters:
      variant - the pig variant