HorseDisguise
, LlamaDisguise
, OcelotDisguise
, PigDisguise
, RabbitDisguise
, SheepDisguise
, VillagerDisguise
, WolfDisguise
, ZombieVillagerDisguise
public class AgeableDisguise extends MobDisguise
Disguise.Visibility
Constructor | Description |
---|---|
AgeableDisguise(DisguiseType type) |
Create an instance.
|
AgeableDisguise(DisguiseType type,
boolean adult) |
Create an instance.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
isAdult() |
Indicate whether this disguise appears as an adult or as a baby.
|
void |
setAdult(boolean adult) |
Change whether this disguise appears as an adult or as a baby.
|
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 AgeableDisguise(DisguiseType type)
type
- the type to disguise aspublic AgeableDisguise(DisguiseType type, boolean adult)
type
- the type to disguise asadult
- whether the disguise should appear as an adult or as a babypublic boolean isAdult()
true
, if it appears as an adult, false
otherwisepublic void setAdult(boolean adult)
adult
- whether the disguise should appear as an adult or as a babypublic java.lang.String toString()
toString
in class MobDisguise