summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorErik Broes <erikbroes@grum.nl>2011-07-17 17:02:03 +0200
committerErik Broes <erikbroes@grum.nl>2011-07-17 17:20:22 +0200
commit6ff9f7cad6bbb38b796fed464153eb9634121a54 (patch)
treedc9e811100e2354176d2c54092a32177830269b2 /src
parentb5f8bb54343ef7f3f8b0bee8a16a851fecd04d30 (diff)
downloadbukkit-6ff9f7cad6bbb38b796fed464153eb9634121a54.tar
bukkit-6ff9f7cad6bbb38b796fed464153eb9634121a54.tar.gz
bukkit-6ff9f7cad6bbb38b796fed464153eb9634121a54.tar.lz
bukkit-6ff9f7cad6bbb38b796fed464153eb9634121a54.tar.xz
bukkit-6ff9f7cad6bbb38b796fed464153eb9634121a54.zip
Remove superfluous javadocs
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/World.java4
-rw-r--r--src/main/java/org/bukkit/event/block/BlockBreakEvent.java16
-rw-r--r--src/main/java/org/bukkit/event/block/BlockBurnEvent.java16
-rw-r--r--src/main/java/org/bukkit/event/block/BlockDamageEvent.java16
-rw-r--r--src/main/java/org/bukkit/event/block/BlockDispenseEvent.java16
-rw-r--r--src/main/java/org/bukkit/event/block/BlockFadeEvent.java16
-rw-r--r--src/main/java/org/bukkit/event/block/BlockFormEvent.java16
-rw-r--r--src/main/java/org/bukkit/event/block/BlockFromToEvent.java16
-rw-r--r--src/main/java/org/bukkit/event/block/BlockIgniteEvent.java16
-rw-r--r--src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/block/BlockPlaceEvent.java16
-rw-r--r--src/main/java/org/bukkit/event/block/LeavesDecayEvent.java16
-rw-r--r--src/main/java/org/bukkit/event/block/SignChangeEvent.java16
-rw-r--r--src/main/java/org/bukkit/event/block/SnowFormEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java16
-rw-r--r--src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java16
-rw-r--r--src/main/java/org/bukkit/event/entity/EntityCombustEvent.java16
-rw-r--r--src/main/java/org/bukkit/event/entity/EntityDamageEvent.java18
-rw-r--r--src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/entity/EntityInteractEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java16
-rw-r--r--src/main/java/org/bukkit/event/entity/EntityTameEvent.java14
-rw-r--r--src/main/java/org/bukkit/event/entity/EntityTargetEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/entity/PigZapEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/inventory/FurnaceBurnEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/player/PlayerChatEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/player/PlayerDropItemEvent.java20
-rw-r--r--src/main/java/org/bukkit/event/player/PlayerFishEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/player/PlayerInteractEntityEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/player/PlayerKickEvent.java22
-rw-r--r--src/main/java/org/bukkit/event/player/PlayerPickupItemEvent.java18
-rw-r--r--src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java1
-rw-r--r--src/main/java/org/bukkit/event/player/PlayerToggleSneakEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/vehicle/VehicleEnterEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/vehicle/VehicleExitEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java14
-rw-r--r--src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java14
-rw-r--r--src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/world/PortalCreateEvent.java12
-rw-r--r--src/main/java/org/bukkit/event/world/WorldUnloadEvent.java13
49 files changed, 7 insertions, 659 deletions
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
index 0f45a888..c2991781 100644
--- a/src/main/java/org/bukkit/World.java
+++ b/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/src/main/java/org/bukkit/event/block/BlockBreakEvent.java b/src/main/java/org/bukkit/event/block/BlockBreakEvent.java
index 87884c35..5563f403 100644
--- a/src/main/java/org/bukkit/event/block/BlockBreakEvent.java
+++ b/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.
- *<p />
- * 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.
- *<p />
- * 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/src/main/java/org/bukkit/event/block/BlockBurnEvent.java b/src/main/java/org/bukkit/event/block/BlockBurnEvent.java
index 03418eeb..f0567e11 100644
--- a/src/main/java/org/bukkit/event/block/BlockBurnEvent.java
+++ b/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.
- *<p />
- * 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.
- *<p />
- * 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/src/main/java/org/bukkit/event/block/BlockDamageEvent.java b/src/main/java/org/bukkit/event/block/BlockDamageEvent.java
index da932949..e2d8cd80 100644
--- a/src/main/java/org/bukkit/event/block/BlockDamageEvent.java
+++ b/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.
- *<p />
- * 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.
- *<p />
- * 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/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java b/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java
index a81df930..84ffc7db 100644
--- a/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java
+++ b/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.
- *<p />
- * 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.
- *<p />
- * 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/src/main/java/org/bukkit/event/block/BlockFadeEvent.java b/src/main/java/org/bukkit/event/block/BlockFadeEvent.java
index fac2a4ae..21d97ba0 100644
--- a/src/main/java/org/bukkit/event/block/BlockFadeEvent.java
+++ b/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.
- *<p />
- * 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.
- *<p />
- * 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/src/main/java/org/bukkit/event/block/BlockFormEvent.java b/src/main/java/org/bukkit/event/block/BlockFormEvent.java
index 9ae0c71e..87177135 100644
--- a/src/main/java/org/bukkit/event/block/BlockFormEvent.java
+++ b/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.
- *<p />
- * 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.
- *<p />
- * 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/src/main/java/org/bukkit/event/block/BlockFromToEvent.java b/src/main/java/org/bukkit/event/block/BlockFromToEvent.java
index 58d18e32..36710834 100644
--- a/src/main/java/org/bukkit/event/block/BlockFromToEvent.java
+++ b/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.
- *<p />
- * 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.
- *<p />
- * 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/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java b/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java
index f321d07f..6bcf2e8a 100644
--- a/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java
+++ b/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.
- *<p />
- * 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.
- *<p />
- * 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/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java b/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java
index b8e920ba..d56df635 100644
--- a/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java
+++ b/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/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java b/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java
index ceceb1bd..ea143ca9 100644
--- a/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java
+++ b/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
- *<p />
- * 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
- *<p />
- * 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/src/main/java/org/bukkit/event/block/LeavesDecayEvent.java b/src/main/java/org/bukkit/event/block/LeavesDecayEvent.java
index d3885b35..4757bb0e 100644
--- a/src/main/java/org/bukkit/event/block/LeavesDecayEvent.java
+++ b/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
- *<p />
- * 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
- *<p />
- * 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/src/main/java/org/bukkit/event/block/SignChangeEvent.java b/src/main/java/org/bukkit/event/block/SignChangeEvent.java
index 388b7a08..03b69586 100644
--- a/src/main/java/org/bukkit/event/block/SignChangeEvent.java
+++ b/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
- * <p />
- * 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
- * <p />
- * 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/src/main/java/org/bukkit/event/block/SnowFormEvent.java b/src/main/java/org/bukkit/event/block/SnowFormEvent.java
index d8d239c5..7d9ea69d 100644
--- a/src/main/java/org/bukkit/event/block/SnowFormEvent.java
+++ b/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/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java b/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java
index 61e09b9b..394dd580 100644
--- a/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java
+++ b/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.
- *<p />
- * 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.
- *<p />
- * 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/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java b/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java
index f66f6353..1d9021ad 100644
--- a/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java
+++ b/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.
- *<p />
- * 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.
- *<p />
- * 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/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java b/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java
index af8d480a..0587576e 100644
--- a/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java
+++ b/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.
- *<p />
- * 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.
- *<p />
- * 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/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java b/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java
index 238ba61c..308fee46 100644
--- a/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java
+++ b/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/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java b/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java
index c4779721..cf229e81 100644
--- a/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java
+++ b/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/src/main/java/org/bukkit/event/entity/EntityInteractEvent.java b/src/main/java/org/bukkit/event/entity/EntityInteractEvent.java
index 3525d21f..0fec15b6 100644
--- a/src/main/java/org/bukkit/event/entity/EntityInteractEvent.java
+++ b/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/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java b/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java
index f6760fcf..5c6685bf 100644
--- a/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java
+++ b/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/src/main/java/org/bukkit/event/entity/EntityTameEvent.java b/src/main/java/org/bukkit/event/entity/EntityTameEvent.java
index 6e8e9549..af7363d4 100644
--- a/src/main/java/org/bukkit/event/entity/EntityTameEvent.java
+++ b/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/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java b/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java
index 228686ab..a198f626 100644
--- a/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java
+++ b/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/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java b/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java
index b163efe8..2fd38537 100644
--- a/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java
+++ b/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/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java b/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java
index 6f7edc3d..8d6e4876 100644
--- a/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java
+++ b/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/src/main/java/org/bukkit/event/entity/PigZapEvent.java b/src/main/java/org/bukkit/event/entity/PigZapEvent.java
index 0aca356c..7d191f27 100644
--- a/src/main/java/org/bukkit/event/entity/PigZapEvent.java
+++ b/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/src/main/java/org/bukkit/event/inventory/FurnaceBurnEvent.java b/src/main/java/org/bukkit/event/inventory/FurnaceBurnEvent.java
index dd60a903..d455864f 100644
--- a/src/main/java/org/bukkit/event/inventory/FurnaceBurnEvent.java
+++ b/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/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java b/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java
index d3cd50e2..4b42b46c 100644
--- a/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java
+++ b/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/src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java b/src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java
index 5eefd3f2..5798176f 100644
--- a/src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java
+++ b/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/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java b/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java
index a2d6f6e7..76a904a6 100644
--- a/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java
+++ b/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/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java b/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java
index eb55ed86..0ba13eb6 100644
--- a/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java
+++ b/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/src/main/java/org/bukkit/event/player/PlayerChatEvent.java b/src/main/java/org/bukkit/event/player/PlayerChatEvent.java
index 850e0e2a..5c71f3ea 100644
--- a/src/main/java/org/bukkit/event/player/PlayerChatEvent.java
+++ b/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/src/main/java/org/bukkit/event/player/PlayerDropItemEvent.java b/src/main/java/org/bukkit/event/player/PlayerDropItemEvent.java
index 38ab0357..926d09d9 100644
--- a/src/main/java/org/bukkit/event/player/PlayerDropItemEvent.java
+++ b/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/src/main/java/org/bukkit/event/player/PlayerFishEvent.java b/src/main/java/org/bukkit/event/player/PlayerFishEvent.java
index 584785be..8cbcb741 100644
--- a/src/main/java/org/bukkit/event/player/PlayerFishEvent.java
+++ b/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/src/main/java/org/bukkit/event/player/PlayerInteractEntityEvent.java b/src/main/java/org/bukkit/event/player/PlayerInteractEntityEvent.java
index 3b47bb42..07663db3 100644
--- a/src/main/java/org/bukkit/event/player/PlayerInteractEntityEvent.java
+++ b/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/src/main/java/org/bukkit/event/player/PlayerKickEvent.java b/src/main/java/org/bukkit/event/player/PlayerKickEvent.java
index c993ce77..927594f3 100644
--- a/src/main/java/org/bukkit/event/player/PlayerKickEvent.java
+++ b/src/main/java/org/bukkit/event/player/PlayerKickEvent.java
@@ -19,16 +19,6 @@ public class PlayerKickEvent extends PlayerEvent implements Cancellable {
}
/**
- * 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
*
* @return string kick reason
@@ -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/src/main/java/org/bukkit/event/player/PlayerPickupItemEvent.java b/src/main/java/org/bukkit/event/player/PlayerPickupItemEvent.java
index 10437855..3148e148 100644
--- a/src/main/java/org/bukkit/event/player/PlayerPickupItemEvent.java
+++ b/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/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java b/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java
index dabcaf88..07f520b3 100644
--- a/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java
+++ b/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/src/main/java/org/bukkit/event/player/PlayerToggleSneakEvent.java b/src/main/java/org/bukkit/event/player/PlayerToggleSneakEvent.java
index 0a33605e..1e645f1c 100644
--- a/src/main/java/org/bukkit/event/player/PlayerToggleSneakEvent.java
+++ b/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/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java b/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java
index 2ab8d3bb..28ff9280 100644
--- a/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java
+++ b/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/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java b/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java
index e9a52da7..99c2dd20 100644
--- a/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java
+++ b/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/src/main/java/org/bukkit/event/vehicle/VehicleEnterEvent.java b/src/main/java/org/bukkit/event/vehicle/VehicleEnterEvent.java
index 818e8f3a..b7600f7f 100644
--- a/src/main/java/org/bukkit/event/vehicle/VehicleEnterEvent.java
+++ b/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/src/main/java/org/bukkit/event/vehicle/VehicleExitEvent.java b/src/main/java/org/bukkit/event/vehicle/VehicleExitEvent.java
index 71c270be..f8e30dc0 100644
--- a/src/main/java/org/bukkit/event/vehicle/VehicleExitEvent.java
+++ b/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/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java b/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java
index f3c78a50..a883f973 100644
--- a/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java
+++ b/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/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java b/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java
index b2db85be..c53f7ff4 100644
--- a/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java
+++ b/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/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java b/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java
index dd575914..f6e9e2ec 100644
--- a/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java
+++ b/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/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java b/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java
index 981a6f7b..dd030eb6 100644
--- a/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java
+++ b/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/src/main/java/org/bukkit/event/world/PortalCreateEvent.java b/src/main/java/org/bukkit/event/world/PortalCreateEvent.java
index 7f4f8bce..8a04128a 100644
--- a/src/main/java/org/bukkit/event/world/PortalCreateEvent.java
+++ b/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/src/main/java/org/bukkit/event/world/WorldUnloadEvent.java b/src/main/java/org/bukkit/event/world/WorldUnloadEvent.java
index 2bfb2213..30c0f15a 100644
--- a/src/main/java/org/bukkit/event/world/WorldUnloadEvent.java
+++ b/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;
}