Enum EntityLayer
- java.lang.Object
-
- java.lang.Enum<EntityLayer>
-
- de.extio.spacecraft.shared.model.entity.EntityLayer
-
- All Implemented Interfaces:
Serializable,Comparable<EntityLayer>
public enum EntityLayer extends Enum<EntityLayer>
Layer an entity is placed at - entities stack on top of each other, but there can be only one entity per layer on a tile.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CABLE_ENERGYCABLE_NETWORKCABLE_O2CABLE_SHIELDFLOORGAME_CTRLOBJECTOBJECT_EXTRARESTRICTED0RESTRICTED1STRUCTURE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetLocalizationId()static EntityLayervalueOf(String name)Returns the enum constant of this type with the specified name.static EntityLayer[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FLOOR
public static final EntityLayer FLOOR
-
STRUCTURE
public static final EntityLayer STRUCTURE
-
CABLE_SHIELD
public static final EntityLayer CABLE_SHIELD
-
CABLE_ENERGY
public static final EntityLayer CABLE_ENERGY
-
CABLE_O2
public static final EntityLayer CABLE_O2
-
CABLE_NETWORK
public static final EntityLayer CABLE_NETWORK
-
OBJECT_EXTRA
public static final EntityLayer OBJECT_EXTRA
-
OBJECT
public static final EntityLayer OBJECT
-
RESTRICTED0
public static final EntityLayer RESTRICTED0
-
RESTRICTED1
public static final EntityLayer RESTRICTED1
-
GAME_CTRL
public static final EntityLayer GAME_CTRL
-
-
Method Detail
-
values
public static EntityLayer[] 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 (EntityLayer c : EntityLayer.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EntityLayer valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getLocalizationId
public Integer getLocalizationId()
-
-