Added PLAYER_ITEM_HELD event

This commit is contained in:
Dinnerbone
2011-01-31 01:34:23 +00:00
parent 888ef8faf4
commit 86780fcb39
4 changed files with 56 additions and 0 deletions

View File

@@ -173,6 +173,11 @@ public final class JavaPluginLoader implements PluginLoader {
((PlayerListener)listener).onInventoryOpen( (PlayerInventoryEvent)event );
}
};
case PLAYER_ITEM_HELD:
return new EventExecutor() { public void execute( Listener listener, Event event ) {
((PlayerListener)listener).onItemHeldChange( (PlayerItemHeldEvent)event );
}
};
// Block Events
case BLOCK_PHYSICS: