1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-17 18:47:40 +01:00

Removed @Override for cancellable interface

By: durron597 <martin.jared@gmail.com>
This commit is contained in:
Bukkit/Spigot 2011-01-01 06:52:28 -05:00
parent f5b05b2c92
commit bc2b329615

View file

@ -10,9 +10,9 @@ import org.bukkit.event.Event;
*/
public class BlockFromToEvent extends BlockEvent implements Cancellable {
protected Block from;
protected BlockFace face;
protected boolean cancel;
protected BlockFace face;
protected boolean cancel;
public BlockFromToEvent(final Event.Type type, final Block block, final BlockFace face) {
super(type, block);
this.face = face;
@ -28,23 +28,21 @@ public class BlockFromToEvent extends BlockEvent implements Cancellable {
public BlockFace getFace() {
return face;
}
/**
* Convenience method for getting the faced block
*
* @return Block the faced block
*/
public Block getFromBlock() {
return from;
return from;
}
@Override
public boolean isCancelled() {
return cancel;
}
public boolean isCancelled() {
return cancel;
}
@Override
public void setCancelled(boolean cancel) {
this.cancel = cancel;
}
public void setCancelled(boolean cancel) {
this.cancel = cancel;
}
}