Enum Event.EventType
- java.lang.Object
-
- java.lang.Enum<Event.EventType>
-
- page.codeberg.terratactician_expandoria.bots.events.Event.EventType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Event.EventType>
- Enclosing class:
- Event
public static enum Event.EventType extends java.lang.Enum<Event.EventType>
Type of incoming events. Must be equal to the EventName.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CamMovedEvent type for: Cam has been moved.ChallengeTickEvent type for: challenge tick.GameOverEvent type for: game has finished.InvChangedEvent type for: Inventory content or selected slot has changed.TileClickedEvent type for: User clicked a tile in creative mode.TileStatusEvent type for: Tile status changed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Event.EventTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Event.EventType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ChallengeTick
public static final Event.EventType ChallengeTick
Event type for: challenge tick. Will get send when a challenge bot should send a action list.
-
GameOver
public static final Event.EventType GameOver
Event type for: game has finished. A disconnect implies this event.
-
TileClicked
public static final Event.EventType TileClicked
Event type for: User clicked a tile in creative mode.
-
TileStatus
public static final Event.EventType TileStatus
Event type for: Tile status changed. (added, remove, changed, manually triggered)
-
InvChanged
public static final Event.EventType InvChanged
Event type for: Inventory content or selected slot has changed.
-
CamMoved
public static final Event.EventType CamMoved
Event type for: Cam has been moved.
-
-
Method Detail
-
values
public static Event.EventType[] 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 (Event.EventType c : Event.EventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Event.EventType 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
-
-