public static final class Player.Events extends MutableFlags
Player.EventFlags.| Constructor | Description |
|---|---|
Events() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
contains(int event) |
Returns whether the given event occurred.
|
boolean |
containsAny(int... events) |
Returns whether any of the given events occurred.
|
int |
get(int index) |
Returns the
event at the given index. |
public boolean contains(@EventFlags int event)
contains in class MutableFlagsevent - The event.public boolean containsAny(@EventFlags int... events)
containsAny in class MutableFlagsevents - The events.@EventFlags public int get(int index)
event at the given index.
Although index-based access is possible, it doesn't imply a particular order of these events.
get in class MutableFlagsindex - The index. Must be between 0 (inclusive) and MutableFlags.size() (exclusive).event at the given index.