Player.Events
public final class Player.Events
A set of events.
Summary
Public constructors |
|---|
@UnstableApiCreates an instance. |
Public methods |
|
|---|---|
boolean |
contains(@Player.Event int event)Returns whether the given |
boolean |
containsAny(@Player.Event int[] events)Returns whether any of the given |
boolean |
containsAny(Player.Events events)Returns whether any of the given |
boolean |
|
int |
@Player.EventReturns the |
int |
hashCode() |
int |
size()Returns the number of events in the set. |
Public constructors
Public methods
contains
public boolean contains(@Player.Event int event)
Returns whether the given Event occurred.
| Parameters | |
|---|---|
@Player.Event int event |
The |
| Returns | |
|---|---|
boolean |
Whether the |
containsAny
public boolean containsAny(@Player.Event int[] events)
Returns whether any of the given events occurred.
| Parameters | |
|---|---|
@Player.Event int[] events |
The |
| Returns | |
|---|---|
boolean |
Whether any of the |
containsAny
public boolean containsAny(Player.Events events)
Returns whether any of the given Player.Events occurred.
| Parameters | |
|---|---|
Player.Events events |
The |
| Returns | |
|---|---|
boolean |
Whether any of the |
get
@Player.Event
public int get(int index)
Returns the Event at the given index.
Although index-based access is possible, it doesn't imply a particular order of these events.
| Parameters | |
|---|---|
int index |
The index. Must be between 0 (inclusive) and |
| Returns | |
|---|---|
int |
The |
| Throws | |
|---|---|
java.lang.IndexOutOfBoundsException |
If index is outside the allowed range. |