public class HorseDisguise extends AgeableDisguise
Modifier and Type | Class and Description |
---|---|
static class |
HorseDisguise.Armor
Represents armor for a horse.
|
static class |
HorseDisguise.Color
Represents the differnt hide colors of a horse.
|
static class |
HorseDisguise.Style
Represents the different hide styles of a horse.
|
static class |
HorseDisguise.Variant
Represents the different horse variants.
|
Constructor and Description |
---|
HorseDisguise()
Creates an instance.
|
HorseDisguise(boolean adult,
HorseDisguise.Variant variant,
HorseDisguise.Style style,
HorseDisguise.Color color,
boolean saddled,
boolean hasChest,
HorseDisguise.Armor armor)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
HorseDisguise |
clone()
Creates and returns a copy of this object.
|
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one.
|
HorseDisguise.Armor |
getArmor()
Gets the armor.
|
HorseDisguise.Color |
getColor()
Gets the color.
|
HorseDisguise.Style |
getStyle()
Gets the style.
|
HorseDisguise.Variant |
getVariant()
Gets the variant.
|
boolean |
hasChest()
Gets whether the horse carries a chest.
|
boolean |
isSaddled()
Gets whether the horse is saddled.
|
void |
setArmor(HorseDisguise.Armor armor)
Sets the armor.
|
void |
setColor(HorseDisguise.Color color)
Sets the color.
|
void |
setHasChest(boolean hasChest)
Sets whether the horse carries a chest.
|
void |
setSaddled(boolean saddled)
Sets whether the horse is saddled.
|
void |
setStyle(HorseDisguise.Style style)
Sets the style.
|
void |
setVariant(HorseDisguise.Variant variant)
Sets the variant.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
isAdult, setAdult
getCustomName, setCustomName
public HorseDisguise()
public HorseDisguise(boolean adult, HorseDisguise.Variant variant, HorseDisguise.Style style, HorseDisguise.Color color, boolean saddled, boolean hasChest, HorseDisguise.Armor armor)
adult
- should the disguise be an adultvariant
- the variant of the horsestyle
- the style of the horsecolor
- the color of the horsesaddled
- should the horse be saddledhasChest
- should the horse carry a chestarmor
- the armor of the horsepublic HorseDisguise.Color getColor()
public void setColor(HorseDisguise.Color color)
color
- the colorpublic HorseDisguise.Style getStyle()
public void setStyle(HorseDisguise.Style style)
style
- the stylepublic HorseDisguise.Variant getVariant()
public void setVariant(HorseDisguise.Variant variant)
variant
- the variantpublic boolean isSaddled()
true
if it is saddledpublic void setSaddled(boolean saddled)
saddled
- should the horse be saddledpublic boolean hasChest()
true
if the horse carries a chestpublic void setHasChest(boolean hasChest)
hasChest
- should the horse carry a chestpublic HorseDisguise.Armor getArmor()
public void setArmor(HorseDisguise.Armor armor)
armor
- the armorpublic HorseDisguise clone()
clone
in class AgeableDisguise
public boolean equals(java.lang.Object object)
equals
in class AgeableDisguise
true
if this object is the same as the object
argument; false
otherwisepublic java.lang.String toString()
toString
in class AgeableDisguise