public class PigDisguise extends AgeableDisguise
Disguise.Visibility
Constructor | Description |
---|---|
PigDisguise() |
Creates an instance.
|
PigDisguise(boolean adult,
boolean saddled) |
Creates an instance.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
isSaddled() |
Gets whether the pig is saddled.
|
void |
setSaddled(boolean saddled) |
Sets whether the pig 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 PigDisguise()
public PigDisguise(boolean adult, boolean saddled)
adult
- should the disguise be an adultsaddled
- should the disguise be saddledpublic boolean isSaddled()
true
if the pig is saddledpublic void setSaddled(boolean saddled)
saddled
- should the pig be saddledpublic java.lang.String toString()
toString
in class AgeableDisguise