From dc424c29435864ecca2d10effeaf43246ef0d620 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 14 Jul 2011 11:30:45 -0400 Subject: [PATCH] Added interface for setting and getting a pig zombie's anger level. By: Celtic Minstrel --- .../java/org/bukkit/entity/PigZombie.java | 36 +++++++++++++++---- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/entity/PigZombie.java b/paper-api/src/main/java/org/bukkit/entity/PigZombie.java index a48a79aa89..f8b1fb734a 100644 --- a/paper-api/src/main/java/org/bukkit/entity/PigZombie.java +++ b/paper-api/src/main/java/org/bukkit/entity/PigZombie.java @@ -1,12 +1,34 @@ -/** - * - */ package org.bukkit.entity; /** * Represents a Pig Zombie. - * - * @author Cogito - * */ -public interface PigZombie extends 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; sets to either 0 or the default level. + * + * @param angry Whether the zombie should be angry. + */ + void setAngry(boolean angry); + + /** + * Shorthand; gets whether the zombie is angry. + * + * @return True if the zombie is angry, otherwise false. + */ + boolean isAngry(); +}