Enum PluginLoader.Hook

java.lang.Object
  extended by java.lang.Enum<PluginLoader.Hook>
      extended by PluginLoader.Hook
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PluginLoader.Hook>
Enclosing class:
PluginLoader

public static enum PluginLoader.Hook
extends java.lang.Enum<PluginLoader.Hook>

Hook - Used for adding a listener to listen on specific hooks


Enum Constant Summary
Enum Constant and Description
ARM_SWING
          Calls onArmSwing
ATTACK
          Calls onAttack
BAN
          Calls onBan
BLOCK_BROKEN
          Calls onBlockBreak
BLOCK_CREATED
          Calls onBlockCreate
BLOCK_DESTROYED
          Calls onBlockDestroy
BLOCK_PHYSICS
          Calls onBlockPhysics
BLOCK_PLACE
          Calls onBlockPlace
BLOCK_RIGHTCLICKED
          Calls onBlockRightClicked
CHAT
          Calls onChat
COMMAND
          Calls onCommand
DAMAGE
          Calls onDamage
DISCONNECT
          Calls onDisconnect
EXPLODE
          Calls onExplode
FLOW
          Calls onFlow
HEALTH_CHANGE
          Calls onHealthChange
IGNITE
          Calls onIgnite
INVENTORY_PLACE
          Calls onInventoryPlaceItem
INVENTORY_SWAP
          Calls onInventoryCursorSwap
INVENTORY_TAKE
          Calls onInventoryTakeItem
IPBAN
          Calls onIpBan
ITEM_DROP
          Calls onItemDrop
ITEM_PICK_UP
          Calls onItemPickUp
ITEM_USE
          Calls onItemUse
KICK
          Calls onKick
LEAF_DECAY
          Calls onLeafDecay
LIQUID_DESTROY
          Calls onLiquidDestroy
LOGIN
          Calls onLogin
LOGINCHECK
          Calls onLoginChecks
MOB_SPAWN
          Calls onMobSpawn
NUM_HOOKS
          Unused.
OPEN_INVENTORY
          Calls onOpenInventory
PLAYER_MOVE
          Calls onPlayerMove
REDSTONE_CHANGE
          Calls onRedstoneChange
SERVERCOMMAND
          Calls onConsoleCommand
SIGN_CHANGE
          Calls onSignChange
SIGN_SHOW
          Calls onSignShow
TELEPORT
          Calls onTeleport
VEHICLE_COLLISION
          Calls onVehicleCollision
VEHICLE_CREATE
          Calls onVehicleCreate
VEHICLE_DAMAGE
          Calls onVehicleDamage
VEHICLE_DESTROYED
          Calls onVehicleDestroyed
VEHICLE_ENTERED
          Calls onVehicleEntered
VEHICLE_POSITIONCHANGE
          Calls onVehiclePositionChange
VEHICLE_UPDATE
          Calls onVehicleUpdate
 
