ChestedHorseDisguise
, StyledHorseDisguise
public class HorseDisguise extends AgeableDisguise
Modifier and Type | Class | Description |
---|---|---|
static class |
HorseDisguise.Armor |
Represents armor for a horse.
|
Disguise.Visibility
Constructor | Description |
---|---|
HorseDisguise(DisguiseType type) |
Creates an instance.
|
HorseDisguise(DisguiseType type,
boolean adult,
boolean saddled,
HorseDisguise.Armor armor) |
Creates an instance.
|
Modifier and Type | Method | Description |
---|---|---|
HorseDisguise.Armor |
getArmor() |
Gets the armor.
|
int |
getVariant() |
|
boolean |
isSaddled() |
Gets whether the horse is saddled.
|
void |
setArmor(HorseDisguise.Armor armor) |
Sets the armor.
|
void |
setSaddled(boolean saddled) |
Sets whether the horse is saddled.
|
java.lang.String |
toString() |
Returns a string representation of the object.
|
isAdult, setAdult
clone, equals, fromString, getType, getVisibility, getVisibilityParameter, hashCode, isVisibleTo, setVisibility, setVisibilityParameter
getCustomName, isCustomNameVisible, setCustomName, setCustomNameVisible
public HorseDisguise(DisguiseType type)
type
- the disguise type to usejava.lang.IllegalArgumentException
- the given disguise type is not some sort of horsepublic HorseDisguise(DisguiseType type, boolean adult, boolean saddled, HorseDisguise.Armor armor)
type
- the disguise type to useadult
- whether the disguise shall appear as an adult or as a babysaddled
- whether the disguise shall carry a saddlearmor
- the type of horse armor the disguise shall wearjava.lang.IllegalArgumentException
- the given disguise type is not some sort of horsepublic boolean isSaddled()
true
if it is saddledpublic void setSaddled(boolean saddled)
saddled
- should the horse be saddledpublic HorseDisguise.Armor getArmor()
public void setArmor(HorseDisguise.Armor armor)
armor
- the armorpublic int getVariant()
public java.lang.String toString()
toString
in class AgeableDisguise