Contents
Enum Class Spawner.Result
java.lang.Object
java.lang.Enum<Spawner.Result>
com.hypixel.hytale.builtin.adventure.worldevents.condition.spawner.Spawner.Result
- All Implemented Interfaces:
Serializable, Comparable<Spawner.Result>, Constable
- Enclosing interface:
Spawner
Represents the result of a spawner test operation.
The Result enum is used to indicate the outcome of position validation
during spawner execution. It provides three possible values:
- PASS: Indicates that the position is valid and acceptable.
- FAIL: Indicates that the position is invalid and rejected.
- ERROR: Indicates that an error occurred during the test.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Spawner.ResultReturns the enum constant of this class with the specified name.static Spawner.Result[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
PASS
-
FAIL
-
ERROR
-
-
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
-