public class SheepDisguise extends AgeableDisguise
Constructor and Description |
---|
SheepDisguise()
Creates an instance.
|
SheepDisguise(boolean adult,
org.bukkit.DyeColor color)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
SheepDisguise |
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.
|
org.bukkit.DyeColor |
getColor()
Returns the color.
|
void |
setColor(org.bukkit.DyeColor color)
Sets the color.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
isAdult, setAdult
getCustomName, setCustomName
public SheepDisguise()
public SheepDisguise(boolean adult, org.bukkit.DyeColor color)
adult
- should the disguise be an adultcolor
- the color of the woolpublic org.bukkit.DyeColor getColor()
public void setColor(org.bukkit.DyeColor color)
color
- the wool colorpublic SheepDisguise 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