Enum Class VillagerMessage
- All Implemented Interfaces:
Serializable
,Comparable<VillagerMessage>
,Constable
The messages used in the villager information output.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongets the string associated with this messagevoid
setMessage
(String message) sets message to the provided stringstatic VillagerMessage
Returns the enum constant of this class with the specified name.static VillagerMessage[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PURPUR_LOBOTOMIZED
-
ZOMBIE_VILLAGER_CONVERSION_TIME
-
ZOMBIE_VILLAGER_NOT_CURRENTLY_CONVERTING
-
BABY_VILLAGER_AGE
-
VILLAGER_PROFESSION
-
VILLAGER_HEALTH
-
VILLAGER_JOBSITE_LOCATION
-
VILLAGER_LAST_WORKED
-
VILLAGER_RESTOCKS_TODAY
-
VILLAGER_BED_LOCATION
-
VILLAGER_LAST_SLEPT
-
VILLAGER_INVENTORY
-
VILLAGER_INVENTORY_ITEM_FORMAT
-
PLAYER_REPUTATION_MESSAGE
-
NO_INFORMATION_TO_DISPLAY
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getMessage
gets the string associated with this message- Returns:
- String
-
setMessage
sets message to the provided string- Parameters:
message
- String
-