com.cliffblaster.game.api.event
Enum Event.Type

java.lang.Object
  extended by java.lang.Enum<Event.Type>
      extended by com.cliffblaster.game.api.event.Event.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Event.Type>
Enclosing class:
Event

public static enum Event.Type
extends java.lang.Enum<Event.Type>

Specify the type of event Do not ever use ordinal(), instead use valueOf, names are permanent


Enum Constant Summary
BLOCK_CHANGE
           
NONE
           
PERMISSION_REQUEST
           
PLAYER_CHAT
           
PLAYER_CHEAT
           
PLAYER_CONNECT
           
PLAYER_DISCONNECT
           
PLAYER_JOIN
           
PLAYER_POSITION
           
PLAYER_SPAWN
           
PLAYER_TELEPORT
           
PLUGIN_COMMUNICATION
           
SERVER_COMMAND
           
SERVER_SAVE
           
SERVER_TICK
           
 
Method Summary
static Event.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Event.Type[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final Event.Type NONE

BLOCK_CHANGE

public static final Event.Type BLOCK_CHANGE

PLAYER_CHAT

public static final Event.Type PLAYER_CHAT

PLAYER_CHEAT

public static final Event.Type PLAYER_CHEAT

PLAYER_CONNECT

public static final Event.Type PLAYER_CONNECT

PLAYER_DISCONNECT

public static final Event.Type PLAYER_DISCONNECT

PLAYER_JOIN

public static final Event.Type PLAYER_JOIN

PLAYER_SPAWN

public static final Event.Type PLAYER_SPAWN

PLAYER_POSITION

public static final Event.Type PLAYER_POSITION

PLAYER_TELEPORT

public static final Event.Type PLAYER_TELEPORT

PLUGIN_COMMUNICATION

public static final Event.Type PLUGIN_COMMUNICATION

PERMISSION_REQUEST

public static final Event.Type PERMISSION_REQUEST

SERVER_COMMAND

public static final Event.Type SERVER_COMMAND

SERVER_SAVE

public static final Event.Type SERVER_SAVE

SERVER_TICK

public static final Event.Type SERVER_TICK
Method Detail

values

public static final Event.Type[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Event.Type c : Event.Type.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Event.Type 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 name