Events should be present tense, not paste tense.
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
@@ -8,12 +8,12 @@ import org.bukkit.event.Cancellable;
|
||||
/**
|
||||
* @author tkelly
|
||||
*/
|
||||
public class BlockDamagedEvent extends BlockEvent implements Cancellable {
|
||||
public class BlockDamageEvent extends BlockEvent implements Cancellable {
|
||||
private Player player;
|
||||
private BlockDamageLevel damageLevel;
|
||||
private boolean cancel;
|
||||
|
||||
public BlockDamagedEvent(Type type, Block block, BlockDamageLevel level, Player player) {
|
||||
public BlockDamageEvent(Type type, Block block, BlockDamageLevel level, Player player) {
|
||||
super(type, block);
|
||||
this.damageLevel = level;
|
||||
this.player = player;
|
||||
@@ -19,7 +19,7 @@ public class BlockListener implements Listener {
|
||||
*
|
||||
* @param event Relevant event details
|
||||
*/
|
||||
public void onBlockDamaged(BlockDamagedEvent event) {
|
||||
public void onBlockDamaged(BlockDamageEvent event) {
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -57,7 +57,7 @@ public class BlockListener implements Listener {
|
||||
*
|
||||
* @param event Relevant event details
|
||||
*/
|
||||
public void onBlockPlaced(BlockPlacedEvent event) {
|
||||
public void onBlockPlaced(BlockPlaceEvent event) {
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -73,7 +73,7 @@ public class BlockListener implements Listener {
|
||||
*
|
||||
* @param event Relevant event details
|
||||
*/
|
||||
public void onBlockRightClicked(BlockRightClickedEvent event) {
|
||||
public void onBlockRightClicked(BlockRightClickEvent event) {
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,14 +8,14 @@ import org.bukkit.event.Cancellable;
|
||||
/**
|
||||
* Not implemented yet
|
||||
*/
|
||||
public class BlockPlacedEvent extends BlockEvent implements Cancellable {
|
||||
public class BlockPlaceEvent extends BlockEvent implements Cancellable {
|
||||
protected boolean cancel;
|
||||
protected boolean canBuild;
|
||||
protected Block placedAgainst;
|
||||
protected ItemStack itemInHand;
|
||||
protected Player player;
|
||||
|
||||
public BlockPlacedEvent(Type type, Block placedBlock, Block placedAgainst, ItemStack itemInHand, Player thePlayer, boolean canBuild) {
|
||||
public BlockPlaceEvent(Type type, Block placedBlock, Block placedAgainst, ItemStack itemInHand, Player thePlayer, boolean canBuild) {
|
||||
super(type, placedBlock);
|
||||
this.placedAgainst = placedAgainst;
|
||||
this.itemInHand = itemInHand;
|
||||
@@ -8,13 +8,13 @@ import org.bukkit.Player;
|
||||
/**
|
||||
* Not implemented yet
|
||||
*/
|
||||
public class BlockRightClickedEvent extends BlockEvent {
|
||||
public class BlockRightClickEvent extends BlockEvent {
|
||||
protected Block clickedBlock;
|
||||
protected BlockFace direction;
|
||||
protected ItemStack itemInHand;
|
||||
protected Player player;
|
||||
|
||||
public BlockRightClickedEvent(Type type, Block placedAgainst, BlockFace direction, ItemStack itemInHand, Player thePlayer) {
|
||||
public BlockRightClickEvent(Type type, Block placedAgainst, BlockFace direction, ItemStack itemInHand, Player thePlayer) {
|
||||
super(type, placedAgainst);
|
||||
this.clickedBlock = placedAgainst;
|
||||
this.direction = direction;
|
||||
Reference in New Issue
Block a user