geforkt von Mirrors/Paper
Added interface for setting and getting a pig zombie's anger level.
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
Dieser Commit ist enthalten in:
Ursprung
7a2afd1206
Commit
dc424c2943
@ -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();
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren