Enum Events
- java.lang.Object
-
- java.lang.Enum<Events>
-
- com.bombinggames.wurfelengine.core.Events
-
public enum Events extends java.lang.Enum<Events>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description blockDamaged
extra info has coordinateblockDestroyed
extra info has coordinatecellChanged
if a cell is changed.chunkChanged
extra info contains changed chunkcollided
damage
an entitiy which will receive this event will be damageddeselectInEditor
landed
when an entity touches the groundmapChanged
event fired when a block in the map changedmapReloaded
moveTo
moves an object. extra information must containPoint
renderStorageChanged
selectInEditor
standStill
steppedOn
teleport
extra information must containPoint
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getId()
static Events
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Events[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
damage
public static final Events damage
an entitiy which will receive this event will be damaged
-
collided
public static final Events collided
-
steppedOn
public static final Events steppedOn
-
selectInEditor
public static final Events selectInEditor
-
deselectInEditor
public static final Events deselectInEditor
-
blockDestroyed
public static final Events blockDestroyed
extra info has coordinate
-
blockDamaged
public static final Events blockDamaged
extra info has coordinate
-
landed
public static final Events landed
when an entity touches the ground
-
standStill
public static final Events standStill
-
chunkChanged
public static final Events chunkChanged
extra info contains changed chunk
-
mapChanged
public static final Events mapChanged
event fired when a block in the map changed
-
mapReloaded
public static final Events mapReloaded
-
cellChanged
public static final Events cellChanged
if a cell is changed. Extra information containsCoordinate
-
renderStorageChanged
public static final Events renderStorageChanged
-
-
Method Detail
-
values
public static Events[] 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 (Events c : Events.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Events 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
-
getId
public int getId()
- Returns:
-
-