com.mineblown.challengescript.scripting.event
Enum ScriptEvent

java.lang.Object
  extended by java.lang.Enum<ScriptEvent>
      extended by com.mineblown.challengescript.scripting.event.ScriptEvent
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ScriptEvent>

public enum ScriptEvent
extends java.lang.Enum<ScriptEvent>


Enum Constant Summary
ARROW_HIT_PLAYER
           
NPC_DAMAGE_BY_PLAYER
           
NPC_DAMAGE_PLAYER
           
PLAYER_ARROW_HIT_BLOCK
           
PLAYER_ARROW_HIT_ENTITY
           
PLAYER_BLOCK_MOVE
           
PLAYER_CHAT
           
PLAYER_COMMAND
           
PLAYER_DEATH
           
PLAYER_MOVE
           
PLAYER_POTION_HIT
           
PLAYER_RESPWN
           
 
Method Summary
static ScriptEvent getFromMethodName(java.lang.String methodName)
           
 java.lang.Class<? extends com.mineblown.challengescript.scripting.listener.ScriptEventListener> getListenerClass()
           
 java.lang.String getMethodName()
           
static ScriptEvent valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ScriptEvent[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PLAYER_MOVE

public static final ScriptEvent PLAYER_MOVE

PLAYER_BLOCK_MOVE

public static final ScriptEvent PLAYER_BLOCK_MOVE

PLAYER_ARROW_HIT_BLOCK

public static final ScriptEvent PLAYER_ARROW_HIT_BLOCK

PLAYER_ARROW_HIT_ENTITY

public static final ScriptEvent PLAYER_ARROW_HIT_ENTITY

PLAYER_POTION_HIT

public static final ScriptEvent PLAYER_POTION_HIT

PLAYER_DEATH

public static final ScriptEvent PLAYER_DEATH

PLAYER_RESPWN

public static final ScriptEvent PLAYER_RESPWN

PLAYER_COMMAND

public static final ScriptEvent PLAYER_COMMAND

PLAYER_CHAT

public static final ScriptEvent PLAYER_CHAT

ARROW_HIT_PLAYER

public static final ScriptEvent ARROW_HIT_PLAYER

NPC_DAMAGE_BY_PLAYER

public static final ScriptEvent NPC_DAMAGE_BY_PLAYER

NPC_DAMAGE_PLAYER

public static final ScriptEvent NPC_DAMAGE_PLAYER
Method Detail

values

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

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

valueOf

public static ScriptEvent 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
java.lang.NullPointerException - if the argument is null

getMethodName

public java.lang.String getMethodName()

getListenerClass

public java.lang.Class<? extends com.mineblown.challengescript.scripting.listener.ScriptEventListener> getListenerClass()

getFromMethodName

public static ScriptEvent getFromMethodName(java.lang.String methodName)