Enum IStructureElement.PlaceResult
- java.lang.Object
-
- java.lang.Enum<IStructureElement.PlaceResult>
-
- com.gtnewhorizon.structurelib.structure.IStructureElement.PlaceResult
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IStructureElement.PlaceResult>
- Enclosing interface:
- IStructureElement<T>
public static enum IStructureElement.PlaceResult extends java.lang.Enum<IStructureElement.PlaceResult>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPTElement placed successfully.ACCEPT_STOPCombination of ACCEPT and STOP.REJECTThis element's space is occupied by other stuff and require player attention, or player missing required resource, or the block cannot be placed due to obscure mechanisms, or some other unforeseen situations.SKIPThis element either exists already, or does not yet have an implementation for survivalPlaceBlock, or some other unforeseen situations.STOPAutoplace cannot proceed within this tick.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IStructureElement.PlaceResultvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static IStructureElement.PlaceResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SKIP
public static final IStructureElement.PlaceResult SKIP
This element either exists already, or does not yet have an implementation for survivalPlaceBlock, or some other unforeseen situations. TODO this definition doesn't seem right. Should we separate SKIP from EXISTS, or SKIP from ERROR?
-
REJECT
public static final IStructureElement.PlaceResult REJECT
This element's space is occupied by other stuff and require player attention, or player missing required resource, or the block cannot be placed due to obscure mechanisms, or some other unforeseen situations.
-
STOP
public static final IStructureElement.PlaceResult STOP
Autoplace cannot proceed within this tick. To proceed further would require stopping the placement and wait for next round.
-
ACCEPT
public static final IStructureElement.PlaceResult ACCEPT
Element placed successfully.
-
ACCEPT_STOP
public static final IStructureElement.PlaceResult ACCEPT_STOP
Combination of ACCEPT and STOP.Element placed successfully. To proceed further would require stopping the placement and wait for next round.
-
-
Method Detail
-
values
public static IStructureElement.PlaceResult[] 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 (IStructureElement.PlaceResult c : IStructureElement.PlaceResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IStructureElement.PlaceResult 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
-
-