geforkt von Mirrors/Paper
Removed @Override for cancellable interface
By: durron597 <martin.jared@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
f5b05b2c92
Commit
bc2b329615
@ -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;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren