public class WolfDisguise extends AgeableDisguise
Modifier and Type | Class | Description |
---|---|---|
static class |
WolfDisguise.State |
Disguise.Visibility
Constructor | Description |
---|---|
WolfDisguise() |
Creates an instance.
|
WolfDisguise(boolean adult,
WolfDisguise.State state,
org.bukkit.DyeColor collarColor,
boolean sitting) |
Creates an instance.
|
WolfDisguise(boolean adult,
org.bukkit.DyeColor collarColor,
boolean tamed,
boolean angry) |
Deprecated.
Replaced by
WolfDisguise(boolean, State, DyeColor, boolean) . |
Modifier and Type | Method | Description |
---|---|---|
org.bukkit.DyeColor |
getCollarColor() |
Returns the collar color.
|
WolfDisguise.State |
getState() |
|
boolean |
isAngry() |
Indicates whether the wolf is angry.
|
boolean |
isSitting() |
|
boolean |
isTamed() |
Indicates whether the wolf is tamed.
|
void |
setAngry(boolean angry) |
Deprecated.
Replaced by
setState(State) . |
void |
setCollarColor(org.bukkit.DyeColor collarColor) |
Sets the collar color.
|
void |
setSitting(boolean sitting) |
|
void |
setState(WolfDisguise.State state) |
|
void |
setTamed(boolean tamed) |
Deprecated.
Replaced by
setState(State) . |
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 WolfDisguise()
@Deprecated public WolfDisguise(boolean adult, org.bukkit.DyeColor collarColor, boolean tamed, boolean angry)
WolfDisguise(boolean, State, DyeColor, boolean)
.public WolfDisguise(boolean adult, WolfDisguise.State state, org.bukkit.DyeColor collarColor, boolean sitting)
collarColor
- The collar is invisible unless the state is WolfDisguise.State.TAMED
.public org.bukkit.DyeColor getCollarColor()
public void setCollarColor(org.bukkit.DyeColor collarColor)
collarColor
- the collar colorpublic boolean isTamed()
true
if the wolf is tamed@Deprecated public void setTamed(boolean tamed)
setState(State)
.tamed
- should the wolf be tamedpublic boolean isAngry()
true
if the wolf is angry@Deprecated public void setAngry(boolean angry)
setState(State)
.angry
- should the wolf be angrypublic WolfDisguise.State getState()
public void setState(WolfDisguise.State state)
public boolean isSitting()
public void setSitting(boolean sitting)
public java.lang.String toString()
toString
in class AgeableDisguise