diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index 0f45a8880c..c29917812f 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -80,7 +80,7 @@ public interface World { * * @param x X-coordinate of the block * @param z Z-coordinate of the block - * + * * @return Highest non-empty block */ public Block getHighestBlockAt(int x, int z); @@ -89,7 +89,7 @@ public interface World { * Gets the highest non-empty block at the given coordinates * * @param location Coordinates to get the highest block - * + * * @return Highest non-empty block */ public Block getHighestBlockAt(Location location); diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockBreakEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockBreakEvent.java index 87884c35f0..5563f4030e 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockBreakEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockBreakEvent.java @@ -33,26 +33,10 @@ public class BlockBreakEvent extends BlockEvent implements Cancellable { return player; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - *
- * If a Block Break event is cancelled, the block will not break. - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Block Break event is cancelled, the block will not break. - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockBurnEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockBurnEvent.java index 03418eebeb..f0567e1121 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockBurnEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockBurnEvent.java @@ -16,26 +16,10 @@ public class BlockBurnEvent extends BlockEvent implements Cancellable { this.cancelled = false; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Block Burn event is cancelled, the block will not be destroyed as a result of being burnt by fire. - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancelled; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Block Burn event is cancelled, the block will not be destroyed as a result of being burnt by fire. - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancelled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockDamageEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockDamageEvent.java index da932949aa..e2d8cd8098 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockDamageEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockDamageEvent.java @@ -60,26 +60,10 @@ public class BlockDamageEvent extends BlockEvent implements Cancellable { return itemstack; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Block Damage event is cancelled, the block will not be damaged. - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Block Damage event is cancelled, the block will not be damaged. - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java index a81df930e6..84ffc7db62 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java @@ -61,26 +61,10 @@ public class BlockDispenseEvent extends BlockEvent implements Cancellable { velocity = vel; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Block Dispense event is cancelled, the block will not dispense the item. - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancelled; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Block Dispense event is cancelled, the block will not dispense the item. - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { cancelled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockFadeEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockFadeEvent.java index fac2a4ae04..21d97ba0d9 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockFadeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockFadeEvent.java @@ -33,26 +33,10 @@ public class BlockFadeEvent extends BlockEvent implements Cancellable { return newState; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Block Fade event is cancelled, the block will not fade, melt or disappear. - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancelled; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Block Fade event is cancelled, the block will not fade, melt or disappear. - * - * @param cancel true if you wish to cancel blocks like snow or ice from melting or fading - */ public void setCancelled(boolean cancel) { this.cancelled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockFormEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockFormEvent.java index 9ae0c71ea0..8717713566 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockFormEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockFormEvent.java @@ -44,26 +44,10 @@ public class BlockFormEvent extends BlockEvent implements Cancellable { return newState; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Block Form event is cancelled, the block will not be formed or will not spread. - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancelled; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Block Form event is cancelled, the block will not be formed or will not spread. - * - * @param cancel true if you wish to cancel the block from forming or spreading - */ public void setCancelled(boolean cancel) { this.cancelled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockFromToEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockFromToEvent.java index 58d18e325c..36710834f8 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockFromToEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockFromToEvent.java @@ -41,26 +41,10 @@ public class BlockFromToEvent extends BlockEvent implements Cancellable { return to; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Block From To event is cancelled, the block will not move. - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Block From To event is cancelled, the block will not move. - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java index f321d07f3e..6bcf2e8ace 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java @@ -22,26 +22,10 @@ public class BlockIgniteEvent extends BlockEvent implements Cancellable { this.cancel = false; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Block Ignite event is cancelled, the block will not be ignited. - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Block Ignite event is cancelled, the block will not be ignited. - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java index b8e920ba9f..d56df63519 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java @@ -34,22 +34,10 @@ public class BlockPhysicsEvent extends BlockEvent implements Cancellable { return Material.getMaterial(changed); } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java index ceceb1bdc6..ea143ca927 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java @@ -29,26 +29,10 @@ public class BlockPlaceEvent extends BlockEvent implements Cancellable { cancel = false; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * If a Block Place event is cancelled, the block will not be placed. - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * If a Block Place event is cancelled, the block will not be placed. - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/block/LeavesDecayEvent.java b/paper-api/src/main/java/org/bukkit/event/block/LeavesDecayEvent.java index d3885b3590..4757bb0ec6 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/LeavesDecayEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/LeavesDecayEvent.java @@ -15,26 +15,10 @@ public class LeavesDecayEvent extends BlockEvent implements Cancellable { super(Type.LEAVES_DECAY, block); } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * If a Leaves Decay event is cancelled, the leaves will not decay. - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * If a Leaves Decay event is cancelled, the leaves will not decay. - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java index 388b7a08ef..03b69586f7 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java @@ -60,26 +60,10 @@ public class SignChangeEvent extends BlockEvent implements Cancellable { lines[index] = line; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * If a Sign Change event is cancelled, the sign will not be changed. - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * If a Sign Change event is cancelled, the sign will not be changed. - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/block/SnowFormEvent.java b/paper-api/src/main/java/org/bukkit/event/block/SnowFormEvent.java index d8d239c5bc..7d9ea69d43 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/SnowFormEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/SnowFormEvent.java @@ -54,22 +54,10 @@ public class SnowFormEvent extends BlockEvent implements Cancellable { this.data = data; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel snow from forming during a snowfall - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java index 61e09b9bb0..394dd5804b 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java @@ -24,26 +24,10 @@ public class CreatureSpawnEvent extends EntityEvent implements Cancellable { this.spawnReason = spawnReason; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Creature Spawn event is cancelled, the creature will not spawn. - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return canceled; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Creature Spawn event is cancelled, the creature will not spawn. - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { canceled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java index f66f6353b2..1d9021adf2 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java @@ -29,26 +29,10 @@ public class CreeperPowerEvent extends EntityEvent implements Cancellable { this.bolt = null; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Creeper Power event is cancelled, the Creeper will not be powered. - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return canceled; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If a Creeper Power event is cancelled, the Creeper will not be powered. - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { canceled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java index af8d480ac5..0587576ed4 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java @@ -16,26 +16,10 @@ public class EntityCombustEvent extends EntityEvent implements Cancellable { this.cancel = false; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If an Entity Combust event is cancelled, the entity will not combust. - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * If an Entity Combust event is cancelled, the entity will not combust. - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java index 238ba61c42..308fee4664 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java @@ -25,28 +25,10 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable { damagee.setLastDamageCause(this); } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * If a damage event is cancelled, the damage will not be deducted from the player's health. - * This will not fire an event. - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancelled; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * If a damage event is cancelled, the damage will not be deducted from the player's health. - * This will not fire an event. - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { cancelled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java index c477972180..cf229e81fe 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java @@ -22,22 +22,10 @@ public class EntityExplodeEvent extends EntityEvent implements Cancellable { this.blocks = blocks; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityInteractEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityInteractEvent.java index 3525d21f4d..0fec15b600 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityInteractEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityInteractEvent.java @@ -17,22 +17,10 @@ public class EntityInteractEvent extends EntityEvent implements Cancellable { this.block = block; } - /** - * Gets the cancellation state of this event. Set to true if you - * want to prevent buckets from placing water and so forth - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancelled; } - /** - * Sets the cancellation state of this event. A canceled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { cancelled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java index f6760fcf00..5c6685bf5d 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java @@ -37,26 +37,10 @@ public class EntityRegainHealthEvent extends EntityEvent implements Cancellable this.amount = amount; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * If a health-regain event is cancelled, the entity won't get health. - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancelled; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * If a health-regain event is cancelled, the entity won't get health. - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { cancelled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityTameEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityTameEvent.java index 6e8e954900..af7363d437 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityTameEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityTameEvent.java @@ -16,24 +16,10 @@ public class EntityTameEvent extends EntityEvent implements Cancellable { this.owner = owner; } - /** - * Gets the cancellation state of this event. Set to true if you - * want to prevent the entity from being tamed - * - * @return boolean cancellation state - */ public boolean isCancelled() { return cancelled; } - /** - * Sets the cancellation state of this event. A canceled event will not - * be executed in the server, but will still pass to other plugins - * - * Canceling this event will prevent the entity from being tamed - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { cancelled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java index 228686aba9..a198f6263a 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java @@ -18,22 +18,10 @@ public class EntityTargetEvent extends EntityEvent implements Cancellable { this.reason = reason; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java index b163efe8c8..2fd385378d 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java @@ -23,22 +23,10 @@ public class ExplosionPrimeEvent extends EntityEvent implements Cancellable { this(explosive, explosive.getYield(), explosive.isIncendiary()); } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java index 6f7edc3dcc..8d6e48766e 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java @@ -17,22 +17,10 @@ public class ItemSpawnEvent extends EntityEvent implements Cancellable { this.location = loc; } - /** - * Gets the cancellation state of this event. A canceled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is canceled - */ public boolean isCancelled() { return canceled; } - /** - * Sets the cancellation state of this event. A canceled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { canceled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/entity/PigZapEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/PigZapEvent.java index 0aca356ca9..7d191f2707 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/PigZapEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/PigZapEvent.java @@ -20,22 +20,10 @@ public class PigZapEvent extends EntityEvent implements Cancellable { this.pigzombie = pigzombie; } - /** - * Gets the cancellation state of this event. A canceled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is canceled - */ public boolean isCancelled() { return canceled; } - /** - * Sets the cancellation state of this event. A canceled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { canceled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceBurnEvent.java b/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceBurnEvent.java index dd60a903cd..d455864f7d 100644 --- a/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceBurnEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceBurnEvent.java @@ -78,22 +78,10 @@ public class FurnaceBurnEvent extends Event implements Cancellable { this.burning = burning; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancelled; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancelled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java b/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java index d3cd50e24d..4b42b46c61 100644 --- a/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java @@ -59,22 +59,10 @@ public class FurnaceSmeltEvent extends Event implements Cancellable{ this.result = result; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancelled; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancelled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java b/paper-api/src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java index 5eefd3f2e8..5798176f2b 100644 --- a/paper-api/src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java @@ -26,22 +26,10 @@ public class PaintingBreakEvent extends PaintingEvent implements Cancellable { return cause; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancelled; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancelled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java b/paper-api/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java index a2d6f6e714..76a904a63c 100644 --- a/paper-api/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java @@ -53,22 +53,10 @@ public class PaintingPlaceEvent extends PaintingEvent implements Cancellable { return blockFace; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancelled; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancelled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java index eb55ed869d..0ba13eb6da 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java @@ -17,22 +17,10 @@ public class PlayerBedEnterEvent extends PlayerEvent implements Cancellable { this.bed = bed; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerChatEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerChatEvent.java index 850e0e2a31..5c71f3eade 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerChatEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerChatEvent.java @@ -26,22 +26,10 @@ public class PlayerChatEvent extends PlayerEvent implements Cancellable { this.message = message; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerDropItemEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerDropItemEvent.java index 38ab0357bf..926d09d9ca 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerDropItemEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerDropItemEvent.java @@ -25,30 +25,10 @@ public class PlayerDropItemEvent extends PlayerEvent implements Cancellable { return drop; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * If an item drop event is cancelled, the item will not be dropped and it - * will be added back to the players inventory. - * This will not fire an event. - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * If an item drop event is cancelled, the item will not be dropped and it - * will be added back to the players inventory. - * This will not fire an event. - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerFishEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerFishEvent.java index 584785beb6..8cbcb741ac 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerFishEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerFishEvent.java @@ -27,22 +27,10 @@ public class PlayerFishEvent extends PlayerEvent implements Cancellable { return entity; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEntityEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEntityEvent.java index 3b47bb4221..07663db369 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEntityEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEntityEvent.java @@ -16,22 +16,10 @@ public class PlayerInteractEntityEvent extends PlayerEvent implements Cancellabl this.clickedEntity = clickedEntity; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancelled; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins. - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancelled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerKickEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerKickEvent.java index c993ce777c..927594f307 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerKickEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerKickEvent.java @@ -18,16 +18,6 @@ public class PlayerKickEvent extends PlayerEvent implements Cancellable { this.cancel = false; } - /** - * Gets the cancellation state of this event. Set to true if you - * want to prevent the player from getting kicked. - * - * @return boolean cancellation state - */ - public boolean isCancelled() { - return cancel; - } - /** * Gets the reason why the player is getting kicked * @@ -46,14 +36,10 @@ public class PlayerKickEvent extends PlayerEvent implements Cancellable { return leaveMessage; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * Cancelling this event will prevent the kick of the targetted player - * - * @param cancel true if you wish to cancel this event - */ + public boolean isCancelled() { + return cancel; + } + public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerPickupItemEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerPickupItemEvent.java index 104378551c..3148e148b9 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerPickupItemEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerPickupItemEvent.java @@ -36,28 +36,10 @@ public class PlayerPickupItemEvent extends PlayerEvent implements Cancellable { return remaining; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * If an item pickup event is cancelled, the item will not be picked up. - * This will not fire an event. - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * If an item pickup event is cancelled, the item will not be picked up. - * This will not fire an event. - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java index dabcaf8839..07f520b332 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java @@ -11,6 +11,7 @@ public class PlayerTeleportEvent extends PlayerMoveEvent { public PlayerTeleportEvent(Player player, Location from, Location to) { super(Type.PLAYER_TELEPORT, player, from, to); } + public PlayerTeleportEvent(final Event.Type type, Player player, Location from, Location to) { super(type, player, from, to); } diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerToggleSneakEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerToggleSneakEvent.java index 0a33605e4e..1e645f1c37 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerToggleSneakEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerToggleSneakEvent.java @@ -24,22 +24,10 @@ public class PlayerToggleSneakEvent extends PlayerEvent implements Cancellable { return isSneaking; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java index 2ab8d3bbad..28ff9280c6 100644 --- a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java @@ -45,22 +45,10 @@ public class VehicleDamageEvent extends VehicleEvent implements Cancellable { this.damage = damage; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancelled; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancelled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java index e9a52da7ac..99c2dd20ed 100644 --- a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java @@ -25,22 +25,10 @@ public class VehicleDestroyEvent extends VehicleEvent implements Cancellable { return attacker; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancelled; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancelled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleEnterEvent.java b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleEnterEvent.java index 818e8f3ab9..b7600f7f4d 100644 --- a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleEnterEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleEnterEvent.java @@ -25,22 +25,10 @@ public class VehicleEnterEvent extends VehicleEvent implements Cancellable { return entered; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancelled; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancelled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleExitEvent.java b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleExitEvent.java index 71c270bef3..f8e30dc05f 100644 --- a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleExitEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleExitEvent.java @@ -25,22 +25,10 @@ public class VehicleExitEvent extends VehicleEvent implements Cancellable { return exited; } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancelled; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancelled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java b/paper-api/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java index f3c78a5038..a883f973e8 100644 --- a/paper-api/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java @@ -20,22 +20,10 @@ public class LightningStrikeEvent extends WeatherEvent implements Cancellable { this.world = world; } - /** - * Gets the cancellation state of this event. A canceled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is canceled - */ public boolean isCancelled() { return canceled; } - /** - * Sets the cancellation state of this event. A canceled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { canceled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java index b2db85be59..c53f7ff4b1 100644 --- a/paper-api/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java @@ -10,30 +10,16 @@ public class ThunderChangeEvent extends WeatherEvent implements Cancellable { private boolean canceled; private boolean to; - private World world; public ThunderChangeEvent(World world, boolean to) { super(Type.THUNDER_CHANGE, world); - this.world = world; this.to = to; } - /** - * Gets the cancellation state of this event. A canceled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is canceled - */ public boolean isCancelled() { return canceled; } - /** - * Sets the cancellation state of this event. A canceled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { canceled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java index dd5759143b..f6e9e2ec03 100644 --- a/paper-api/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java @@ -10,30 +10,16 @@ public class WeatherChangeEvent extends WeatherEvent implements Cancellable { private boolean canceled; private boolean to; - private World world; public WeatherChangeEvent(World world, boolean to) { super(Type.WEATHER_CHANGE, world); - this.world = world; this.to = to; } - /** - * Gets the cancellation state of this event. A canceled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is canceled - */ public boolean isCancelled() { return canceled; } - /** - * Sets the cancellation state of this event. A canceled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { canceled = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java b/paper-api/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java index 981a6f7b5b..dd030eb682 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java @@ -13,22 +13,10 @@ public class ChunkUnloadEvent extends ChunkEvent implements Cancellable { super(Type.CHUNK_UNLOAD, chunk); } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java b/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java index 7f4f8bced6..8a04128a52 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java @@ -27,22 +27,10 @@ public class PortalCreateEvent extends WorldEvent implements Cancellable { return this.blocks; } - /** - * Gets the cancellation state of this event. A canceled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is canceled - */ public boolean isCancelled() { return cancel; } - /** - * Sets the cancellation state of this event. A canceled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.cancel = cancel; } diff --git a/paper-api/src/main/java/org/bukkit/event/world/WorldUnloadEvent.java b/paper-api/src/main/java/org/bukkit/event/world/WorldUnloadEvent.java index 2bfb22132f..30c0f15ae1 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/WorldUnloadEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/world/WorldUnloadEvent.java @@ -7,29 +7,16 @@ import org.bukkit.event.Cancellable; * Called when a World is unloaded */ public class WorldUnloadEvent extends WorldEvent implements Cancellable { - private boolean isCancelled; public WorldUnloadEvent(World world) { super(Type.WORLD_UNLOAD, world); } - /** - * Gets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @return true if this event is cancelled - */ public boolean isCancelled() { return this.isCancelled; } - /** - * Sets the cancellation state of this event. A cancelled event will not - * be executed in the server, but will still pass to other plugins - * - * @param cancel true if you wish to cancel this event - */ public void setCancelled(boolean cancel) { this.isCancelled = cancel; }