public class AgeableDisguise extends MobDisguise
Constructor and Description |
---|
AgeableDisguise(DisguiseType type)
Create an instance.
|
AgeableDisguise(DisguiseType type,
boolean adult)
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
AgeableDisguise |
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.
|
boolean |
isAdult()
Indicate whether this disguise appears as an adult or as a baby.
|
void |
setAdult(boolean adult)
Change whether this disguise appears as an adult or as a baby.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
getCustomName, setCustomName
public AgeableDisguise(DisguiseType type)
type
- the type to disguise aspublic AgeableDisguise(DisguiseType type, boolean adult)
type
- the type to disguise asadult
- whether the disguise should appear as an adult or as a babypublic boolean isAdult()
isAdult
in class MobDisguise
true
, if it appears as an adult, false
otherwisepublic void setAdult(boolean adult)
setAdult
in class MobDisguise
adult
- whether the disguise should appear as an adult or as a babypublic AgeableDisguise clone()
clone
in class MobDisguise
public boolean equals(java.lang.Object object)
equals
in class MobDisguise
true
if this object is the same as the object
argument; false
otherwise