public enum CallEvents extends java.lang.Enum<CallEvents>
DataExtension
automatically.
You can also call the update methods via Caller
manually.
Enum Constant and Description |
---|
MANUAL
This event represents a manual call via
Caller . |
PLAYER_JOIN
This event represents call to player methods on a Player Join event.
|
PLAYER_LEAVE
This event represents a call to player methods on a Player Leave event.
|
SERVER_EXTENSION_REGISTER
This event represents a call to server methods when the
DataExtension is registered. |
SERVER_PERIODICAL
This event represents a call to server methods via a periodical task.
|
Modifier and Type | Method and Description |
---|---|
static CallEvents |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CallEvents[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CallEvents MANUAL
Caller
.
Definition inside DataExtension.callExtensionMethodsOn()
is NOT REQUIRED for using Caller methods.public static final CallEvents PLAYER_JOIN
The call is made from a listener at the last event priority (Bukkit/Bungee: MONITOR, Sponge: POST). Method calls are asynchronous.
public static final CallEvents PLAYER_LEAVE
The call is made from a listener at the first event priority (Bukkit/Bungee: LOWEST, Sponge: PRE). Method calls are asynchronous.
public static final CallEvents SERVER_EXTENSION_REGISTER
DataExtension
is registered.
Server methods include any Group
parameter methods.
Method calls are asynchronous.
public static final CallEvents SERVER_PERIODICAL
Server methods include any Group
parameter methods.
Periodic task with a runs user configured period (Plan config). Method calls are asynchronous.
public static CallEvents[] values()
for (CallEvents c : CallEvents.values()) System.out.println(c);
public static CallEvents valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null