public class CreeperDisguise extends MobDisguise
Constructor and Description |
---|
CreeperDisguise()
Creates an instance.
|
CreeperDisguise(boolean powered)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
CreeperDisguise |
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 |
isPowered()
Indicates whether the creeper is powered.
|
void |
setPowered(boolean powered)
Sets whether the creeper is powered.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
getCustomName, isAdult, setAdult, setCustomName
public CreeperDisguise()
public CreeperDisguise(boolean powered)
powered
- whether the creeper should be poweredpublic boolean isPowered()
true
, if the creeper is poweredpublic void setPowered(boolean powered)
powered
- true
, if the creeper should be poweredpublic CreeperDisguise 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