Method Summary
Modifier and Type Method and Description
static PluginLoader.Hook valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PluginLoader.Hook[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LOGINCHECK

public static final PluginLoader.Hook LOGINCHECK
Calls onLoginChecks


LOGIN

public static final PluginLoader.Hook LOGIN
Calls onLogin


CHAT

public static final PluginLoader.Hook CHAT
Calls onChat


COMMAND

public static final PluginLoader.Hook COMMAND
Calls onCommand


SERVERCOMMAND

public static final PluginLoader.Hook SERVERCOMMAND
Calls onConsoleCommand


BAN

public static final PluginLoader.Hook BAN
Calls onBan


IPBAN

public static final PluginLoader.Hook IPBAN
Calls onIpBan


KICK

public static final PluginLoader.Hook KICK
Calls onKick


BLOCK_CREATED

public static final PluginLoader.Hook BLOCK_CREATED
Calls onBlockCreate


BLOCK_DESTROYED

public static final PluginLoader.Hook BLOCK_DESTROYED
Calls onBlockDestroy


DISCONNECT

public static final PluginLoader.Hook DISCONNECT
Calls onDisconnect


PLAYER_MOVE

public static final PluginLoader.Hook PLAYER_MOVE
Calls onPlayerMove


ARM_SWING

public static final PluginLoader.Hook ARM_SWING
Calls onArmSwing


ITEM_DROP

public static final PluginLoader.Hook ITEM_DROP
Calls onItemDrop


ITEM_PICK_UP

public static final PluginLoader.Hook ITEM_PICK_UP
Calls onItemPickUp


TELEPORT

public static final PluginLoader.Hook TELEPORT
Calls onTeleport


BLOCK_BROKEN

public static final PluginLoader.Hook BLOCK_BROKEN
Calls onBlockBreak


IGNITE

public static final PluginLoader.Hook IGNITE
Calls onIgnite


FLOW

public static final PluginLoader.Hook FLOW
Calls onFlow


EXPLODE

public static final PluginLoader.Hook EXPLODE
Calls onExplode


MOB_SPAWN

public static final PluginLoader.Hook MOB_SPAWN
Calls onMobSpawn


DAMAGE

public static final PluginLoader.Hook DAMAGE
Calls onDamage


HEALTH_CHANGE

public static final PluginLoader.Hook HEALTH_CHANGE
Calls onHealthChange


REDSTONE_CHANGE

public static final PluginLoader.Hook REDSTONE_CHANGE
Calls onRedstoneChange


BLOCK_PHYSICS

public static final PluginLoader.Hook BLOCK_PHYSICS
Calls onBlockPhysics


VEHICLE_CREATE

public static final PluginLoader.Hook VEHICLE_CREATE
Calls onVehicleCreate


VEHICLE_UPDATE

public static final PluginLoader.Hook VEHICLE_UPDATE
Calls onVehicleUpdate


VEHICLE_DAMAGE

public static final PluginLoader.Hook VEHICLE_DAMAGE
Calls onVehicleDamage


VEHICLE_COLLISION

public static final PluginLoader.Hook VEHICLE_COLLISION
Calls onVehicleCollision


VEHICLE_DESTROYED

public static final PluginLoader.Hook VEHICLE_DESTROYED
Calls onVehicleDestroyed


VEHICLE_ENTERED

public static final PluginLoader.Hook VEHICLE_ENTERED
Calls onVehicleEntered


VEHICLE_POSITIONCHANGE

public static final PluginLoader.Hook VEHICLE_POSITIONCHANGE
Calls onVehiclePositionChange


ITEM_USE

public static final PluginLoader.Hook ITEM_USE
Calls onItemUse


BLOCK_PLACE

public static final PluginLoader.Hook BLOCK_PLACE
Calls onBlockPlace


BLOCK_RIGHTCLICKED

public static final PluginLoader.Hook BLOCK_RIGHTCLICKED
Calls onBlockRightClicked


LIQUID_DESTROY

public static final PluginLoader.Hook LIQUID_DESTROY
Calls onLiquidDestroy


ATTACK

public static final PluginLoader.Hook ATTACK
Calls onAttack


OPEN_INVENTORY

public static final PluginLoader.Hook OPEN_INVENTORY
Calls onOpenInventory


SIGN_SHOW

public static final PluginLoader.Hook SIGN_SHOW
Calls onSignShow


SIGN_CHANGE

public static final PluginLoader.Hook SIGN_CHANGE
Calls onSignChange


INVENTORY_PLACE

public static final PluginLoader.Hook INVENTORY_PLACE
Calls onInventoryPlaceItem


INVENTORY_TAKE

public static final PluginLoader.Hook INVENTORY_TAKE
Calls onInventoryTakeItem


INVENTORY_SWAP

public static final PluginLoader.Hook INVENTORY_SWAP
Calls onInventoryCursorSwap


LEAF_DECAY

public static final PluginLoader.Hook LEAF_DECAY
Calls onLeafDecay


NUM_HOOKS

public static final PluginLoader.Hook NUM_HOOKS
Unused.

Method Detail

values

public static PluginLoader.Hook[] 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 (PluginLoader.Hook c : PluginLoader.Hook.values())
    System.out.println(c);

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

valueOf

public static PluginLoader.Hook 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