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 MutableFlags
event
- The event
.public boolean containsAny(@EventFlags int... events)
containsAny
in class MutableFlags
events
- 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 MutableFlags
index
- The index. Must be between 0 (inclusive) and MutableFlags.size()
(exclusive).event
at the given index.