Enum AutoPlaceEnvironment.APILevel
- java.lang.Object
-
- java.lang.Enum<AutoPlaceEnvironment.APILevel>
-
- com.gtnewhorizon.structurelib.structure.AutoPlaceEnvironment.APILevel
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AutoPlaceEnvironment.APILevel>
- Enclosing class:
- AutoPlaceEnvironment
public static enum AutoPlaceEnvironment.APILevel extends java.lang.Enum<AutoPlaceEnvironment.APILevel>
Defines the various API level anAutoPlaceEnvironmenthas implemented.Enum constants are defined in chronological order.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LegacyLegacyRelaxedV2Implements everything so far we have defined.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AutoPlaceEnvironment.APILevelvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AutoPlaceEnvironment.APILevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Legacy
public static final AutoPlaceEnvironment.APILevel Legacy
ImplementsAutoPlaceEnvironment.getChatter(),AutoPlaceEnvironment.getActor()andAutoPlaceEnvironment.getSource().AutoPlaceEnvironment.getActor()is guaranteed to be anEntityPlayerMP
-
LegacyRelaxed
public static final AutoPlaceEnvironment.APILevel LegacyRelaxed
ImplementsAutoPlaceEnvironment.getChatter(),AutoPlaceEnvironment.getActor()andAutoPlaceEnvironment.getSource().AutoPlaceEnvironment.getActor()is NOT guaranteed to be anEntityPlayerMP
-
V2
public static final AutoPlaceEnvironment.APILevel V2
Implements everything so far we have defined.
-
-
Method Detail
-
values
public static AutoPlaceEnvironment.APILevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AutoPlaceEnvironment.APILevel c : AutoPlaceEnvironment.APILevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AutoPlaceEnvironment.APILevel valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-