Enum Class AutoPlaceEnvironment.APILevel
java.lang.Object
java.lang.Enum<AutoPlaceEnvironment.APILevel>
com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment.APILevel
- All Implemented Interfaces:
Serializable, Comparable<AutoPlaceEnvironment.APILevel>, Constable
- Enclosing class:
AutoPlaceEnvironment
Defines the various API level an
AutoPlaceEnvironment has implemented.
Enum constants are defined in chronological order.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionImplements everything so far we have defined. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static AutoPlaceEnvironment.APILevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Legacy
ImplementsAutoPlaceEnvironment.getChatter(),AutoPlaceEnvironment.getActor()andAutoPlaceEnvironment.getSource().AutoPlaceEnvironment.getActor()is guaranteed to be anEntityPlayerMP -
LegacyRelaxed
ImplementsAutoPlaceEnvironment.getChatter(),AutoPlaceEnvironment.getActor()andAutoPlaceEnvironment.getSource().AutoPlaceEnvironment.getActor()is NOT guaranteed to be anEntityPlayerMP -
V2
Implements everything so far we have defined.
-
-
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
-