public class RabbitDisguise extends AgeableDisguise
Modifier and Type | Class | Description |
---|---|---|
static class |
RabbitDisguise.RabbitType |
Represents the available rabbit types.
|
Disguise.Visibility
Constructor | Description |
---|---|
RabbitDisguise() |
Creates an instance.
|
RabbitDisguise(boolean adult) |
Creates an instance.
|
RabbitDisguise(boolean adult,
RabbitDisguise.RabbitType rabbitType) |
Creates an instance.
|
Modifier and Type | Method | Description |
---|---|---|
RabbitDisguise.RabbitType |
getRabbitType() |
Returns the rabbit type.
|
void |
setRabbitType(RabbitDisguise.RabbitType rabbitType) |
Sets the rabbit type.
|
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 RabbitDisguise()
public RabbitDisguise(boolean adult)
adult
- whether the rabbit should be an adultpublic RabbitDisguise(boolean adult, RabbitDisguise.RabbitType rabbitType)
adult
- whether the rabbit should be an adultrabbitType
- the type of rabbit this should bepublic RabbitDisguise.RabbitType getRabbitType()
public void setRabbitType(RabbitDisguise.RabbitType rabbitType)
rabbitType
- the rabbit typepublic java.lang.String toString()
toString
in class AgeableDisguise