Interface Pig

All Superinterfaces:
Ageable, Animals, CommandSender, Creature, Damageable, Entity, LivingEntity, Metadatable, Permissible, ProjectileSource, ServerOperator, Vehicle

public interface Pig
extends Animals, Vehicle
Represents a Pig.
  • Method Details

    • hasSaddle

      boolean hasSaddle()
      Check if the pig has a saddle.
      Returns:
      if the pig has been saddled.
    • setSaddle

      void setSaddle​(boolean saddled)
      Sets if the pig has a saddle or not
      Parameters:
      saddled - set if the pig has a saddle or not.