Add Override annotations where appropriate

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2019-04-28 11:37:52 +10:00
parent d66310a2f1
commit 82854b7bd7
176 changed files with 503 additions and 0 deletions

View File

@@ -66,10 +66,12 @@ public class BlockBreakEvent extends BlockExpEvent implements Cancellable {
return this.dropItems;
}
@Override
public boolean isCancelled() {
return cancel;
}
@Override
public void setCancelled(boolean cancel) {
this.cancel = cancel;
}

View File

@@ -38,10 +38,12 @@ public class BlockBurnEvent extends BlockEvent implements Cancellable {
return ignitingBlock;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean cancel) {
this.cancelled = cancel;
}

View File

@@ -67,10 +67,12 @@ public class BlockDamageEvent extends BlockEvent implements Cancellable {
return itemstack;
}
@Override
public boolean isCancelled() {
return cancel;
}
@Override
public void setCancelled(boolean cancel) {
this.cancel = cancel;
}

View File

@@ -68,10 +68,12 @@ public class BlockDispenseEvent extends BlockEvent implements Cancellable {
velocity = vel;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean cancel) {
cancelled = cancel;
}

View File

@@ -36,6 +36,7 @@ public class BlockExpEvent extends BlockEvent {
this.exp = exp;
}
@Override
@NotNull
public HandlerList getHandlers() {
return handlers;

View File

@@ -22,10 +22,12 @@ public class BlockExplodeEvent extends BlockEvent implements Cancellable {
this.cancel = false;
}
@Override
public boolean isCancelled() {
return cancel;
}
@Override
public void setCancelled(boolean cancel) {
this.cancel = cancel;
}

View File

@@ -44,10 +44,12 @@ public class BlockFadeEvent extends BlockEvent implements Cancellable {
return newState;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean cancel) {
this.cancelled = cancel;
}

View File

@@ -55,10 +55,12 @@ public class BlockFromToEvent extends BlockEvent implements Cancellable {
return to;
}
@Override
public boolean isCancelled() {
return cancel;
}
@Override
public void setCancelled(boolean cancel) {
this.cancel = cancel;
}

View File

@@ -41,14 +41,17 @@ public class BlockGrowEvent extends BlockEvent implements Cancellable {
return newState;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean cancel) {
this.cancelled = cancel;
}
@Override
@NotNull
public HandlerList getHandlers() {
return handlers;

View File

@@ -37,10 +37,12 @@ public class BlockIgniteEvent extends BlockEvent implements Cancellable {
this.cancel = false;
}
@Override
public boolean isCancelled() {
return cancel;
}
@Override
public void setCancelled(boolean cancel) {
this.cancel = cancel;
}

View File

@@ -64,10 +64,12 @@ public class BlockPhysicsEvent extends BlockEvent implements Cancellable {
return changed.getMaterial();
}
@Override
public boolean isCancelled() {
return cancel;
}
@Override
public void setCancelled(boolean cancel) {
this.cancel = cancel;
}

View File

@@ -18,10 +18,12 @@ public abstract class BlockPistonEvent extends BlockEvent implements Cancellable
this.direction = direction;
}
@Override
public boolean isCancelled() {
return this.cancelled;
}
@Override
public void setCancelled(boolean cancelled) {
this.cancelled = cancelled;
}

View File

@@ -40,10 +40,12 @@ public class BlockPlaceEvent extends BlockEvent implements Cancellable {
cancel = false;
}
@Override
public boolean isCancelled() {
return cancel;
}
@Override
public void setCancelled(boolean cancel) {
this.cancel = cancel;
}

View File

@@ -18,10 +18,12 @@ public class LeavesDecayEvent extends BlockEvent implements Cancellable {
super(block);
}
@Override
public boolean isCancelled() {
return cancel;
}
@Override
public void setCancelled(boolean cancel) {
this.cancel = cancel;
}

View File

@@ -24,10 +24,12 @@ public class NotePlayEvent extends BlockEvent implements Cancellable {
this.note = note;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean cancel) {
this.cancelled = cancel;
}

View File

@@ -70,10 +70,12 @@ public class SignChangeEvent extends BlockEvent implements Cancellable {
lines[index] = line;
}
@Override
public boolean isCancelled() {
return cancel;
}
@Override
public void setCancelled(boolean cancel) {
this.cancel = cancel;
}