public class SizedDisguise extends MobDisguise
Disguise.Visibility
Constructor | Description |
---|---|
SizedDisguise(DisguiseType type) |
Creates an instance.
|
SizedDisguise(DisguiseType type,
int size) |
Creates an instance.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getSize() |
Gets the size.
|
void |
setSize(int size) |
Sets the size.
|
java.lang.String |
toString() |
Returns a string representation of the object.
|
clone, equals, fromString, getType, getVisibility, getVisibilityParameter, hashCode, isVisibleTo, setVisibility, setVisibilityParameter
getCustomName, isCustomNameVisible, setCustomName, setCustomNameVisible
public SizedDisguise(DisguiseType type)
type
- the disguise type (must be either DisguiseType.SLIME
or DisguiseType.MAGMA_CUBE
)public SizedDisguise(DisguiseType type, int size)
type
- the disguise type (must 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 be between 1 and 100)public java.lang.String toString()
toString
in class MobDisguise