public class SizedDisguise extends MobDisguise
Constructor and Description |
---|
SizedDisguise(DisguiseType type)
Creates an instance.
|
SizedDisguise(DisguiseType type,
int size)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
SizedDisguise |
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.
|
int |
getSize()
Gets the size.
|
void |
setSize(int size)
Sets the size.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
getCustomName, isAdult, setAdult, setCustomName
public SizedDisguise(DisguiseType type)
type
- the disguise type (should be either DisguiseType.SLIME
or DisguiseType.MAGMA_CUBE
)public SizedDisguise(DisguiseType type, int size)
type
- the disguise type (should be either DisguiseType.SLIME
or DisguiseType.MAGMA_CUBE
)size
- the size (must not be negative)public int getSize()
public void setSize(int size)
size
- the size (must not be negative)public SizedDisguise 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