Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
PigZombie.java
1 package org.bukkit.entity;
2 
3 /**
4  * Represents a Pig Zombie.
5  */
6 public interface PigZombie extends Zombie {
7 
8  /**
9  * Get the pig zombie's current anger level.
10  *
11  * @return The anger level.
12  */
13  int getAnger();
14 
15  /**
16  * Set the pig zombie's current anger level.
17  *
18  * @param level The anger level. Higher levels of anger take longer to
19  * wear off.
20  */
21  void setAnger(int level);
22 
23  /**
24  * Shorthand; sets to either 0 or the default level.
25  *
26  * @param angry Whether the zombie should be angry.
27  */
28  void setAngry(boolean angry);
29 
30  /**
31  * Shorthand; gets whether the zombie is angry.
32  *
33  * @return True if the zombie is angry, otherwise false.
34  */
35  boolean isAngry();
36 }
void setAnger(int level)
void setAngry(boolean angry)