Enum Class CitizenAddedModEvent.CitizenAddedSource
java.lang.Object
java.lang.Enum<CitizenAddedModEvent.CitizenAddedSource>
com.minecolonies.api.eventbus.events.colony.citizens.CitizenAddedModEvent.CitizenAddedSource
- All Implemented Interfaces:
Serializable,Comparable<CitizenAddedModEvent.CitizenAddedSource>,Constable
- Enclosing class:
CitizenAddedModEvent
public static enum CitizenAddedModEvent.CitizenAddedSource
extends Enum<CitizenAddedModEvent.CitizenAddedSource>
How the citizen came into the colony.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe citizen was born naturally.The citizen was spawned in using commands.The citizen was hired from the tavern.The citizen spawned as part of theServerConfiguration.initialCitizenAmount.The citizen got resurrected from his grave. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INITIAL
The citizen spawned as part of theServerConfiguration.initialCitizenAmount. -
BORN
The citizen was born naturally. -
HIRED
The citizen was hired from the tavern. -
RESURRECTED
The citizen got resurrected from his grave. -
COMMANDS
The citizen was spawned in using commands.
-
-
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
-