public class ZombieDisguise extends AgeableDisguise
Constructor and Description |
---|
ZombieDisguise()
Creates an instance.
|
ZombieDisguise(boolean adult)
Creates an instance.
|
ZombieDisguise(boolean adult,
boolean isVillager)
Creates an instance.
|
ZombieDisguise(boolean adult,
org.bukkit.entity.Villager.Profession villagerType)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
ZombieDisguise |
clone()
Creates and returns a copy of this object.
|
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one.
|
org.bukkit.entity.Villager.Profession |
getVillagerType()
Gets the villager type of this zombie disguise.
|
boolean |
isHusk()
Indicates whether the zombie is a husk.
|
boolean |
isVillager()
Returns whether the zombie is an infected villager.
|
void |
setVillager(boolean isVillager)
Sets whether the zombie should be an infected villager.
|
void |
setVillagerType(org.bukkit.entity.Villager.Profession villagerType)
Sets the villager type of this zombie disguise.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
isAdult, setAdult
getCustomName, setCustomName
public ZombieDisguise()
public ZombieDisguise(boolean adult)
adult
- whether the zombie should be an adultpublic ZombieDisguise(boolean adult, boolean isVillager)
adult
- whether the zombie should be an adultisVillager
- whether the zombie should be an infected villagerpublic ZombieDisguise(boolean adult, org.bukkit.entity.Villager.Profession villagerType)
adult
- whether the zombie should be an adultvillagerType
- the villager type of the zombiepublic boolean isHusk()
true
if and only if this zombie is a huskpublic boolean isVillager()
true
, if the zombie is an infected villagerpublic void setVillager(boolean isVillager)
isVillager
- true
, if the zombie should be an infected villagerpublic org.bukkit.entity.Villager.Profession getVillagerType()
public void setVillagerType(org.bukkit.entity.Villager.Profession villagerType)
villagerType
- the villager typepublic ZombieDisguise clone()
clone
in class AgeableDisguise
public boolean equals(java.lang.Object object)
equals
in class AgeableDisguise
true
if this object is the same as the object
argument; false
otherwisepublic java.lang.String toString()
toString
in class AgeableDisguise