Add PLAYER_INTERACT, remove BLOCK_RIGHT_CLICK, BLOCK_INTERACT and PLAYER_ITEM

By: Erik Broes <erikbroes@ripe.net>
This commit is contained in:
Bukkit/Spigot
2011-03-23 12:30:54 +01:00
parent 4819bb5819
commit 7824cc02e7
6 changed files with 222 additions and 45 deletions

View File

@@ -0,0 +1,24 @@
package org.bukkit.event.block;
public enum Action {
/**
* Left-clicking a block
*/
LEFT_CLICK_BLOCK,
/**
* Right-clicking a block
*/
RIGHT_CLICK_BLOCK,
/**
* Left-clicking the air
*/
LEFT_CLICK_AIR,
/**
* Right-clicking the air
*/
RIGHT_CLICK_AIR,
/**
* Ass-pressure
*/
PHYSICAL,
}

View File

@@ -60,22 +60,6 @@ public class BlockListener implements Listener {
public void onBlockPlace(BlockPlaceEvent event) {
}
/**
* Called when a block is interacted with
*
* @param event Relevant event details
*/
public void onBlockInteract(BlockInteractEvent event) {
}
/**
* Called when a player right clicks a block
*
* @param event Relevant event details
*/
public void onBlockRightClick(BlockRightClickEvent event) {
}
/**
* Called when redstone changes
* From: the source of the redstone change