001 package org.bukkit.entity; 002 003 /** 004 * Represents a Pig Zombie. 005 */ 006 public interface PigZombie extends Zombie { 007 008 /** 009 * Get the pig zombie's current anger level. 010 * 011 * @return The anger level. 012 */ 013 int getAnger(); 014 015 /** 016 * Set the pig zombie's current anger level. 017 * 018 * @param level The anger level. Higher levels of anger take longer to 019 * wear off. 020 */ 021 void setAnger(int level); 022 023 /** 024 * Shorthand; sets to either 0 or the default level. 025 * 026 * @param angry Whether the zombie should be angry. 027 */ 028 void setAngry(boolean angry); 029 030 /** 031 * Shorthand; gets whether the zombie is angry. 032 * 033 * @return True if the zombie is angry, otherwise false. 034 */ 035 boolean isAngry(); 036 }