public class GuardianDisguise extends MobDisguise
Constructor and Description |
---|
GuardianDisguise()
Creates an instance.
|
GuardianDisguise(boolean isElder)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
GuardianDisguise |
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 |
isElder()
Returns whether the guardian is elder.
|
void |
setElder(boolean isElder)
Sets whether the guardian is elder.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
getCustomName, isAdult, setAdult, setCustomName
public GuardianDisguise()
public GuardianDisguise(boolean isElder)
isElder
- whether the guardian should be elderpublic boolean isElder()
true
, if the guardian is elderpublic void setElder(boolean isElder)
isElder
- true
, if the guardian should be elderpublic GuardianDisguise 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