public class VillagerDisguise extends AgeableDisguise
Constructor and Description |
---|
VillagerDisguise()
Creates an instance.
|
VillagerDisguise(boolean adult,
org.bukkit.entity.Villager.Profession profession)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
VillagerDisguise |
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 |
getProfession()
Gets the profession.
|
void |
setProfession(org.bukkit.entity.Villager.Profession profession)
Sets the profession.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
isAdult, setAdult
getCustomName, setCustomName
public VillagerDisguise()
public VillagerDisguise(boolean adult, org.bukkit.entity.Villager.Profession profession)
adult
- should the disguise be an adultprofession
- the professionpublic org.bukkit.entity.Villager.Profession getProfession()
public void setProfession(org.bukkit.entity.Villager.Profession profession)
profession
- the professionpublic VillagerDisguise 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