Interface Pig

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

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

    • getVariant

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

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