Remove superfluous javadocs

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
Bukkit/Spigot 2011-07-17 17:02:03 +02:00
parent c11905550e
commit 3c852a3c8f
49 changed files with 7 additions and 659 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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