Add PLAYER_INTERACT, remove BLOCK_RIGHT_CLICK, BLOCK_INTERACT and PLAYER_ITEM
By: Erik Broes <erikbroes@ripe.net>
This commit is contained in:
24
paper-api/src/main/java/org/bukkit/event/block/Action.java
Normal file
24
paper-api/src/main/java/org/bukkit/event/block/Action.java
Normal 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,
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user