public class ChestedHorseDisguise extends HorseDisguise
Disguise.Visibility
HorseDisguise.Armor
Constructor | Description |
---|---|
ChestedHorseDisguise(DisguiseType type) |
Creates an instance.
|
ChestedHorseDisguise(DisguiseType type,
boolean adult,
boolean hasChest,
boolean saddled,
HorseDisguise.Armor armor) |
Creates an instance.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
hasChest() |
Indicates whether the horse carries a chest.
|
void |
setHasChest(boolean hasChest) |
Sets whether the horse carries a chest.
|
java.lang.String |
toString() |
Returns a string representation of the object.
|
isAdult, setAdult
clone, equals, fromString, getType, getVisibility, getVisibilityParameter, hashCode, isVisibleTo, setVisibility, setVisibilityParameter
getArmor, getVariant, isSaddled, setArmor, setSaddled
getCustomName, isCustomNameVisible, setCustomName, setCustomNameVisible
public ChestedHorseDisguise(DisguiseType type)
type
- the disguise type (must be either DisguiseType.DONKEY or DisguiseType.MULE)public ChestedHorseDisguise(DisguiseType type, boolean adult, boolean hasChest, boolean saddled, HorseDisguise.Armor armor)
type
- the disguise type (must be either DisguiseType.DONKEY or DisguiseType.MULE)adult
- whether the disguise should appear as an adult or as a babyhasChest
- whether the disguise should have a chest or notsaddled
- whether the disguise should be saddled or notarmor
- the type of armor the disguise should carrypublic boolean hasChest()
true
in case the horse carries a chestpublic void setHasChest(boolean hasChest)
hasChest
- true
in case the horse shall carry a chestpublic java.lang.String toString()
toString
in class HorseDisguise