Package org.rspeer.game.event
Enum SceneObjectSpawnEvent.Tag
- java.lang.Object
-
- java.lang.Enum<SceneObjectSpawnEvent.Tag>
-
- org.rspeer.game.event.SceneObjectSpawnEvent.Tag
-
- All Implemented Interfaces:
Serializable
,Comparable<SceneObjectSpawnEvent.Tag>
- Enclosing class:
- SceneObjectSpawnEvent
public static enum SceneObjectSpawnEvent.Tag extends Enum<SceneObjectSpawnEvent.Tag>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOUNDARY_OBJECT
FLOOR_DECORATION
SCENE_OBJECT
WALL_DECORATION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SceneObjectSpawnEvent.Tag
get(int id)
int
getId()
static SceneObjectSpawnEvent.Tag
valueOf(String name)
Returns the enum constant of this type with the specified name.static SceneObjectSpawnEvent.Tag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOUNDARY_OBJECT
public static final SceneObjectSpawnEvent.Tag BOUNDARY_OBJECT
-
WALL_DECORATION
public static final SceneObjectSpawnEvent.Tag WALL_DECORATION
-
SCENE_OBJECT
public static final SceneObjectSpawnEvent.Tag SCENE_OBJECT
-
FLOOR_DECORATION
public static final SceneObjectSpawnEvent.Tag FLOOR_DECORATION
-
-
Method Detail
-
values
public static SceneObjectSpawnEvent.Tag[] 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 (SceneObjectSpawnEvent.Tag c : SceneObjectSpawnEvent.Tag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SceneObjectSpawnEvent.Tag 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
-
get
public static SceneObjectSpawnEvent.Tag get(int id)
-
getId
public int getId()
-
-