13
0
geforkt von Mirrors/Paper

Removed @Override for cancellable interface

By: durron597 <martin.jared@gmail.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2011-01-01 06:52:28 -05:00
Ursprung f5b05b2c92
Commit bc2b329615

Datei anzeigen

@ -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;
}
}