Removed @Override for cancellable interface
By: durron597 <martin.jared@gmail.com>
This commit is contained in:
parent
f5b05b2c92
commit
bc2b329615
1 changed files with 11 additions and 13 deletions
|
@ -10,9 +10,9 @@ import org.bukkit.event.Event;
|
||||||
*/
|
*/
|
||||||
public class BlockFromToEvent extends BlockEvent implements Cancellable {
|
public class BlockFromToEvent extends BlockEvent implements Cancellable {
|
||||||
protected Block from;
|
protected Block from;
|
||||||
protected BlockFace face;
|
protected BlockFace face;
|
||||||
protected boolean cancel;
|
protected boolean cancel;
|
||||||
|
|
||||||
public BlockFromToEvent(final Event.Type type, final Block block, final BlockFace face) {
|
public BlockFromToEvent(final Event.Type type, final Block block, final BlockFace face) {
|
||||||
super(type, block);
|
super(type, block);
|
||||||
this.face = face;
|
this.face = face;
|
||||||
|
@ -28,23 +28,21 @@ public class BlockFromToEvent extends BlockEvent implements Cancellable {
|
||||||
public BlockFace getFace() {
|
public BlockFace getFace() {
|
||||||
return face;
|
return face;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience method for getting the faced block
|
* Convenience method for getting the faced block
|
||||||
*
|
*
|
||||||
* @return Block the faced block
|
* @return Block the faced block
|
||||||
*/
|
*/
|
||||||
public Block getFromBlock() {
|
public Block getFromBlock() {
|
||||||
return from;
|
return from;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public boolean isCancelled() {
|
||||||
public boolean isCancelled() {
|
return cancel;
|
||||||
return cancel;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
public void setCancelled(boolean cancel) {
|
||||||
public void setCancelled(boolean cancel) {
|
this.cancel = cancel;
|
||||||
this.cancel = cancel;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue