Interface PigZombie

All Superinterfaces:
Ageable, Attributable, CommandSender, Creature, Damageable, Entity, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator, Zombie

public interface PigZombie
extends Zombie
Represents a Pig Zombie.
  • Method Details

    • getAnger

      int getAnger()
      Get the pig zombie's current anger level.
      Returns:
      The anger level.
    • setAnger

      void setAnger​(int level)
      Set the pig zombie's current anger level.
      Parameters:
      level - The anger level. Higher levels of anger take longer to wear off.
    • setAngry

      void setAngry​(boolean angry)
      Shorthand; sets to either 0 or the default level.
      Parameters:
      angry - Whether the zombie should be angry.
    • isAngry

      boolean isAngry()
      Shorthand; gets whether the zombie is angry.
      Returns:
      True if the zombie is angry, otherwise false.
    • isConverting

      boolean isConverting()
      Not applicable to this entity
      Specified by:
      isConverting in interface Zombie
      Returns:
      false
    • getConversionTime

      int getConversionTime()
      Not applicable to this entity
      Specified by:
      getConversionTime in interface Zombie
      Returns:
      UnsuppotedOperationException
    • setConversionTime

      void setConversionTime​(int time)
      Not applicable to this entity
      Specified by:
      setConversionTime in interface Zombie
      Parameters:
      time - unused