All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.entity.PigZombie Maven / Gradle / Ivy

package org.bukkit.entity;

/**
 * Represents a Pig Zombie.
 */
public interface PigZombie extends Zombie {

  /**
   * Get the pig zombie's current anger level.
   *
   * @return The anger level.
   */
  int getAnger();

  /**
   * Set the pig zombie's current anger level.
   *
   * @param level The anger level. Higher levels of anger take longer to
   *              wear off.
   */
  void setAnger(int level);

  /**
   * Shorthand; gets whether the zombie is angry.
   *
   * @return True if the zombie is angry, otherwise false.
   */
  boolean isAngry();

  /**
   * Shorthand; sets to either 0 or the default level.
   *
   * @param angry Whether the zombie should be angry.
   */
  void setAngry(boolean angry);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy