diff options
author | Feildmaster <admin@feildmaster.com> | 2012-02-19 01:25:46 -0600 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-02-19 04:10:07 -0500 |
commit | 99af2a1aadcc8cfe1a7e2e81e5573cfb38801394 (patch) | |
tree | 71c89877515ceef986307fc32ede7cd9a671d5a8 /src | |
parent | 070ae68360846d6808221d461a5fe33690f6d5ef (diff) | |
download | bukkit-99af2a1aadcc8cfe1a7e2e81e5573cfb38801394.tar bukkit-99af2a1aadcc8cfe1a7e2e81e5573cfb38801394.tar.gz bukkit-99af2a1aadcc8cfe1a7e2e81e5573cfb38801394.tar.lz bukkit-99af2a1aadcc8cfe1a7e2e81e5573cfb38801394.tar.xz bukkit-99af2a1aadcc8cfe1a7e2e81e5573cfb38801394.zip |
[Bleeding] Event no longer implements Serializable.
Diffstat (limited to 'src')
129 files changed, 4 insertions, 170 deletions
diff --git a/src/main/java/org/bukkit/event/Event.java b/src/main/java/org/bukkit/event/Event.java index e2fa3023..f573a374 100644 --- a/src/main/java/org/bukkit/event/Event.java +++ b/src/main/java/org/bukkit/event/Event.java @@ -1,12 +1,9 @@ package org.bukkit.event; -import java.io.Serializable; - /** * Represents an event */ -@SuppressWarnings("serial") -public abstract class Event implements Serializable { +public abstract class Event { private String name; /** diff --git a/src/main/java/org/bukkit/event/block/BlockBreakEvent.java b/src/main/java/org/bukkit/event/block/BlockBreakEvent.java index b8ed1953..606957f4 100644 --- a/src/main/java/org/bukkit/event/block/BlockBreakEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockBreakEvent.java @@ -14,7 +14,6 @@ import org.bukkit.event.HandlerList; * <p /> * If a Block Break event is cancelled, the block will not break. */ -@SuppressWarnings("serial") public class BlockBreakEvent extends BlockEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); diff --git a/src/main/java/org/bukkit/event/block/BlockBurnEvent.java b/src/main/java/org/bukkit/event/block/BlockBurnEvent.java index 8cb9169a..0783bb4d 100644 --- a/src/main/java/org/bukkit/event/block/BlockBurnEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockBurnEvent.java @@ -9,7 +9,6 @@ import org.bukkit.event.HandlerList; * <p /> * If a Block Burn event is cancelled, the block will not be destroyed as a result of being burnt by fire. */ -@SuppressWarnings("serial") public class BlockBurnEvent extends BlockEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancelled; diff --git a/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java b/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java index 16f09a01..cbaa2e82 100644 --- a/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java @@ -13,7 +13,6 @@ import org.bukkit.event.HandlerList; * <li>If you want to figure out what is being placed, use {@link #getMaterial()} or {@link #getMaterialId()} instead.</li> * </ul> */ -@SuppressWarnings("serial") public class BlockCanBuildEvent extends BlockEvent { private static final HandlerList handlers = new HandlerList(); protected boolean buildable; diff --git a/src/main/java/org/bukkit/event/block/BlockDamageEvent.java b/src/main/java/org/bukkit/event/block/BlockDamageEvent.java index f2a076f2..c2b271ed 100644 --- a/src/main/java/org/bukkit/event/block/BlockDamageEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockDamageEvent.java @@ -11,7 +11,6 @@ import org.bukkit.inventory.ItemStack; * <p /> * If a Block Damage event is cancelled, the block will not be damaged. */ -@SuppressWarnings("serial") public class BlockDamageEvent extends BlockEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private final Player player; diff --git a/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java b/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java index 83e87f5e..d29a045e 100644 --- a/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java @@ -11,10 +11,8 @@ import org.bukkit.util.Vector; * <p /> * If a Block Dispense event is cancelled, the block will not dispense the item. */ -@SuppressWarnings("serial") public class BlockDispenseEvent extends BlockEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); - private boolean cancelled = false; private ItemStack item; private Vector velocity; diff --git a/src/main/java/org/bukkit/event/block/BlockEvent.java b/src/main/java/org/bukkit/event/block/BlockEvent.java index 85defac2..24052051 100644 --- a/src/main/java/org/bukkit/event/block/BlockEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockEvent.java @@ -6,7 +6,6 @@ import org.bukkit.event.Event; /** * Represents a block related event. */ -@SuppressWarnings("serial") public abstract class BlockEvent extends Event { protected Block block; diff --git a/src/main/java/org/bukkit/event/block/BlockFadeEvent.java b/src/main/java/org/bukkit/event/block/BlockFadeEvent.java index e5fa5ad0..b4b09483 100644 --- a/src/main/java/org/bukkit/event/block/BlockFadeEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockFadeEvent.java @@ -16,7 +16,6 @@ import org.bukkit.event.HandlerList; * <p /> * If a Block Fade event is cancelled, the block will not fade, melt or disappear. */ -@SuppressWarnings("serial") public class BlockFadeEvent extends BlockEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancelled; diff --git a/src/main/java/org/bukkit/event/block/BlockFormEvent.java b/src/main/java/org/bukkit/event/block/BlockFormEvent.java index a7c305ec..7e65e502 100644 --- a/src/main/java/org/bukkit/event/block/BlockFormEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockFormEvent.java @@ -19,7 +19,6 @@ import org.bukkit.event.HandlerList; * * @see BlockSpreadEvent */ -@SuppressWarnings("serial") public class BlockFormEvent extends BlockEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancelled; diff --git a/src/main/java/org/bukkit/event/block/BlockFromToEvent.java b/src/main/java/org/bukkit/event/block/BlockFromToEvent.java index ca9b9649..97832353 100644 --- a/src/main/java/org/bukkit/event/block/BlockFromToEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockFromToEvent.java @@ -10,7 +10,6 @@ import org.bukkit.event.HandlerList; * <p /> * If a Block From To event is cancelled, the block will not move (the liquid will not flow). */ -@SuppressWarnings("serial") public class BlockFromToEvent extends BlockEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); protected Block to; diff --git a/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java b/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java index 45c4dad9..3724aad7 100644 --- a/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java @@ -10,7 +10,6 @@ import org.bukkit.event.HandlerList; * <p /> * If a Block Ignite event is cancelled, the block will not be ignited. */ -@SuppressWarnings("serial") public class BlockIgniteEvent extends BlockEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private final IgniteCause cause; diff --git a/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java b/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java index 53058bfc..6f8198df 100644 --- a/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java @@ -8,7 +8,6 @@ import org.bukkit.event.HandlerList; /** * Thrown when a block physics check is called */ -@SuppressWarnings("serial") public class BlockPhysicsEvent extends BlockEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private final int changed; diff --git a/src/main/java/org/bukkit/event/block/BlockPistonEvent.java b/src/main/java/org/bukkit/event/block/BlockPistonEvent.java index 816ba596..2f489ba4 100644 --- a/src/main/java/org/bukkit/event/block/BlockPistonEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockPistonEvent.java @@ -5,7 +5,6 @@ import org.bukkit.block.Block; import org.bukkit.block.BlockFace; import org.bukkit.event.Cancellable; -@SuppressWarnings("serial") public abstract class BlockPistonEvent extends BlockEvent implements Cancellable { private boolean cancelled; private final BlockFace direction; diff --git a/src/main/java/org/bukkit/event/block/BlockPistonExtendEvent.java b/src/main/java/org/bukkit/event/block/BlockPistonExtendEvent.java index fdbb76c9..18b40b3c 100644 --- a/src/main/java/org/bukkit/event/block/BlockPistonExtendEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockPistonExtendEvent.java @@ -8,7 +8,6 @@ import org.bukkit.block.Block; import org.bukkit.block.BlockFace; import org.bukkit.event.HandlerList; -@SuppressWarnings("serial") public class BlockPistonExtendEvent extends BlockPistonEvent { private static final HandlerList handlers = new HandlerList(); private final int length; diff --git a/src/main/java/org/bukkit/event/block/BlockPistonRetractEvent.java b/src/main/java/org/bukkit/event/block/BlockPistonRetractEvent.java index 7ce03ba9..9737b559 100644 --- a/src/main/java/org/bukkit/event/block/BlockPistonRetractEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockPistonRetractEvent.java @@ -5,7 +5,6 @@ import org.bukkit.block.Block; import org.bukkit.block.BlockFace; import org.bukkit.event.HandlerList; -@SuppressWarnings("serial") public class BlockPistonRetractEvent extends BlockPistonEvent { private static final HandlerList handlers = new HandlerList(); public BlockPistonRetractEvent(final Block block, final BlockFace direction) { diff --git a/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java b/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java index a581c897..46c85022 100644 --- a/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java @@ -12,7 +12,6 @@ import org.bukkit.inventory.ItemStack; * <p /> * If a Block Place event is cancelled, the block will not be placed. */ -@SuppressWarnings("serial") public class BlockPlaceEvent extends BlockEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); protected boolean cancel; diff --git a/src/main/java/org/bukkit/event/block/BlockRedstoneEvent.java b/src/main/java/org/bukkit/event/block/BlockRedstoneEvent.java index ab16c843..625ec902 100644 --- a/src/main/java/org/bukkit/event/block/BlockRedstoneEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockRedstoneEvent.java @@ -6,7 +6,6 @@ import org.bukkit.event.HandlerList; /** * Called when a redstone current changes */ -@SuppressWarnings("serial") public class BlockRedstoneEvent extends BlockEvent { private static final HandlerList handlers = new HandlerList(); private final int oldCurrent; diff --git a/src/main/java/org/bukkit/event/block/BlockSpreadEvent.java b/src/main/java/org/bukkit/event/block/BlockSpreadEvent.java index d8b6315e..f244e410 100644 --- a/src/main/java/org/bukkit/event/block/BlockSpreadEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockSpreadEvent.java @@ -18,7 +18,6 @@ import org.bukkit.event.HandlerList; * * @see BlockFormEvent */ -@SuppressWarnings("serial") public class BlockSpreadEvent extends BlockFormEvent { private static final HandlerList handlers = new HandlerList(); private final Block source; diff --git a/src/main/java/org/bukkit/event/block/EntityBlockFormEvent.java b/src/main/java/org/bukkit/event/block/EntityBlockFormEvent.java index 46473fe0..749e8871 100644 --- a/src/main/java/org/bukkit/event/block/EntityBlockFormEvent.java +++ b/src/main/java/org/bukkit/event/block/EntityBlockFormEvent.java @@ -12,7 +12,6 @@ import org.bukkit.entity.Entity; * <li>Snow formed by a {@link org.bukkit.entity.Snowman}.</li> * </ul> */ -@SuppressWarnings("serial") public class EntityBlockFormEvent extends BlockFormEvent { private final Entity entity; diff --git a/src/main/java/org/bukkit/event/block/LeavesDecayEvent.java b/src/main/java/org/bukkit/event/block/LeavesDecayEvent.java index 69582788..f0bd857b 100644 --- a/src/main/java/org/bukkit/event/block/LeavesDecayEvent.java +++ b/src/main/java/org/bukkit/event/block/LeavesDecayEvent.java @@ -9,7 +9,6 @@ import org.bukkit.event.HandlerList; * <p /> * If a Leaves Decay event is cancelled, the leaves will not decay. */ -@SuppressWarnings("serial") public class LeavesDecayEvent extends BlockEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancel = false; diff --git a/src/main/java/org/bukkit/event/block/SignChangeEvent.java b/src/main/java/org/bukkit/event/block/SignChangeEvent.java index 06709f35..cc1dde21 100644 --- a/src/main/java/org/bukkit/event/block/SignChangeEvent.java +++ b/src/main/java/org/bukkit/event/block/SignChangeEvent.java @@ -10,7 +10,6 @@ import org.bukkit.event.HandlerList; * <p /> * If a Sign Change event is cancelled, the sign will not be changed. */ -@SuppressWarnings("serial") public class SignChangeEvent extends BlockEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancel = false; diff --git a/src/main/java/org/bukkit/event/enchantment/EnchantItemEvent.java b/src/main/java/org/bukkit/event/enchantment/EnchantItemEvent.java index 08930369..172e9e1b 100644 --- a/src/main/java/org/bukkit/event/enchantment/EnchantItemEvent.java +++ b/src/main/java/org/bukkit/event/enchantment/EnchantItemEvent.java @@ -14,7 +14,6 @@ import org.bukkit.inventory.ItemStack; /** * Called when an ItemStack is successfully enchanted (currently at enchantment table) */ -@SuppressWarnings("serial") public class EnchantItemEvent extends Event implements Cancellable { private static final HandlerList handlers = new HandlerList(); private final Block table; diff --git a/src/main/java/org/bukkit/event/enchantment/PrepareItemEnchantEvent.java b/src/main/java/org/bukkit/event/enchantment/PrepareItemEnchantEvent.java index 169b3b06..dbc24a40 100644 --- a/src/main/java/org/bukkit/event/enchantment/PrepareItemEnchantEvent.java +++ b/src/main/java/org/bukkit/event/enchantment/PrepareItemEnchantEvent.java @@ -10,7 +10,6 @@ import org.bukkit.inventory.ItemStack; /** * Called when an ItemStack is inserted in an enchantment table - can be called multiple times */ -@SuppressWarnings("serial") public class PrepareItemEnchantEvent extends Event implements Cancellable { private static final HandlerList handlers = new HandlerList(); private final Block table; diff --git a/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java b/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java index 87704328..8fd3211e 100644 --- a/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java +++ b/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java @@ -11,10 +11,8 @@ import org.bukkit.event.HandlerList; * <p /> * If a Creature Spawn event is cancelled, the creature will not spawn. */ -@SuppressWarnings("serial") public class CreatureSpawnEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); - private final Location location; private boolean canceled; private final CreatureType creatureType; diff --git a/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java b/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java index 95cb0cb9..628dd871 100644 --- a/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java +++ b/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java @@ -9,10 +9,8 @@ import org.bukkit.event.HandlerList; * <p /> * If a Creeper Power event is cancelled, the Creeper will not be powered. */ -@SuppressWarnings("serial") public class CreeperPowerEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); - private boolean canceled; private final PowerCause cause; private Entity bolt; diff --git a/src/main/java/org/bukkit/event/entity/EntityChangeBlockEvent.java b/src/main/java/org/bukkit/event/entity/EntityChangeBlockEvent.java index 3d73ea55..973236aa 100644 --- a/src/main/java/org/bukkit/event/entity/EntityChangeBlockEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityChangeBlockEvent.java @@ -6,7 +6,6 @@ import org.bukkit.entity.Entity; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; -@SuppressWarnings("serial") /** * Called when a LivingEntity changes a block * diff --git a/src/main/java/org/bukkit/event/entity/EntityCombustByBlockEvent.java b/src/main/java/org/bukkit/event/entity/EntityCombustByBlockEvent.java index b94ef0e2..ef872050 100644 --- a/src/main/java/org/bukkit/event/entity/EntityCombustByBlockEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityCombustByBlockEvent.java @@ -3,9 +3,7 @@ package org.bukkit.event.entity; import org.bukkit.block.Block; import org.bukkit.entity.Entity; -@SuppressWarnings("serial") public class EntityCombustByBlockEvent extends EntityCombustEvent { - private final Block combuster; public EntityCombustByBlockEvent(final Block combuster, final Entity combustee, final int duration) { diff --git a/src/main/java/org/bukkit/event/entity/EntityCombustByEntityEvent.java b/src/main/java/org/bukkit/event/entity/EntityCombustByEntityEvent.java index 894cdc78..bece4589 100644 --- a/src/main/java/org/bukkit/event/entity/EntityCombustByEntityEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityCombustByEntityEvent.java @@ -2,9 +2,7 @@ package org.bukkit.event.entity; import org.bukkit.entity.Entity; -@SuppressWarnings("serial") public class EntityCombustByEntityEvent extends EntityCombustEvent { - private final Entity combuster; public EntityCombustByEntityEvent(final Entity combuster, final Entity combustee, final int duration) { diff --git a/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java b/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java index 73b99d98..20b51ebd 100644 --- a/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java @@ -9,7 +9,6 @@ import org.bukkit.event.HandlerList; * <p /> * If an Entity Combust event is cancelled, the entity will not combust. */ -@SuppressWarnings("serial") public class EntityCombustEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private int duration; diff --git a/src/main/java/org/bukkit/event/entity/EntityCreatePortalEvent.java b/src/main/java/org/bukkit/event/entity/EntityCreatePortalEvent.java index 8c5f72c6..b29d1fe2 100644 --- a/src/main/java/org/bukkit/event/entity/EntityCreatePortalEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityCreatePortalEvent.java @@ -10,7 +10,6 @@ import org.bukkit.event.HandlerList; /** * Thrown when a Living Entity creates a portal in a world. */ -@SuppressWarnings("serial") public class EntityCreatePortalEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private final List<BlockState> blocks; diff --git a/src/main/java/org/bukkit/event/entity/EntityDamageByBlockEvent.java b/src/main/java/org/bukkit/event/entity/EntityDamageByBlockEvent.java index ce5e6bed..a8a3eebb 100644 --- a/src/main/java/org/bukkit/event/entity/EntityDamageByBlockEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityDamageByBlockEvent.java @@ -6,9 +6,7 @@ import org.bukkit.entity.Entity; /** * Called when an entity is damaged by a block */ -@SuppressWarnings("serial") public class EntityDamageByBlockEvent extends EntityDamageEvent { - private final Block damager; public EntityDamageByBlockEvent(final Block damager, final Entity damagee, final DamageCause cause, final int damage) { diff --git a/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java b/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java index c55dd22e..53d1e38d 100644 --- a/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java @@ -5,9 +5,7 @@ import org.bukkit.entity.Entity; /** * Called when an entity is damaged by an entity */ -@SuppressWarnings("serial") public class EntityDamageByEntityEvent extends EntityDamageEvent { - private final Entity damager; public EntityDamageByEntityEvent(final Entity damager, final Entity damagee, final DamageCause cause, final int damage) { diff --git a/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java b/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java index 09b933dc..ca46a68b 100644 --- a/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java @@ -8,10 +8,8 @@ import org.bukkit.event.HandlerList; /** * Stores data for damage events */ -@SuppressWarnings("serial") public class EntityDamageEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); - private int damage; private boolean cancelled; private final DamageCause cause; diff --git a/src/main/java/org/bukkit/event/entity/EntityDeathEvent.java b/src/main/java/org/bukkit/event/entity/EntityDeathEvent.java index e7a15244..31672d47 100644 --- a/src/main/java/org/bukkit/event/entity/EntityDeathEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityDeathEvent.java @@ -8,7 +8,6 @@ import org.bukkit.inventory.ItemStack; /** * Thrown whenever a LivingEntity dies */ -@SuppressWarnings("serial") public class EntityDeathEvent extends EntityEvent { private static final HandlerList handlers = new HandlerList(); private final List<ItemStack> drops; diff --git a/src/main/java/org/bukkit/event/entity/EntityEvent.java b/src/main/java/org/bukkit/event/entity/EntityEvent.java index 574cc0a4..85dc0e71 100644 --- a/src/main/java/org/bukkit/event/entity/EntityEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityEvent.java @@ -6,7 +6,6 @@ import org.bukkit.event.Event; /** * Represents an Entity-related event */ -@SuppressWarnings("serial") public abstract class EntityEvent extends Event { protected Entity entity; diff --git a/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java b/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java index e4553311..13b802f7 100644 --- a/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java @@ -11,7 +11,6 @@ import java.util.List; /** * Called when an entity explodes */ -@SuppressWarnings("serial") public class EntityExplodeEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancel; diff --git a/src/main/java/org/bukkit/event/entity/EntityInteractEvent.java b/src/main/java/org/bukkit/event/entity/EntityInteractEvent.java index 264e809e..1c4e1003 100644 --- a/src/main/java/org/bukkit/event/entity/EntityInteractEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityInteractEvent.java @@ -8,11 +8,9 @@ import org.bukkit.event.HandlerList; /** * Called when an entity interacts with an object */ -@SuppressWarnings("serial") public class EntityInteractEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); protected Block block; - private boolean cancelled; public EntityInteractEvent(final Entity entity, final Block block) { diff --git a/src/main/java/org/bukkit/event/entity/EntityPortalEnterEvent.java b/src/main/java/org/bukkit/event/entity/EntityPortalEnterEvent.java index 2840313e..384d5db4 100644 --- a/src/main/java/org/bukkit/event/entity/EntityPortalEnterEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityPortalEnterEvent.java @@ -7,10 +7,8 @@ import org.bukkit.event.HandlerList; /** * Stores data for entities standing inside a portal block */ -@SuppressWarnings("serial") public class EntityPortalEnterEvent extends EntityEvent { private static final HandlerList handlers = new HandlerList(); - private final Location location; public EntityPortalEnterEvent(final Entity entity, final Location location) { diff --git a/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java b/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java index 38624717..fceabee0 100644 --- a/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java @@ -7,10 +7,8 @@ import org.bukkit.event.HandlerList; /** * Stores data for health-regain events */ -@SuppressWarnings("serial") public class EntityRegainHealthEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); - private boolean cancelled; private int amount; private final RegainReason regainReason; diff --git a/src/main/java/org/bukkit/event/entity/EntityShootBowEvent.java b/src/main/java/org/bukkit/event/entity/EntityShootBowEvent.java index f65a0cc3..97413e63 100644 --- a/src/main/java/org/bukkit/event/entity/EntityShootBowEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityShootBowEvent.java @@ -10,10 +10,8 @@ import org.bukkit.inventory.ItemStack; /** * Called when a LivingEntity shoots a bow firing an arrow */ -@SuppressWarnings("serial") public class EntityShootBowEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); - private final ItemStack bow; private Entity projectile; private final float force; diff --git a/src/main/java/org/bukkit/event/entity/EntityTameEvent.java b/src/main/java/org/bukkit/event/entity/EntityTameEvent.java index c5660560..d68a1e64 100644 --- a/src/main/java/org/bukkit/event/entity/EntityTameEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityTameEvent.java @@ -8,7 +8,6 @@ import org.bukkit.event.HandlerList; /** * Thrown when a LivingEntity is tamed */ -@SuppressWarnings("serial") public class EntityTameEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancelled; diff --git a/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java b/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java index b8873449..1329bfd2 100644 --- a/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java @@ -7,7 +7,6 @@ import org.bukkit.event.HandlerList; /** * Called when a creature targets or untargets another entity */ -@SuppressWarnings("serial") public class EntityTargetEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancel; diff --git a/src/main/java/org/bukkit/event/entity/EntityTeleportEvent.java b/src/main/java/org/bukkit/event/entity/EntityTeleportEvent.java index e7d2a353..378dba79 100644 --- a/src/main/java/org/bukkit/event/entity/EntityTeleportEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityTeleportEvent.java @@ -9,10 +9,8 @@ import org.bukkit.event.HandlerList; * Thrown when a non-player entity (such as an Enderman) tries to teleport from one * location to another. */ -@SuppressWarnings("serial") public class EntityTeleportEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); - private boolean cancel; private Location from; private Location to; diff --git a/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java b/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java index 64cdfd57..7ca6a556 100644 --- a/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java +++ b/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java @@ -8,7 +8,6 @@ import org.bukkit.event.HandlerList; /** * Called when an entity has made a decision to explode. */ -@SuppressWarnings("serial") public class ExplosionPrimeEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancel; diff --git a/src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java b/src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java index 98ed5fd6..7d321908 100644 --- a/src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java +++ b/src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java @@ -7,7 +7,6 @@ import org.bukkit.event.HandlerList; /** * Called when a human entity's food level changes */ -@SuppressWarnings("serial") public class FoodLevelChangeEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancel = false; diff --git a/src/main/java/org/bukkit/event/entity/ItemDespawnEvent.java b/src/main/java/org/bukkit/event/entity/ItemDespawnEvent.java index 93077cfd..b086fae3 100644 --- a/src/main/java/org/bukkit/event/entity/ItemDespawnEvent.java +++ b/src/main/java/org/bukkit/event/entity/ItemDespawnEvent.java @@ -5,7 +5,6 @@ import org.bukkit.entity.Entity; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; -@SuppressWarnings("serial") public class ItemDespawnEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean canceled; diff --git a/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java b/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java index b6ebb26f..0a19c2f1 100644 --- a/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java +++ b/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java @@ -8,10 +8,8 @@ import org.bukkit.event.HandlerList; /** * Called when an item is spawned into a world */ -@SuppressWarnings("serial") public class ItemSpawnEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); - private final Location location; private boolean canceled; diff --git a/src/main/java/org/bukkit/event/entity/PigZapEvent.java b/src/main/java/org/bukkit/event/entity/PigZapEvent.java index 04a4b79a..0a990e15 100644 --- a/src/main/java/org/bukkit/event/entity/PigZapEvent.java +++ b/src/main/java/org/bukkit/event/entity/PigZapEvent.java @@ -7,10 +7,8 @@ import org.bukkit.event.HandlerList; /** * Stores data for pigs being zapped */ -@SuppressWarnings("serial") public class PigZapEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); - private boolean canceled; private final Entity pigzombie; private final Entity bolt; diff --git a/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java b/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java index 93e38670..51b052e7 100644 --- a/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java +++ b/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java @@ -8,7 +8,6 @@ import org.bukkit.inventory.ItemStack; /** * Thrown whenever a {@link Player} dies */ -@SuppressWarnings("serial") public class PlayerDeathEvent extends EntityDeathEvent { private int newExp = 0; private String deathMessage = ""; diff --git a/src/main/java/org/bukkit/event/entity/PotionSplashEvent.java b/src/main/java/org/bukkit/event/entity/PotionSplashEvent.java index 6ee14f4b..74905412 100644 --- a/src/main/java/org/bukkit/event/entity/PotionSplashEvent.java +++ b/src/main/java/org/bukkit/event/entity/PotionSplashEvent.java @@ -13,7 +13,6 @@ import org.bukkit.event.HandlerList; /**
* Called when a splash potion hits an area
*/
-@SuppressWarnings("serial")
public class PotionSplashEvent extends ProjectileHitEvent implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private boolean cancelled;
diff --git a/src/main/java/org/bukkit/event/entity/ProjectileHitEvent.java b/src/main/java/org/bukkit/event/entity/ProjectileHitEvent.java index 786f1f1b..96278ec9 100644 --- a/src/main/java/org/bukkit/event/entity/ProjectileHitEvent.java +++ b/src/main/java/org/bukkit/event/entity/ProjectileHitEvent.java @@ -6,7 +6,6 @@ import org.bukkit.event.HandlerList; /** * Called when a projectile hits an object */ -@SuppressWarnings("serial") public class ProjectileHitEvent extends EntityEvent { private static final HandlerList handlers = new HandlerList(); diff --git a/src/main/java/org/bukkit/event/entity/SheepDyeWoolEvent.java b/src/main/java/org/bukkit/event/entity/SheepDyeWoolEvent.java index 6b3d61ab..f9744156 100644 --- a/src/main/java/org/bukkit/event/entity/SheepDyeWoolEvent.java +++ b/src/main/java/org/bukkit/event/entity/SheepDyeWoolEvent.java @@ -5,7 +5,6 @@ import org.bukkit.entity.Entity; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; -@SuppressWarnings("serial") /** * Called when a sheep's wool is dyed */ diff --git a/src/main/java/org/bukkit/event/entity/SheepRegrowWoolEvent.java b/src/main/java/org/bukkit/event/entity/SheepRegrowWoolEvent.java index c6f0ba92..1e12bc3a 100644 --- a/src/main/java/org/bukkit/event/entity/SheepRegrowWoolEvent.java +++ b/src/main/java/org/bukkit/event/entity/SheepRegrowWoolEvent.java @@ -4,7 +4,6 @@ import org.bukkit.entity.Entity; import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
-@SuppressWarnings("serial")
/**
* Called when a sheep regrows its wool
*/
diff --git a/src/main/java/org/bukkit/event/entity/SlimeSplitEvent.java b/src/main/java/org/bukkit/event/entity/SlimeSplitEvent.java index a170ae9b..4f6a1fc4 100644 --- a/src/main/java/org/bukkit/event/entity/SlimeSplitEvent.java +++ b/src/main/java/org/bukkit/event/entity/SlimeSplitEvent.java @@ -7,7 +7,6 @@ import org.bukkit.event.HandlerList; /** * Called when a Slime splits into smaller Slimes upon death */ -@SuppressWarnings("serial") public class SlimeSplitEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancel; diff --git a/src/main/java/org/bukkit/event/inventory/FurnaceBurnEvent.java b/src/main/java/org/bukkit/event/inventory/FurnaceBurnEvent.java index 85563d04..73caf150 100644 --- a/src/main/java/org/bukkit/event/inventory/FurnaceBurnEvent.java +++ b/src/main/java/org/bukkit/event/inventory/FurnaceBurnEvent.java @@ -9,7 +9,6 @@ import org.bukkit.inventory.ItemStack; /** * Called when an ItemStack is successfully burned as fuel in a furnace. */ -@SuppressWarnings("serial") public class FurnaceBurnEvent extends Event implements Cancellable { private static final HandlerList handlers = new HandlerList(); private final Block furnace; diff --git a/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java b/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java index a98a2482..6139de71 100644 --- a/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java +++ b/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java @@ -9,7 +9,6 @@ import org.bukkit.inventory.ItemStack; /** * Called when an ItemStack is successfully smelted in a furnace. */ -@SuppressWarnings("serial") public class FurnaceSmeltEvent extends Event implements Cancellable { private static final HandlerList handlers = new HandlerList(); private final Block furnace; diff --git a/src/main/java/org/bukkit/event/painting/PaintingBreakByEntityEvent.java b/src/main/java/org/bukkit/event/painting/PaintingBreakByEntityEvent.java index 7635fba0..d7f0bb16 100644 --- a/src/main/java/org/bukkit/event/painting/PaintingBreakByEntityEvent.java +++ b/src/main/java/org/bukkit/event/painting/PaintingBreakByEntityEvent.java @@ -6,7 +6,6 @@ import org.bukkit.entity.Painting; /** * Triggered when a painting is removed by an entity */ -@SuppressWarnings("serial") public class PaintingBreakByEntityEvent extends PaintingBreakEvent { private final Entity remover; diff --git a/src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java b/src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java index 1c6b46fc..edf3559c 100644 --- a/src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java +++ b/src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java @@ -7,10 +7,8 @@ import org.bukkit.event.HandlerList; /** * Triggered when a painting is removed */ -@SuppressWarnings("serial") public class PaintingBreakEvent extends PaintingEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); - private boolean cancelled; private final RemoveCause cause; diff --git a/src/main/java/org/bukkit/event/painting/PaintingEvent.java b/src/main/java/org/bukkit/event/painting/PaintingEvent.java index fb972b81..4e5553f6 100644 --- a/src/main/java/org/bukkit/event/painting/PaintingEvent.java +++ b/src/main/java/org/bukkit/event/painting/PaintingEvent.java @@ -6,9 +6,7 @@ import org.bukkit.event.Event; /** * Represents a painting-related event. */ -@SuppressWarnings("serial") public abstract class PaintingEvent extends Event { - protected Painting painting; protected PaintingEvent(final Painting painting) { diff --git a/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java b/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java index 89ef543c..7e442d9a 100644 --- a/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java +++ b/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java @@ -10,12 +10,9 @@ import org.bukkit.event.HandlerList; /** * Triggered when a painting is created in the world */ -@SuppressWarnings("serial") public class PaintingPlaceEvent extends PaintingEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); - private boolean cancelled; - private final Player player; private final Block block; private final BlockFace blockFace; diff --git a/src/main/java/org/bukkit/event/player/PlayerAnimationEvent.java b/src/main/java/org/bukkit/event/player/PlayerAnimationEvent.java index 14e58fa9..cabe77dd 100644 --- a/src/main/java/org/bukkit/event/player/PlayerAnimationEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerAnimationEvent.java @@ -7,10 +7,8 @@ import org.bukkit.event.HandlerList; /** * Represents a player animation event */ -@SuppressWarnings("serial") public class PlayerAnimationEvent extends PlayerEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); - private final PlayerAnimationType animationType; private boolean isCancelled = false; diff --git a/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java b/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java index de201b04..09f1a669 100644 --- a/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java @@ -8,10 +8,8 @@ import org.bukkit.event.HandlerList; /** * This event is fired when the player is almost about to enter the bed. */ -@SuppressWarnings("serial") public class PlayerBedEnterEvent extends PlayerEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); - private boolean cancel = false; private final Block bed; diff --git a/src/main/java/org/bukkit/event/player/PlayerBedLeaveEvent.java b/src/main/java/org/bukkit/event/player/PlayerBedLeaveEvent.java index 9a11c775..628ab0b0 100644 --- a/src/main/java/org/bukkit/event/player/PlayerBedLeaveEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerBedLeaveEvent.java @@ -7,10 +7,8 @@ import org.bukkit.event.HandlerList; /** * This event is fired when the player is leaving a bed. */ -@SuppressWarnings("serial") public class PlayerBedLeaveEvent extends PlayerEvent { private static final HandlerList handlers = new HandlerList(); - private final Block bed; public PlayerBedLeaveEvent(final Player who, final Block bed) { diff --git a/src/main/java/org/bukkit/event/player/PlayerBucketEmptyEvent.java b/src/main/java/org/bukkit/event/player/PlayerBucketEmptyEvent.java index a15ac8c8..8fb121a9 100644 --- a/src/main/java/org/bukkit/event/player/PlayerBucketEmptyEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerBucketEmptyEvent.java @@ -10,7 +10,6 @@ import org.bukkit.inventory.ItemStack; /** * Called when a player empties a bucket */ -@SuppressWarnings("serial") public class PlayerBucketEmptyEvent extends PlayerBucketEvent { private static final HandlerList handlers = new HandlerList(); diff --git a/src/main/java/org/bukkit/event/player/PlayerBucketEvent.java b/src/main/java/org/bukkit/event/player/PlayerBucketEvent.java index bf513053..e1726a2d 100644 --- a/src/main/java/org/bukkit/event/player/PlayerBucketEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerBucketEvent.java @@ -7,9 +7,7 @@ import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.inventory.ItemStack; -@SuppressWarnings("serial") public abstract class PlayerBucketEvent extends PlayerEvent implements Cancellable { - private ItemStack itemStack; private boolean cancelled = false; private final Block blockClicked; diff --git a/src/main/java/org/bukkit/event/player/PlayerBucketFillEvent.java b/src/main/java/org/bukkit/event/player/PlayerBucketFillEvent.java index 8d14af0b..94e042a3 100644 --- a/src/main/java/org/bukkit/event/player/PlayerBucketFillEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerBucketFillEvent.java @@ -10,7 +10,6 @@ import org.bukkit.inventory.ItemStack; /** * Called when a player fills a bucket */ -@SuppressWarnings("serial") public class PlayerBucketFillEvent extends PlayerBucketEvent { private static final HandlerList handlers = new HandlerList(); diff --git a/src/main/java/org/bukkit/event/player/PlayerChangedWorldEvent.java b/src/main/java/org/bukkit/event/player/PlayerChangedWorldEvent.java index 94de3853..321708a6 100644 --- a/src/main/java/org/bukkit/event/player/PlayerChangedWorldEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerChangedWorldEvent.java @@ -4,10 +4,8 @@ import org.bukkit.World; import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; -@SuppressWarnings("serial") public class PlayerChangedWorldEvent extends PlayerEvent { private static final HandlerList handlers = new HandlerList(); - private final World from; public PlayerChangedWorldEvent(final Player player, final World from) { diff --git a/src/main/java/org/bukkit/event/player/PlayerChatEvent.java b/src/main/java/org/bukkit/event/player/PlayerChatEvent.java index 64a169e9..1856c187 100644 --- a/src/main/java/org/bukkit/event/player/PlayerChatEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerChatEvent.java @@ -11,7 +11,6 @@ import org.bukkit.event.HandlerList; /** * Holds information for player chat and commands */ -@SuppressWarnings("serial") public class PlayerChatEvent extends PlayerEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancel = false; diff --git a/src/main/java/org/bukkit/event/player/PlayerCommandPreprocessEvent.java b/src/main/java/org/bukkit/event/player/PlayerCommandPreprocessEvent.java index f5db688e..ffb5d43c 100644 --- a/src/main/java/org/bukkit/event/player/PlayerCommandPreprocessEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerCommandPreprocessEvent.java @@ -7,7 +7,6 @@ import org.bukkit.event.HandlerList; * Called early in the command handling process. This event is only * for very exceptional cases and you should not normally use it. */ -@SuppressWarnings("serial") public class PlayerCommandPreprocessEvent extends PlayerChatEvent { private static final HandlerList handlers = new HandlerList(); diff --git a/src/main/java/org/bukkit/event/player/PlayerDropItemEvent.java b/src/main/java/org/bukkit/event/player/PlayerDropItemEvent.java index a70af387..5b41b652 100644 --- a/src/main/java/org/bukkit/event/player/PlayerDropItemEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerDropItemEvent.java @@ -8,7 +8,6 @@ import org.bukkit.event.HandlerList; /** * Thrown when a player drops an item from their inventory */ -@SuppressWarnings("serial") public class PlayerDropItemEvent extends PlayerEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private final Item drop; diff --git a/src/main/java/org/bukkit/event/player/PlayerEggThrowEvent.java b/src/main/java/org/bukkit/event/player/PlayerEggThrowEvent.java index f443c5af..fc0a77fb 100644 --- a/src/main/java/org/bukkit/event/player/PlayerEggThrowEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerEggThrowEvent.java @@ -8,7 +8,6 @@ import org.bukkit.event.HandlerList; /** * Called when a player throws an egg and it might hatch */ -@SuppressWarnings("serial") public class PlayerEggThrowEvent extends PlayerEvent { private static final HandlerList handlers = new HandlerList(); private final Egg egg; diff --git a/src/main/java/org/bukkit/event/player/PlayerEvent.java b/src/main/java/org/bukkit/event/player/PlayerEvent.java index 0b0f47b6..1301ac29 100644 --- a/src/main/java/org/bukkit/event/player/PlayerEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerEvent.java @@ -6,7 +6,6 @@ import org.bukkit.event.Event; /** * Represents a player related event */ -@SuppressWarnings("serial") public abstract class PlayerEvent extends Event { protected Player player; diff --git a/src/main/java/org/bukkit/event/player/PlayerExpChangeEvent.java b/src/main/java/org/bukkit/event/player/PlayerExpChangeEvent.java index b332f31a..f37491d7 100644 --- a/src/main/java/org/bukkit/event/player/PlayerExpChangeEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerExpChangeEvent.java @@ -6,7 +6,6 @@ import org.bukkit.event.HandlerList; /** * Called when a players experience changes naturally */ -@SuppressWarnings("serial") public class PlayerExpChangeEvent extends PlayerEvent { private static final HandlerList handlers = new HandlerList(); private int exp; diff --git a/src/main/java/org/bukkit/event/player/PlayerFishEvent.java b/src/main/java/org/bukkit/event/player/PlayerFishEvent.java index 9c1defec..cdc5ebf0 100644 --- a/src/main/java/org/bukkit/event/player/PlayerFishEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerFishEvent.java @@ -8,7 +8,6 @@ import org.bukkit.event.HandlerList; /** * Thrown when a player is fishing */ -@SuppressWarnings("serial") public class PlayerFishEvent extends PlayerEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private final Entity entity; diff --git a/src/main/java/org/bukkit/event/player/PlayerGameModeChangeEvent.java b/src/main/java/org/bukkit/event/player/PlayerGameModeChangeEvent.java index 7f95078b..ee0a7022 100644 --- a/src/main/java/org/bukkit/event/player/PlayerGameModeChangeEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerGameModeChangeEvent.java @@ -5,10 +5,8 @@ import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; -@SuppressWarnings("serial") public class PlayerGameModeChangeEvent extends PlayerEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); - private boolean cancelled; private final GameMode newGameMode; diff --git a/src/main/java/org/bukkit/event/player/PlayerInteractEntityEvent.java b/src/main/java/org/bukkit/event/player/PlayerInteractEntityEvent.java index a14afa88..935211df 100644 --- a/src/main/java/org/bukkit/event/player/PlayerInteractEntityEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerInteractEntityEvent.java @@ -8,7 +8,6 @@ import org.bukkit.event.HandlerList; /** * Represents an event that is called when a player right clicks an entity. */ -@SuppressWarnings("serial") public class PlayerInteractEntityEvent extends PlayerEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); protected Entity clickedEntity; diff --git a/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java b/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java index 17a4b7b0..1c1fc0c3 100644 --- a/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java @@ -12,14 +12,12 @@ import org.bukkit.event.block.Action; /** * Called when a player interacts with an object or air. */ -@SuppressWarnings("serial") public class PlayerInteractEvent extends PlayerEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); protected ItemStack item; protected Action action; protected Block blockClicked; protected BlockFace blockFace; - private Result useClickedBlock; private Result useItemInHand; diff --git a/src/main/java/org/bukkit/event/player/PlayerInventoryEvent.java b/src/main/java/org/bukkit/event/player/PlayerInventoryEvent.java index 144a2d59..d71dc0ae 100644 --- a/src/main/java/org/bukkit/event/player/PlayerInventoryEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerInventoryEvent.java @@ -7,7 +7,6 @@ import org.bukkit.inventory.Inventory; /** * Represents a player related inventory event */ -@SuppressWarnings("serial") public class PlayerInventoryEvent extends PlayerEvent { private static final HandlerList handlers = new HandlerList(); protected Inventory inventory; diff --git a/src/main/java/org/bukkit/event/player/PlayerItemHeldEvent.java b/src/main/java/org/bukkit/event/player/PlayerItemHeldEvent.java index 26fac253..afa374bd 100644 --- a/src/main/java/org/bukkit/event/player/PlayerItemHeldEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerItemHeldEvent.java @@ -6,7 +6,6 @@ import org.bukkit.event.HandlerList; /** * Fired when a player changes their currently held item */ -@SuppressWarnings("serial") public class PlayerItemHeldEvent extends PlayerEvent { private static final HandlerList handlers = new HandlerList(); private final int previous; diff --git a/src/main/java/org/bukkit/event/player/PlayerJoinEvent.java b/src/main/java/org/bukkit/event/player/PlayerJoinEvent.java index dd880fd0..e7481f92 100644 --- a/src/main/java/org/bukkit/event/player/PlayerJoinEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerJoinEvent.java @@ -6,7 +6,6 @@ import org.bukkit.event.HandlerList; /** * Called when a player joins a server */ -@SuppressWarnings("serial") public class PlayerJoinEvent extends PlayerEvent { private static final HandlerList handlers = new HandlerList(); private String joinMessage; diff --git a/src/main/java/org/bukkit/event/player/PlayerKickEvent.java b/src/main/java/org/bukkit/event/player/PlayerKickEvent.java index 1907181a..39e81b67 100644 --- a/src/main/java/org/bukkit/event/player/PlayerKickEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerKickEvent.java @@ -7,7 +7,6 @@ import org.bukkit.event.HandlerList; /** * Called when a player gets kicked from the server */ -@SuppressWarnings("serial") public class PlayerKickEvent extends PlayerEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private String leaveMessage; diff --git a/src/main/java/org/bukkit/event/player/PlayerLevelChangeEvent.java b/src/main/java/org/bukkit/event/player/PlayerLevelChangeEvent.java index 1457c28d..730a7762 100644 --- a/src/main/java/org/bukkit/event/player/PlayerLevelChangeEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerLevelChangeEvent.java @@ -6,7 +6,6 @@ import org.bukkit.event.HandlerList; /** * Called when a players level changes */ -@SuppressWarnings("serial") public class PlayerLevelChangeEvent extends PlayerEvent { private static final HandlerList handlers = new HandlerList(); private final int oldLevel; diff --git a/src/main/java/org/bukkit/event/player/PlayerLoginEvent.java b/src/main/java/org/bukkit/event/player/PlayerLoginEvent.java index 5d002601..4b6ee797 100644 --- a/src/main/java/org/bukkit/event/player/PlayerLoginEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerLoginEvent.java @@ -6,7 +6,6 @@ import org.bukkit.event.HandlerList; /** * Stores details for players attempting to log in */ -@SuppressWarnings("serial") public class PlayerLoginEvent extends PlayerEvent { private static final HandlerList handlers = new HandlerList(); private Result result = Result.ALLOWED; diff --git a/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java b/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java index 817b70c0..e65124fb 100644 --- a/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java @@ -8,7 +8,6 @@ import org.bukkit.event.HandlerList; /** * Holds information for player movement events */ -@SuppressWarnings("serial") public class PlayerMoveEvent extends PlayerEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancel = false; diff --git a/src/main/java/org/bukkit/event/player/PlayerPickupItemEvent.java b/src/main/java/org/bukkit/event/player/PlayerPickupItemEvent.java index 13f7793c..cac3234f 100644 --- a/src/main/java/org/bukkit/event/player/PlayerPickupItemEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerPickupItemEvent.java @@ -8,7 +8,6 @@ import org.bukkit.event.HandlerList; /** * Thrown when a player picks an item up from the ground */ -@SuppressWarnings("serial") public class PlayerPickupItemEvent extends PlayerEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private final Item item; diff --git a/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java b/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java index a721e530..432de3ac 100644 --- a/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java @@ -8,13 +8,9 @@ import org.bukkit.event.HandlerList; /** * Called when a player completes the portaling process by standing in a portal */ -@SuppressWarnings("serial") public class PlayerPortalEvent extends PlayerTeleportEvent { private static final HandlerList handlers = new HandlerList(); - protected boolean useTravelAgent = true; - - protected Player player; protected TravelAgent travelAgent; public PlayerPortalEvent(final Player player, final Location from, final Location to, final TravelAgent pta) { diff --git a/src/main/java/org/bukkit/event/player/PlayerPreLoginEvent.java b/src/main/java/org/bukkit/event/player/PlayerPreLoginEvent.java index ac57199f..862d483a 100644 --- a/src/main/java/org/bukkit/event/player/PlayerPreLoginEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerPreLoginEvent.java @@ -7,7 +7,6 @@ import org.bukkit.event.HandlerList; /** * Stores details for players attempting to log in */ -@SuppressWarnings("serial") public class PlayerPreLoginEvent extends Event { private static final HandlerList handlers = new HandlerList(); private Result result; diff --git a/src/main/java/org/bukkit/event/player/PlayerQuitEvent.java b/src/main/java/org/bukkit/event/player/PlayerQuitEvent.java index f29758bd..5c8dc1b9 100644 --- a/src/main/java/org/bukkit/event/player/PlayerQuitEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerQuitEvent.java @@ -6,10 +6,8 @@ import org.bukkit.event.HandlerList; /** * Called when a player leaves a server */ -@SuppressWarnings("serial") public class PlayerQuitEvent extends PlayerEvent { private static final HandlerList handlers = new HandlerList(); - private String quitMessage; public PlayerQuitEvent(final Player who, final String quitMessage) { diff --git a/src/main/java/org/bukkit/event/player/PlayerRespawnEvent.java b/src/main/java/org/bukkit/event/player/PlayerRespawnEvent.java index 54fdd23e..dcfc8783 100644 --- a/src/main/java/org/bukkit/event/player/PlayerRespawnEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerRespawnEvent.java @@ -4,7 +4,6 @@ import org.bukkit.Location; import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; -@SuppressWarnings("serial") public class PlayerRespawnEvent extends PlayerEvent { private static final HandlerList handlers = new HandlerList(); private Location respawnLocation; diff --git a/src/main/java/org/bukkit/event/player/PlayerShearEntityEvent.java b/src/main/java/org/bukkit/event/player/PlayerShearEntityEvent.java index 8d948174..38afb3ce 100644 --- a/src/main/java/org/bukkit/event/player/PlayerShearEntityEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerShearEntityEvent.java @@ -5,7 +5,6 @@ import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; -@SuppressWarnings("serial") /** * Called when a player shears an entity */ diff --git a/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java b/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java index 5c7fb9b0..e7a8d8a1 100644 --- a/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java @@ -7,7 +7,6 @@ import org.bukkit.event.HandlerList; /** * Holds information for player teleport events */ -@SuppressWarnings("serial") public class PlayerTeleportEvent extends PlayerMoveEvent { private static final HandlerList handlers = new HandlerList(); private TeleportCause cause = TeleportCause.UNKNOWN; diff --git a/src/main/java/org/bukkit/event/player/PlayerToggleSneakEvent.java b/src/main/java/org/bukkit/event/player/PlayerToggleSneakEvent.java index 295680f4..667acad2 100644 --- a/src/main/java/org/bukkit/event/player/PlayerToggleSneakEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerToggleSneakEvent.java @@ -7,7 +7,6 @@ import org.bukkit.event.HandlerList; /** * Called when a player toggles their sneaking state */ -@SuppressWarnings("serial") public class PlayerToggleSneakEvent extends PlayerEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private final boolean isSneaking; diff --git a/src/main/java/org/bukkit/event/player/PlayerToggleSprintEvent.java b/src/main/java/org/bukkit/event/player/PlayerToggleSprintEvent.java index 0bbeba36..cf065e11 100644 --- a/src/main/java/org/bukkit/event/player/PlayerToggleSprintEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerToggleSprintEvent.java @@ -7,7 +7,6 @@ import org.bukkit.event.HandlerList; /** * Called when a player toggles their sprinting state */ -@SuppressWarnings("serial") public class PlayerToggleSprintEvent extends PlayerEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private final boolean isSprinting; diff --git a/src/main/java/org/bukkit/event/player/PlayerVelocityEvent.java b/src/main/java/org/bukkit/event/player/PlayerVelocityEvent.java index e2a0590f..14cd0e95 100644 --- a/src/main/java/org/bukkit/event/player/PlayerVelocityEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerVelocityEvent.java @@ -5,13 +5,8 @@ import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList;
import org.bukkit.util.Vector;
-@SuppressWarnings("serial")
public class PlayerVelocityEvent extends PlayerEvent implements Cancellable {
private static final HandlerList handlers = new HandlerList();
-
- /**
- * Holds information for player velocity events
- */
private boolean cancel = false;
private Vector velocity;
diff --git a/src/main/java/org/bukkit/event/server/MapInitializeEvent.java b/src/main/java/org/bukkit/event/server/MapInitializeEvent.java index e3836e10..8834489b 100644 --- a/src/main/java/org/bukkit/event/server/MapInitializeEvent.java +++ b/src/main/java/org/bukkit/event/server/MapInitializeEvent.java @@ -6,7 +6,6 @@ import org.bukkit.map.MapView; /** * Called when a map is initialized. */ -@SuppressWarnings("serial") public class MapInitializeEvent extends ServerEvent { private static final HandlerList handlers = new HandlerList(); private final MapView mapView; diff --git a/src/main/java/org/bukkit/event/server/PluginDisableEvent.java b/src/main/java/org/bukkit/event/server/PluginDisableEvent.java index 74482e4d..932c4fda 100644 --- a/src/main/java/org/bukkit/event/server/PluginDisableEvent.java +++ b/src/main/java/org/bukkit/event/server/PluginDisableEvent.java @@ -6,7 +6,6 @@ import org.bukkit.plugin.Plugin; /** * Called when a plugin is disabled. */ -@SuppressWarnings("serial") public class PluginDisableEvent extends PluginEvent { private static final HandlerList handlers = new HandlerList(); diff --git a/src/main/java/org/bukkit/event/server/PluginEnableEvent.java b/src/main/java/org/bukkit/event/server/PluginEnableEvent.java index 429e8c94..865316de 100644 --- a/src/main/java/org/bukkit/event/server/PluginEnableEvent.java +++ b/src/main/java/org/bukkit/event/server/PluginEnableEvent.java @@ -6,7 +6,6 @@ import org.bukkit.plugin.Plugin; /** * Called when a plugin is enabled. */ -@SuppressWarnings("serial") public class PluginEnableEvent extends PluginEvent { private static final HandlerList handlers = new HandlerList(); diff --git a/src/main/java/org/bukkit/event/server/PluginEvent.java b/src/main/java/org/bukkit/event/server/PluginEvent.java index ba69393b..1ad656d6 100644 --- a/src/main/java/org/bukkit/event/server/PluginEvent.java +++ b/src/main/java/org/bukkit/event/server/PluginEvent.java @@ -5,7 +5,6 @@ import org.bukkit.plugin.Plugin; /** * Used for plugin enable and disable events */ -@SuppressWarnings("serial") public abstract class PluginEvent extends ServerEvent { private final Plugin plugin; diff --git a/src/main/java/org/bukkit/event/server/RemoteServerCommandEvent.java b/src/main/java/org/bukkit/event/server/RemoteServerCommandEvent.java index 1d0a1008..d987a455 100644 --- a/src/main/java/org/bukkit/event/server/RemoteServerCommandEvent.java +++ b/src/main/java/org/bukkit/event/server/RemoteServerCommandEvent.java @@ -6,7 +6,6 @@ import org.bukkit.event.HandlerList; /** * Remote Server Command events */ -@SuppressWarnings("serial") public class RemoteServerCommandEvent extends ServerCommandEvent { private static final HandlerList handlers = new HandlerList(); diff --git a/src/main/java/org/bukkit/event/server/ServerCommandEvent.java b/src/main/java/org/bukkit/event/server/ServerCommandEvent.java index 7fbac654..3e4d816d 100644 --- a/src/main/java/org/bukkit/event/server/ServerCommandEvent.java +++ b/src/main/java/org/bukkit/event/server/ServerCommandEvent.java @@ -6,7 +6,6 @@ import org.bukkit.event.HandlerList; /** * Server Command events */ -@SuppressWarnings("serial") public class ServerCommandEvent extends ServerEvent { private static final HandlerList handlers = new HandlerList(); private String command; diff --git a/src/main/java/org/bukkit/event/server/ServerEvent.java b/src/main/java/org/bukkit/event/server/ServerEvent.java index b4fcbb3d..eb00d6af 100644 --- a/src/main/java/org/bukkit/event/server/ServerEvent.java +++ b/src/main/java/org/bukkit/event/server/ServerEvent.java @@ -5,6 +5,5 @@ import org.bukkit.event.Event; /** * Miscellaneous server events */ -@SuppressWarnings("serial") public abstract class ServerEvent extends Event { } diff --git a/src/main/java/org/bukkit/event/server/ServerListPingEvent.java b/src/main/java/org/bukkit/event/server/ServerListPingEvent.java index 1945bb7e..ddbdaeee 100644 --- a/src/main/java/org/bukkit/event/server/ServerListPingEvent.java +++ b/src/main/java/org/bukkit/event/server/ServerListPingEvent.java @@ -7,10 +7,8 @@ import org.bukkit.event.HandlerList; /** * Called when a server list ping is coming in. */ -@SuppressWarnings("serial") public class ServerListPingEvent extends ServerEvent { private static final HandlerList handlers = new HandlerList(); - private final InetAddress address; private String motd; private final int numPlayers; diff --git a/src/main/java/org/bukkit/event/vehicle/VehicleBlockCollisionEvent.java b/src/main/java/org/bukkit/event/vehicle/VehicleBlockCollisionEvent.java index de351f77..b643b575 100644 --- a/src/main/java/org/bukkit/event/vehicle/VehicleBlockCollisionEvent.java +++ b/src/main/java/org/bukkit/event/vehicle/VehicleBlockCollisionEvent.java @@ -7,7 +7,6 @@ import org.bukkit.event.HandlerList; /** * Raised when a vehicle collides with a block. */ -@SuppressWarnings("serial") public class VehicleBlockCollisionEvent extends VehicleCollisionEvent { private static final HandlerList handlers = new HandlerList(); private final Block block; diff --git a/src/main/java/org/bukkit/event/vehicle/VehicleCollisionEvent.java b/src/main/java/org/bukkit/event/vehicle/VehicleCollisionEvent.java index 67b51d05..9dd05792 100644 --- a/src/main/java/org/bukkit/event/vehicle/VehicleCollisionEvent.java +++ b/src/main/java/org/bukkit/event/vehicle/VehicleCollisionEvent.java @@ -5,7 +5,6 @@ import org.bukkit.entity.Vehicle; /** * Raised when a vehicle collides. */ -@SuppressWarnings("serial") public abstract class VehicleCollisionEvent extends VehicleEvent { public VehicleCollisionEvent(final Vehicle vehicle) { super(vehicle); diff --git a/src/main/java/org/bukkit/event/vehicle/VehicleCreateEvent.java b/src/main/java/org/bukkit/event/vehicle/VehicleCreateEvent.java index 983d955a..22eda727 100644 --- a/src/main/java/org/bukkit/event/vehicle/VehicleCreateEvent.java +++ b/src/main/java/org/bukkit/event/vehicle/VehicleCreateEvent.java @@ -6,9 +6,9 @@ import org.bukkit.event.HandlerList; /** * Raised when a vehicle is created. */ -@SuppressWarnings("serial") public class VehicleCreateEvent extends VehicleEvent { private static final HandlerList handlers = new HandlerList(); + public VehicleCreateEvent(final Vehicle vehicle) { super(vehicle); } diff --git a/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java b/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java index a20b97b2..40ffb111 100644 --- a/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java +++ b/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java @@ -8,7 +8,6 @@ import org.bukkit.event.HandlerList; /** * Raised when a vehicle receives damage. */ -@SuppressWarnings("serial") public class VehicleDamageEvent extends VehicleEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private final Entity attacker; diff --git a/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java b/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java index 8e841958..7a481d3a 100644 --- a/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java +++ b/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java @@ -10,7 +10,6 @@ import org.bukkit.event.HandlerList; * or the environment. This is not raised if the boat is simply 'removed' * due to other means. */ -@SuppressWarnings("serial") public class VehicleDestroyEvent extends VehicleEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private final Entity attacker; diff --git a/src/main/java/org/bukkit/event/vehicle/VehicleEnterEvent.java b/src/main/java/org/bukkit/event/vehicle/VehicleEnterEvent.java index eaf211fd..85c9b210 100644 --- a/src/main/java/org/bukkit/event/vehicle/VehicleEnterEvent.java +++ b/src/main/java/org/bukkit/event/vehicle/VehicleEnterEvent.java @@ -8,7 +8,6 @@ import org.bukkit.event.HandlerList; /** * Raised when an entity enters a vehicle. */ -@SuppressWarnings("serial") public class VehicleEnterEvent extends VehicleEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancelled; diff --git a/src/main/java/org/bukkit/event/vehicle/VehicleEntityCollisionEvent.java b/src/main/java/org/bukkit/event/vehicle/VehicleEntityCollisionEvent.java index 9879f933..4d4d0e25 100644 --- a/src/main/java/org/bukkit/event/vehicle/VehicleEntityCollisionEvent.java +++ b/src/main/java/org/bukkit/event/vehicle/VehicleEntityCollisionEvent.java @@ -8,7 +8,6 @@ import org.bukkit.event.HandlerList; /** * Raised when a vehicle collides with an entity. */ -@SuppressWarnings("serial") public class VehicleEntityCollisionEvent extends VehicleCollisionEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private final Entity entity; diff --git a/src/main/java/org/bukkit/event/vehicle/VehicleEvent.java b/src/main/java/org/bukkit/event/vehicle/VehicleEvent.java index 8d69518e..b8255c01 100644 --- a/src/main/java/org/bukkit/event/vehicle/VehicleEvent.java +++ b/src/main/java/org/bukkit/event/vehicle/VehicleEvent.java @@ -6,7 +6,6 @@ import org.bukkit.event.Event; /** * Represents a vehicle-related event. */ -@SuppressWarnings("serial") public abstract class VehicleEvent extends Event { protected Vehicle vehicle; diff --git a/src/main/java/org/bukkit/event/vehicle/VehicleExitEvent.java b/src/main/java/org/bukkit/event/vehicle/VehicleExitEvent.java index cfb7c2a6..364451b5 100644 --- a/src/main/java/org/bukkit/event/vehicle/VehicleExitEvent.java +++ b/src/main/java/org/bukkit/event/vehicle/VehicleExitEvent.java @@ -8,7 +8,6 @@ import org.bukkit.event.HandlerList; /** * Raised when a living entity exits a vehicle. */ -@SuppressWarnings("serial") public class VehicleExitEvent extends VehicleEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancelled; diff --git a/src/main/java/org/bukkit/event/vehicle/VehicleMoveEvent.java b/src/main/java/org/bukkit/event/vehicle/VehicleMoveEvent.java index d98ec396..9a13e296 100644 --- a/src/main/java/org/bukkit/event/vehicle/VehicleMoveEvent.java +++ b/src/main/java/org/bukkit/event/vehicle/VehicleMoveEvent.java @@ -7,7 +7,6 @@ import org.bukkit.event.HandlerList; /** * Raised when a vehicle moves. */ -@SuppressWarnings("serial") public class VehicleMoveEvent extends VehicleEvent { private static final HandlerList handlers = new HandlerList(); private final Location from; diff --git a/src/main/java/org/bukkit/event/vehicle/VehicleUpdateEvent.java b/src/main/java/org/bukkit/event/vehicle/VehicleUpdateEvent.java index 44abf9ea..d84faf45 100644 --- a/src/main/java/org/bukkit/event/vehicle/VehicleUpdateEvent.java +++ b/src/main/java/org/bukkit/event/vehicle/VehicleUpdateEvent.java @@ -3,7 +3,6 @@ package org.bukkit.event.vehicle; import org.bukkit.entity.Vehicle; import org.bukkit.event.HandlerList; -@SuppressWarnings("serial") public class VehicleUpdateEvent extends VehicleEvent { private static final HandlerList handlers = new HandlerList(); diff --git a/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java b/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java index 1763f819..66fd7636 100644 --- a/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java +++ b/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java @@ -8,10 +8,8 @@ import org.bukkit.event.HandlerList; /** * Stores data for lightning striking */ -@SuppressWarnings("serial") public class LightningStrikeEvent extends WeatherEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); - private boolean canceled; private final LightningStrike bolt; diff --git a/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java b/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java index 0cd4887c..5e3716e9 100644 --- a/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java +++ b/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java @@ -7,10 +7,8 @@ import org.bukkit.event.HandlerList; /** * Stores data for thunder state changing in a world */ -@SuppressWarnings("serial") public class ThunderChangeEvent extends WeatherEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); - private boolean canceled; private final boolean to; diff --git a/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java b/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java index 0c6c5f2e..5d1234e5 100644 --- a/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java +++ b/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java @@ -7,10 +7,8 @@ import org.bukkit.event.HandlerList; /** * Stores data for weather changing in a world */ -@SuppressWarnings("serial") public class WeatherChangeEvent extends WeatherEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); - private boolean canceled; private final boolean to; diff --git a/src/main/java/org/bukkit/event/weather/WeatherEvent.java b/src/main/java/org/bukkit/event/weather/WeatherEvent.java index 1deb3e9a..0cae9bcb 100644 --- a/src/main/java/org/bukkit/event/weather/WeatherEvent.java +++ b/src/main/java/org/bukkit/event/weather/WeatherEvent.java @@ -6,7 +6,6 @@ import org.bukkit.event.Event; /** * Represents a Weather-related event */ -@SuppressWarnings("serial") public abstract class WeatherEvent extends Event { protected World world; diff --git a/src/main/java/org/bukkit/event/world/ChunkEvent.java b/src/main/java/org/bukkit/event/world/ChunkEvent.java index 0a32360f..4710d40f 100644 --- a/src/main/java/org/bukkit/event/world/ChunkEvent.java +++ b/src/main/java/org/bukkit/event/world/ChunkEvent.java @@ -5,7 +5,6 @@ import org.bukkit.Chunk; /** * Represents a Chunk related event */ -@SuppressWarnings("serial") public abstract class ChunkEvent extends WorldEvent { protected Chunk chunk; diff --git a/src/main/java/org/bukkit/event/world/ChunkLoadEvent.java b/src/main/java/org/bukkit/event/world/ChunkLoadEvent.java index 0e15ec41..906fa43d 100644 --- a/src/main/java/org/bukkit/event/world/ChunkLoadEvent.java +++ b/src/main/java/org/bukkit/event/world/ChunkLoadEvent.java @@ -6,7 +6,6 @@ import org.bukkit.event.HandlerList; /** * Called when a chunk is loaded */ -@SuppressWarnings("serial") public class ChunkLoadEvent extends ChunkEvent { private static final HandlerList handlers = new HandlerList(); private final boolean newChunk; diff --git a/src/main/java/org/bukkit/event/world/ChunkPopulateEvent.java b/src/main/java/org/bukkit/event/world/ChunkPopulateEvent.java index 257cbeea..0c23cbf0 100644 --- a/src/main/java/org/bukkit/event/world/ChunkPopulateEvent.java +++ b/src/main/java/org/bukkit/event/world/ChunkPopulateEvent.java @@ -9,9 +9,9 @@ import org.bukkit.generator.BlockPopulator; * <p /> * If your intent is to populate the chunk using this event, please see {@link BlockPopulator} */ -@SuppressWarnings("serial") public class ChunkPopulateEvent extends ChunkEvent { private static final HandlerList handlers = new HandlerList(); + public ChunkPopulateEvent(final Chunk chunk) { super(chunk); } diff --git a/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java b/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java index d508f0eb..f59d0914 100644 --- a/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java +++ b/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java @@ -7,7 +7,6 @@ import org.bukkit.event.HandlerList; /** * Called when a chunk is unloaded */ -@SuppressWarnings("serial") public class ChunkUnloadEvent extends ChunkEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancel = false; diff --git a/src/main/java/org/bukkit/event/world/PortalCreateEvent.java b/src/main/java/org/bukkit/event/world/PortalCreateEvent.java index d653015a..a2ef5ab0 100644 --- a/src/main/java/org/bukkit/event/world/PortalCreateEvent.java +++ b/src/main/java/org/bukkit/event/world/PortalCreateEvent.java @@ -11,7 +11,6 @@ import java.util.Collection; /** * Called when the world attempts to create a matching end to a portal */ -@SuppressWarnings("serial") public class PortalCreateEvent extends WorldEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancel = false; diff --git a/src/main/java/org/bukkit/event/world/SpawnChangeEvent.java b/src/main/java/org/bukkit/event/world/SpawnChangeEvent.java index 965dd033..d3cc1fcc 100644 --- a/src/main/java/org/bukkit/event/world/SpawnChangeEvent.java +++ b/src/main/java/org/bukkit/event/world/SpawnChangeEvent.java @@ -8,7 +8,6 @@ import org.bukkit.event.HandlerList; * An event that is called when a world's spawn changes. The * world's previous spawn location is included. */ -@SuppressWarnings("serial") public class SpawnChangeEvent extends WorldEvent { private static final HandlerList handlers = new HandlerList(); private final Location previousLocation; diff --git a/src/main/java/org/bukkit/event/world/StructureGrowEvent.java b/src/main/java/org/bukkit/event/world/StructureGrowEvent.java index 9f8fcf45..15f4d419 100644 --- a/src/main/java/org/bukkit/event/world/StructureGrowEvent.java +++ b/src/main/java/org/bukkit/event/world/StructureGrowEvent.java @@ -13,7 +13,6 @@ import org.bukkit.event.HandlerList; */ public class StructureGrowEvent extends WorldEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); - private static final long serialVersionUID = 1L; private boolean cancelled = false; private final Location location; private final TreeType species; diff --git a/src/main/java/org/bukkit/event/world/WorldEvent.java b/src/main/java/org/bukkit/event/world/WorldEvent.java index cb88f5b3..bd89b81d 100644 --- a/src/main/java/org/bukkit/event/world/WorldEvent.java +++ b/src/main/java/org/bukkit/event/world/WorldEvent.java @@ -6,7 +6,6 @@ import org.bukkit.event.Event; /** * Represents events within a world */ -@SuppressWarnings("serial") public abstract class WorldEvent extends Event { private final World world; diff --git a/src/main/java/org/bukkit/event/world/WorldInitEvent.java b/src/main/java/org/bukkit/event/world/WorldInitEvent.java index 0a043b2d..6bf13e06 100644 --- a/src/main/java/org/bukkit/event/world/WorldInitEvent.java +++ b/src/main/java/org/bukkit/event/world/WorldInitEvent.java @@ -6,9 +6,9 @@ import org.bukkit.event.HandlerList; /** * Called when a World is initializing */ -@SuppressWarnings("serial") public class WorldInitEvent extends WorldEvent { private static final HandlerList handlers = new HandlerList(); + public WorldInitEvent(final World world) { super(world); } diff --git a/src/main/java/org/bukkit/event/world/WorldLoadEvent.java b/src/main/java/org/bukkit/event/world/WorldLoadEvent.java index ab44bde7..c5545aa1 100644 --- a/src/main/java/org/bukkit/event/world/WorldLoadEvent.java +++ b/src/main/java/org/bukkit/event/world/WorldLoadEvent.java @@ -6,7 +6,6 @@ import org.bukkit.event.HandlerList; /** * Called when a World is loaded */ -@SuppressWarnings("serial") public class WorldLoadEvent extends WorldEvent { private static final HandlerList handlers = new HandlerList(); diff --git a/src/main/java/org/bukkit/event/world/WorldSaveEvent.java b/src/main/java/org/bukkit/event/world/WorldSaveEvent.java index af6ff5d6..ab4e5b59 100644 --- a/src/main/java/org/bukkit/event/world/WorldSaveEvent.java +++ b/src/main/java/org/bukkit/event/world/WorldSaveEvent.java @@ -3,7 +3,6 @@ package org.bukkit.event.world; import org.bukkit.World; import org.bukkit.event.HandlerList; -@SuppressWarnings("serial") public class WorldSaveEvent extends WorldEvent { private static final HandlerList handlers = new HandlerList(); diff --git a/src/main/java/org/bukkit/event/world/WorldUnloadEvent.java b/src/main/java/org/bukkit/event/world/WorldUnloadEvent.java index 17ad2f8c..110544b7 100644 --- a/src/main/java/org/bukkit/event/world/WorldUnloadEvent.java +++ b/src/main/java/org/bukkit/event/world/WorldUnloadEvent.java @@ -7,7 +7,6 @@ import org.bukkit.event.HandlerList; /** * Called when a World is unloaded */ -@SuppressWarnings("serial") public class WorldUnloadEvent extends WorldEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean isCancelled; |