AgeableDisguise
, CreeperDisguise
, EndermanDisguise
, ParrotDisguise
, SizedDisguise
public class MobDisguise extends Disguise
Disguise.Visibility
Constructor | Description |
---|---|
MobDisguise(DisguiseType type) |
Creates an instance.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getCustomName() |
Gets the custom name of this entity.
The default value is "" . |
boolean |
isCustomNameVisible() |
Indicates whether the custom name of this entity is visible all the time.
The default value is true . |
void |
setCustomName(java.lang.String customName) |
Sets the custom name of this entity.
The default value is "" . |
void |
setCustomNameVisible(boolean customNameVisible) |
Sets whether the custom name of this entity is visible all the time.
The default value is true .This value has no effect if the custom name is empty. |
java.lang.String |
toString() |
Returns a string representation of the object.
|
clone, equals, fromString, getType, getVisibility, getVisibilityParameter, hashCode, isVisibleTo, setVisibility, setVisibilityParameter
public MobDisguise(DisguiseType type)
type
- the type to disguise aspublic java.lang.String getCustomName()
""
.public void setCustomName(java.lang.String customName)
""
.customName
- the custom namepublic boolean isCustomNameVisible()
true
.true
, if the custom name is visible all the timepublic void setCustomNameVisible(boolean customNameVisible)
true
.customNameVisible
- true
, if the custom name shall be visible all the time