From e4de1795db1437e0fefd8e6415c095ac6e085798 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 19 Feb 2012 01:25:46 -0600 Subject: [PATCH] [Bleeding] Event no longer implements Serializable. By: Feildmaster --- paper-api/src/main/java/org/bukkit/event/Event.java | 5 +---- .../main/java/org/bukkit/event/block/BlockBreakEvent.java | 1 - .../src/main/java/org/bukkit/event/block/BlockBurnEvent.java | 1 - .../main/java/org/bukkit/event/block/BlockCanBuildEvent.java | 1 - .../main/java/org/bukkit/event/block/BlockDamageEvent.java | 1 - .../main/java/org/bukkit/event/block/BlockDispenseEvent.java | 2 -- .../src/main/java/org/bukkit/event/block/BlockEvent.java | 1 - .../src/main/java/org/bukkit/event/block/BlockFadeEvent.java | 1 - .../src/main/java/org/bukkit/event/block/BlockFormEvent.java | 1 - .../main/java/org/bukkit/event/block/BlockFromToEvent.java | 1 - .../main/java/org/bukkit/event/block/BlockIgniteEvent.java | 1 - .../main/java/org/bukkit/event/block/BlockPhysicsEvent.java | 1 - .../main/java/org/bukkit/event/block/BlockPistonEvent.java | 1 - .../java/org/bukkit/event/block/BlockPistonExtendEvent.java | 1 - .../java/org/bukkit/event/block/BlockPistonRetractEvent.java | 1 - .../main/java/org/bukkit/event/block/BlockPlaceEvent.java | 1 - .../main/java/org/bukkit/event/block/BlockRedstoneEvent.java | 1 - .../main/java/org/bukkit/event/block/BlockSpreadEvent.java | 1 - .../java/org/bukkit/event/block/EntityBlockFormEvent.java | 1 - .../main/java/org/bukkit/event/block/LeavesDecayEvent.java | 1 - .../main/java/org/bukkit/event/block/SignChangeEvent.java | 1 - .../java/org/bukkit/event/enchantment/EnchantItemEvent.java | 1 - .../bukkit/event/enchantment/PrepareItemEnchantEvent.java | 1 - .../java/org/bukkit/event/entity/CreatureSpawnEvent.java | 2 -- .../main/java/org/bukkit/event/entity/CreeperPowerEvent.java | 2 -- .../java/org/bukkit/event/entity/EntityChangeBlockEvent.java | 1 - .../org/bukkit/event/entity/EntityCombustByBlockEvent.java | 2 -- .../org/bukkit/event/entity/EntityCombustByEntityEvent.java | 2 -- .../java/org/bukkit/event/entity/EntityCombustEvent.java | 1 - .../org/bukkit/event/entity/EntityCreatePortalEvent.java | 1 - .../org/bukkit/event/entity/EntityDamageByBlockEvent.java | 2 -- .../org/bukkit/event/entity/EntityDamageByEntityEvent.java | 2 -- .../main/java/org/bukkit/event/entity/EntityDamageEvent.java | 2 -- .../main/java/org/bukkit/event/entity/EntityDeathEvent.java | 1 - .../src/main/java/org/bukkit/event/entity/EntityEvent.java | 1 - .../java/org/bukkit/event/entity/EntityExplodeEvent.java | 1 - .../java/org/bukkit/event/entity/EntityInteractEvent.java | 2 -- .../java/org/bukkit/event/entity/EntityPortalEnterEvent.java | 2 -- .../org/bukkit/event/entity/EntityRegainHealthEvent.java | 2 -- .../java/org/bukkit/event/entity/EntityShootBowEvent.java | 2 -- .../main/java/org/bukkit/event/entity/EntityTameEvent.java | 1 - .../main/java/org/bukkit/event/entity/EntityTargetEvent.java | 1 - .../java/org/bukkit/event/entity/EntityTeleportEvent.java | 2 -- .../java/org/bukkit/event/entity/ExplosionPrimeEvent.java | 1 - .../java/org/bukkit/event/entity/FoodLevelChangeEvent.java | 1 - .../main/java/org/bukkit/event/entity/ItemDespawnEvent.java | 1 - .../main/java/org/bukkit/event/entity/ItemSpawnEvent.java | 2 -- .../src/main/java/org/bukkit/event/entity/PigZapEvent.java | 2 -- .../main/java/org/bukkit/event/entity/PlayerDeathEvent.java | 1 - .../main/java/org/bukkit/event/entity/PotionSplashEvent.java | 1 - .../java/org/bukkit/event/entity/ProjectileHitEvent.java | 1 - .../main/java/org/bukkit/event/entity/SheepDyeWoolEvent.java | 1 - .../java/org/bukkit/event/entity/SheepRegrowWoolEvent.java | 1 - .../main/java/org/bukkit/event/entity/SlimeSplitEvent.java | 1 - .../java/org/bukkit/event/inventory/FurnaceBurnEvent.java | 1 - .../java/org/bukkit/event/inventory/FurnaceSmeltEvent.java | 1 - .../bukkit/event/painting/PaintingBreakByEntityEvent.java | 1 - .../java/org/bukkit/event/painting/PaintingBreakEvent.java | 2 -- .../main/java/org/bukkit/event/painting/PaintingEvent.java | 2 -- .../java/org/bukkit/event/painting/PaintingPlaceEvent.java | 3 --- .../java/org/bukkit/event/player/PlayerAnimationEvent.java | 2 -- .../java/org/bukkit/event/player/PlayerBedEnterEvent.java | 2 -- .../java/org/bukkit/event/player/PlayerBedLeaveEvent.java | 2 -- .../java/org/bukkit/event/player/PlayerBucketEmptyEvent.java | 1 - .../main/java/org/bukkit/event/player/PlayerBucketEvent.java | 2 -- .../java/org/bukkit/event/player/PlayerBucketFillEvent.java | 1 - .../org/bukkit/event/player/PlayerChangedWorldEvent.java | 2 -- .../main/java/org/bukkit/event/player/PlayerChatEvent.java | 1 - .../bukkit/event/player/PlayerCommandPreprocessEvent.java | 1 - .../java/org/bukkit/event/player/PlayerDropItemEvent.java | 1 - .../java/org/bukkit/event/player/PlayerEggThrowEvent.java | 1 - .../src/main/java/org/bukkit/event/player/PlayerEvent.java | 1 - .../java/org/bukkit/event/player/PlayerExpChangeEvent.java | 1 - .../main/java/org/bukkit/event/player/PlayerFishEvent.java | 1 - .../org/bukkit/event/player/PlayerGameModeChangeEvent.java | 2 -- .../org/bukkit/event/player/PlayerInteractEntityEvent.java | 1 - .../java/org/bukkit/event/player/PlayerInteractEvent.java | 2 -- .../java/org/bukkit/event/player/PlayerInventoryEvent.java | 1 - .../java/org/bukkit/event/player/PlayerItemHeldEvent.java | 1 - .../main/java/org/bukkit/event/player/PlayerJoinEvent.java | 1 - .../main/java/org/bukkit/event/player/PlayerKickEvent.java | 1 - .../java/org/bukkit/event/player/PlayerLevelChangeEvent.java | 1 - .../main/java/org/bukkit/event/player/PlayerLoginEvent.java | 1 - .../main/java/org/bukkit/event/player/PlayerMoveEvent.java | 1 - .../java/org/bukkit/event/player/PlayerPickupItemEvent.java | 1 - .../main/java/org/bukkit/event/player/PlayerPortalEvent.java | 4 ---- .../java/org/bukkit/event/player/PlayerPreLoginEvent.java | 1 - .../main/java/org/bukkit/event/player/PlayerQuitEvent.java | 2 -- .../java/org/bukkit/event/player/PlayerRespawnEvent.java | 1 - .../java/org/bukkit/event/player/PlayerShearEntityEvent.java | 1 - .../java/org/bukkit/event/player/PlayerTeleportEvent.java | 1 - .../java/org/bukkit/event/player/PlayerToggleSneakEvent.java | 1 - .../org/bukkit/event/player/PlayerToggleSprintEvent.java | 1 - .../java/org/bukkit/event/player/PlayerVelocityEvent.java | 5 ----- .../java/org/bukkit/event/server/MapInitializeEvent.java | 1 - .../java/org/bukkit/event/server/PluginDisableEvent.java | 1 - .../main/java/org/bukkit/event/server/PluginEnableEvent.java | 1 - .../src/main/java/org/bukkit/event/server/PluginEvent.java | 1 - .../org/bukkit/event/server/RemoteServerCommandEvent.java | 1 - .../java/org/bukkit/event/server/ServerCommandEvent.java | 1 - .../src/main/java/org/bukkit/event/server/ServerEvent.java | 1 - .../java/org/bukkit/event/server/ServerListPingEvent.java | 2 -- .../org/bukkit/event/vehicle/VehicleBlockCollisionEvent.java | 1 - .../java/org/bukkit/event/vehicle/VehicleCollisionEvent.java | 1 - .../java/org/bukkit/event/vehicle/VehicleCreateEvent.java | 2 +- .../java/org/bukkit/event/vehicle/VehicleDamageEvent.java | 1 - .../java/org/bukkit/event/vehicle/VehicleDestroyEvent.java | 1 - .../java/org/bukkit/event/vehicle/VehicleEnterEvent.java | 1 - .../bukkit/event/vehicle/VehicleEntityCollisionEvent.java | 1 - .../src/main/java/org/bukkit/event/vehicle/VehicleEvent.java | 1 - .../main/java/org/bukkit/event/vehicle/VehicleExitEvent.java | 1 - .../main/java/org/bukkit/event/vehicle/VehicleMoveEvent.java | 1 - .../java/org/bukkit/event/vehicle/VehicleUpdateEvent.java | 1 - .../java/org/bukkit/event/weather/LightningStrikeEvent.java | 2 -- .../java/org/bukkit/event/weather/ThunderChangeEvent.java | 2 -- .../java/org/bukkit/event/weather/WeatherChangeEvent.java | 2 -- .../src/main/java/org/bukkit/event/weather/WeatherEvent.java | 1 - .../src/main/java/org/bukkit/event/world/ChunkEvent.java | 1 - .../src/main/java/org/bukkit/event/world/ChunkLoadEvent.java | 1 - .../main/java/org/bukkit/event/world/ChunkPopulateEvent.java | 2 +- .../main/java/org/bukkit/event/world/ChunkUnloadEvent.java | 1 - .../main/java/org/bukkit/event/world/PortalCreateEvent.java | 1 - .../main/java/org/bukkit/event/world/SpawnChangeEvent.java | 1 - .../main/java/org/bukkit/event/world/StructureGrowEvent.java | 1 - .../src/main/java/org/bukkit/event/world/WorldEvent.java | 1 - .../src/main/java/org/bukkit/event/world/WorldInitEvent.java | 2 +- .../src/main/java/org/bukkit/event/world/WorldLoadEvent.java | 1 - .../src/main/java/org/bukkit/event/world/WorldSaveEvent.java | 1 - .../main/java/org/bukkit/event/world/WorldUnloadEvent.java | 1 - 129 files changed, 4 insertions(+), 170 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/event/Event.java b/paper-api/src/main/java/org/bukkit/event/Event.java index e2fa3023c2..f573a374bd 100644 --- a/paper-api/src/main/java/org/bukkit/event/Event.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/block/BlockBreakEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockBreakEvent.java index b8ed195355..606957f406 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockBreakEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockBreakEvent.java @@ -14,7 +14,6 @@ import org.bukkit.event.HandlerList; *

* 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/paper-api/src/main/java/org/bukkit/event/block/BlockBurnEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockBurnEvent.java index 8cb9169af8..0783bb4d5a 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockBurnEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockBurnEvent.java @@ -9,7 +9,6 @@ import org.bukkit.event.HandlerList; *

* 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/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java index 16f09a0186..cbaa2e82b3 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java @@ -13,7 +13,6 @@ import org.bukkit.event.HandlerList; *

  • If you want to figure out what is being placed, use {@link #getMaterial()} or {@link #getMaterialId()} instead.
  • * */ -@SuppressWarnings("serial") public class BlockCanBuildEvent extends BlockEvent { private static final HandlerList handlers = new HandlerList(); protected boolean buildable; diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockDamageEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockDamageEvent.java index f2a076f2c4..c2b271ed5a 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockDamageEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockDamageEvent.java @@ -11,7 +11,6 @@ import org.bukkit.inventory.ItemStack; *

    * 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/paper-api/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java index 83e87f5e2a..d29a045ee4 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockDispenseEvent.java @@ -11,10 +11,8 @@ import org.bukkit.util.Vector; *

    * 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/paper-api/src/main/java/org/bukkit/event/block/BlockEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockEvent.java index 85defac29a..240520514c 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/block/BlockFadeEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockFadeEvent.java index e5fa5ad01a..b4b094838e 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockFadeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockFadeEvent.java @@ -16,7 +16,6 @@ import org.bukkit.event.HandlerList; *

    * 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/paper-api/src/main/java/org/bukkit/event/block/BlockFormEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockFormEvent.java index a7c305ec49..7e65e50246 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockFormEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockFormEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/block/BlockFromToEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockFromToEvent.java index ca9b964963..9783235337 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockFromToEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockFromToEvent.java @@ -10,7 +10,6 @@ import org.bukkit.event.HandlerList; *

    * 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/paper-api/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java index 45c4dad90c..3724aad7d6 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockIgniteEvent.java @@ -10,7 +10,6 @@ import org.bukkit.event.HandlerList; *

    * 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/paper-api/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java index 53058bfc7c..6f8198dfac 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/block/BlockPistonEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockPistonEvent.java index 816ba59618..2f489ba47f 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockPistonEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/block/BlockPistonExtendEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockPistonExtendEvent.java index fdbb76c982..18b40b3c9d 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockPistonExtendEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/block/BlockPistonRetractEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockPistonRetractEvent.java index 7ce03ba9c6..9737b5590e 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockPistonRetractEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java index a581c897b7..46c85022a7 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockPlaceEvent.java @@ -12,7 +12,6 @@ import org.bukkit.inventory.ItemStack; *

    * 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/paper-api/src/main/java/org/bukkit/event/block/BlockRedstoneEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockRedstoneEvent.java index ab16c84367..625ec9024f 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockRedstoneEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/block/BlockSpreadEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockSpreadEvent.java index d8b6315e54..f244e410c7 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockSpreadEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/block/EntityBlockFormEvent.java b/paper-api/src/main/java/org/bukkit/event/block/EntityBlockFormEvent.java index 46473fe08a..749e88712a 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/EntityBlockFormEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/EntityBlockFormEvent.java @@ -12,7 +12,6 @@ import org.bukkit.entity.Entity; *

  • Snow formed by a {@link org.bukkit.entity.Snowman}.
  • * */ -@SuppressWarnings("serial") public class EntityBlockFormEvent extends BlockFormEvent { private final Entity entity; diff --git a/paper-api/src/main/java/org/bukkit/event/block/LeavesDecayEvent.java b/paper-api/src/main/java/org/bukkit/event/block/LeavesDecayEvent.java index 6958278826..f0bd857b7d 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/LeavesDecayEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/LeavesDecayEvent.java @@ -9,7 +9,6 @@ import org.bukkit.event.HandlerList; *

    * 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/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java index 06709f3514..cc1dde2194 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java @@ -10,7 +10,6 @@ import org.bukkit.event.HandlerList; *

    * 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/paper-api/src/main/java/org/bukkit/event/enchantment/EnchantItemEvent.java b/paper-api/src/main/java/org/bukkit/event/enchantment/EnchantItemEvent.java index 089303690d..172e9e1b49 100644 --- a/paper-api/src/main/java/org/bukkit/event/enchantment/EnchantItemEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/enchantment/PrepareItemEnchantEvent.java b/paper-api/src/main/java/org/bukkit/event/enchantment/PrepareItemEnchantEvent.java index 169b3b0637..dbc24a40c8 100644 --- a/paper-api/src/main/java/org/bukkit/event/enchantment/PrepareItemEnchantEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java index 87704328f3..8fd3211e26 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java @@ -11,10 +11,8 @@ import org.bukkit.event.HandlerList; *

    * 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/paper-api/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java index 95cb0cb9cb..628dd87145 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/CreeperPowerEvent.java @@ -9,10 +9,8 @@ import org.bukkit.event.HandlerList; *

    * 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/paper-api/src/main/java/org/bukkit/event/entity/EntityChangeBlockEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityChangeBlockEvent.java index 3d73ea55c8..973236aa66 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityChangeBlockEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByBlockEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByBlockEvent.java index b94ef0e292..ef872050f6 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByBlockEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByEntityEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByEntityEvent.java index 894cdc7880..bece458929 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustByEntityEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java index 73b99d98f8..20b51ebd97 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityCombustEvent.java @@ -9,7 +9,6 @@ import org.bukkit.event.HandlerList; *

    * 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/paper-api/src/main/java/org/bukkit/event/entity/EntityCreatePortalEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityCreatePortalEvent.java index 8c5f72c656..b29d1fe2d8 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityCreatePortalEvent.java +++ b/paper-api/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 blocks; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByBlockEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByBlockEvent.java index ce5e6bedbc..a8a3eebb0f 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByBlockEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java index c55dd22ec3..53d1e38de1 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java index 09b933dc0a..ca46a68bfa 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/entity/EntityDeathEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityDeathEvent.java index e7a15244f0..31672d4751 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityDeathEvent.java +++ b/paper-api/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 drops; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityEvent.java index 574cc0a47e..85dc0e71aa 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java index e45533117b..13b802f7f7 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/entity/EntityInteractEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityInteractEvent.java index 264e809e38..1c4e100355 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityInteractEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityInteractEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/entity/EntityPortalEnterEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityPortalEnterEvent.java index 2840313ec1..384d5db40c 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityPortalEnterEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java index 3862471708..fceabee070 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/entity/EntityShootBowEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityShootBowEvent.java index f65a0cc39c..97413e631f 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityShootBowEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/entity/EntityTameEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityTameEvent.java index c566056038..d68a1e6406 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityTameEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityTameEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java index b887344929..1329bfd2d0 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/entity/EntityTeleportEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityTeleportEvent.java index e7d2a35386..378dba794a 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityTeleportEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java index 64cdfd57b4..7ca6a5560a 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/ExplosionPrimeEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java index 98ed5fd6a5..7d3219085e 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/FoodLevelChangeEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/entity/ItemDespawnEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/ItemDespawnEvent.java index 93077cfd4c..b086fae396 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/ItemDespawnEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java index b6ebb26f14..0a19c2f1a3 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/entity/PigZapEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/PigZapEvent.java index 04a4b79a5c..0a990e15d4 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/PigZapEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/PigZapEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java index 93e38670db..51b052e7bf 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/entity/PotionSplashEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/PotionSplashEvent.java index 6ee14f4bed..74905412a2 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/PotionSplashEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/entity/ProjectileHitEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/ProjectileHitEvent.java index 786f1f1b45..96278ec904 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/ProjectileHitEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/entity/SheepDyeWoolEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/SheepDyeWoolEvent.java index 6b3d61ab24..f9744156d0 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/SheepDyeWoolEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/entity/SheepRegrowWoolEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/SheepRegrowWoolEvent.java index c6f0ba92f1..1e12bc3ae3 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/SheepRegrowWoolEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/entity/SlimeSplitEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/SlimeSplitEvent.java index a170ae9b07..4f6a1fc4b1 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/SlimeSplitEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceBurnEvent.java b/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceBurnEvent.java index 85563d048b..73caf150c6 100644 --- a/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceBurnEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceBurnEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java b/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java index a98a24825b..6139de714e 100644 --- a/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/inventory/FurnaceSmeltEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/painting/PaintingBreakByEntityEvent.java b/paper-api/src/main/java/org/bukkit/event/painting/PaintingBreakByEntityEvent.java index 7635fba010..d7f0bb1642 100644 --- a/paper-api/src/main/java/org/bukkit/event/painting/PaintingBreakByEntityEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java b/paper-api/src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java index 1c6b46fc5d..edf3559c9f 100644 --- a/paper-api/src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/painting/PaintingEvent.java b/paper-api/src/main/java/org/bukkit/event/painting/PaintingEvent.java index fb972b8151..4e5553f6f1 100644 --- a/paper-api/src/main/java/org/bukkit/event/painting/PaintingEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java b/paper-api/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java index 89ef543c38..7e442d9a1d 100644 --- a/paper-api/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/player/PlayerAnimationEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerAnimationEvent.java index 14e58fa93f..cabe77dd39 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerAnimationEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java index de201b0424..09f1a66958 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/player/PlayerBedLeaveEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerBedLeaveEvent.java index 9a11c775a3..628ab0b03b 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerBedLeaveEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketEmptyEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketEmptyEvent.java index a15ac8c8ed..8fb121a917 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketEmptyEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketEvent.java index bf513053b4..e1726a2d38 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketFillEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketFillEvent.java index 8d14af0b29..94e042a36f 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerBucketFillEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerChangedWorldEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerChangedWorldEvent.java index 94de38537b..321708a607 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerChangedWorldEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerChatEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerChatEvent.java index 64a169e99f..1856c18724 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerChatEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerChatEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/player/PlayerCommandPreprocessEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerCommandPreprocessEvent.java index f5db688e20..ffb5d43c0c 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerCommandPreprocessEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerDropItemEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerDropItemEvent.java index a70af3872d..5b41b652c3 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerDropItemEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerDropItemEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/player/PlayerEggThrowEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerEggThrowEvent.java index f443c5af19..fc0a77fb7d 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerEggThrowEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerEvent.java index 0b0f47b6e5..1301ac2951 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerExpChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerExpChangeEvent.java index b332f31a55..f37491d71f 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerExpChangeEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerFishEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerFishEvent.java index 9c1defec70..cdc5ebf0a7 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerFishEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerFishEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/player/PlayerGameModeChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerGameModeChangeEvent.java index 7f95078b93..ee0a702220 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerGameModeChangeEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEntityEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEntityEvent.java index a14afa8883..935211dfde 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEntityEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEntityEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java index 17a4b7b009..1c1fc0c358 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerInventoryEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerInventoryEvent.java index 144a2d592f..d71dc0aeab 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerInventoryEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerItemHeldEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerItemHeldEvent.java index 26fac25321..afa374bdaa 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerItemHeldEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerJoinEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerJoinEvent.java index dd880fd0d9..e7481f92c7 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerJoinEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerKickEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerKickEvent.java index 1907181a66..39e81b6784 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerKickEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerKickEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/player/PlayerLevelChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerLevelChangeEvent.java index 1457c28d6a..730a7762cb 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerLevelChangeEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerLoginEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerLoginEvent.java index 5d002601d7..4b6ee79701 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerLoginEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java index 817b70c01d..e65124fbef 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerPickupItemEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerPickupItemEvent.java index 13f7793c25..cac3234fa8 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerPickupItemEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerPickupItemEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java index a721e53000..432de3ac68 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerPreLoginEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerPreLoginEvent.java index ac57199fa0..862d483a81 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerPreLoginEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerQuitEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerQuitEvent.java index f29758bd2d..5c8dc1b91c 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerQuitEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerRespawnEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerRespawnEvent.java index 54fdd23ed2..dcfc87838e 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerRespawnEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerShearEntityEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerShearEntityEvent.java index 8d9481740d..38afb3ce19 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerShearEntityEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java index 5c7fb9b01c..e7a8d8a15f 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/player/PlayerToggleSneakEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerToggleSneakEvent.java index 295680f413..667acad28a 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerToggleSneakEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerToggleSneakEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/player/PlayerToggleSprintEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerToggleSprintEvent.java index 0bbeba36e3..cf065e1121 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerToggleSprintEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/player/PlayerVelocityEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerVelocityEvent.java index e2a0590f05..14cd0e9547 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerVelocityEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/server/MapInitializeEvent.java b/paper-api/src/main/java/org/bukkit/event/server/MapInitializeEvent.java index e3836e1058..8834489b50 100644 --- a/paper-api/src/main/java/org/bukkit/event/server/MapInitializeEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/server/PluginDisableEvent.java b/paper-api/src/main/java/org/bukkit/event/server/PluginDisableEvent.java index 74482e4db6..932c4fda3e 100644 --- a/paper-api/src/main/java/org/bukkit/event/server/PluginDisableEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/server/PluginEnableEvent.java b/paper-api/src/main/java/org/bukkit/event/server/PluginEnableEvent.java index 429e8c9489..865316de0c 100644 --- a/paper-api/src/main/java/org/bukkit/event/server/PluginEnableEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/server/PluginEvent.java b/paper-api/src/main/java/org/bukkit/event/server/PluginEvent.java index ba69393b6f..1ad656d69a 100644 --- a/paper-api/src/main/java/org/bukkit/event/server/PluginEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/server/RemoteServerCommandEvent.java b/paper-api/src/main/java/org/bukkit/event/server/RemoteServerCommandEvent.java index 1d0a1008f5..d987a455d2 100644 --- a/paper-api/src/main/java/org/bukkit/event/server/RemoteServerCommandEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/server/ServerCommandEvent.java b/paper-api/src/main/java/org/bukkit/event/server/ServerCommandEvent.java index 7fbac654ba..3e4d816dbb 100644 --- a/paper-api/src/main/java/org/bukkit/event/server/ServerCommandEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/server/ServerEvent.java b/paper-api/src/main/java/org/bukkit/event/server/ServerEvent.java index b4fcbb3d13..eb00d6af9b 100644 --- a/paper-api/src/main/java/org/bukkit/event/server/ServerEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/server/ServerListPingEvent.java b/paper-api/src/main/java/org/bukkit/event/server/ServerListPingEvent.java index 1945bb7e1d..ddbdaeeed7 100644 --- a/paper-api/src/main/java/org/bukkit/event/server/ServerListPingEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleBlockCollisionEvent.java b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleBlockCollisionEvent.java index de351f7775..b643b57535 100644 --- a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleBlockCollisionEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleCollisionEvent.java b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleCollisionEvent.java index 67b51d0503..9dd0579228 100644 --- a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleCollisionEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleCreateEvent.java b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleCreateEvent.java index 983d955a8f..22eda7277d 100644 --- a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleCreateEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java index a20b97b2fa..40ffb11171 100644 --- a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDamageEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java index 8e841958a0..7a481d3ac6 100644 --- a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleEnterEvent.java b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleEnterEvent.java index eaf211fd3b..85c9b210b8 100644 --- a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleEnterEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleEnterEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleEntityCollisionEvent.java b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleEntityCollisionEvent.java index 9879f933d3..4d4d0e25f1 100644 --- a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleEntityCollisionEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleEvent.java b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleEvent.java index 8d69518e9a..b8255c013c 100644 --- a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleExitEvent.java b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleExitEvent.java index cfb7c2a61d..364451b56e 100644 --- a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleExitEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleExitEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleMoveEvent.java b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleMoveEvent.java index d98ec3968c..9a13e2965d 100644 --- a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleMoveEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleUpdateEvent.java b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleUpdateEvent.java index 44abf9eae7..d84faf4524 100644 --- a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleUpdateEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java b/paper-api/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java index 1763f81930..66fd76360f 100644 --- a/paper-api/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java index 0cd4887c14..5e3716e92c 100644 --- a/paper-api/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/weather/ThunderChangeEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java index 0c6c5f2e03..5d1234e5ab 100644 --- a/paper-api/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/weather/WeatherChangeEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/weather/WeatherEvent.java b/paper-api/src/main/java/org/bukkit/event/weather/WeatherEvent.java index 1deb3e9a18..0cae9bcb45 100644 --- a/paper-api/src/main/java/org/bukkit/event/weather/WeatherEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/world/ChunkEvent.java b/paper-api/src/main/java/org/bukkit/event/world/ChunkEvent.java index 0a32360f11..4710d40fdd 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/ChunkEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/world/ChunkLoadEvent.java b/paper-api/src/main/java/org/bukkit/event/world/ChunkLoadEvent.java index 0e15ec416d..906fa43d7c 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/ChunkLoadEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/world/ChunkPopulateEvent.java b/paper-api/src/main/java/org/bukkit/event/world/ChunkPopulateEvent.java index 257cbeea4d..0c23cbf024 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/ChunkPopulateEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/world/ChunkPopulateEvent.java @@ -9,9 +9,9 @@ import org.bukkit.generator.BlockPopulator; *

    * 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/paper-api/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java b/paper-api/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java index d508f0eb28..f59d0914de 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java b/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java index d653015af0..a2ef5ab02d 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java @@ -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/paper-api/src/main/java/org/bukkit/event/world/SpawnChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/world/SpawnChangeEvent.java index 965dd0338b..d3cc1fccb6 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/SpawnChangeEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/world/StructureGrowEvent.java b/paper-api/src/main/java/org/bukkit/event/world/StructureGrowEvent.java index 9f8fcf4538..15f4d419eb 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/StructureGrowEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/world/WorldEvent.java b/paper-api/src/main/java/org/bukkit/event/world/WorldEvent.java index cb88f5b35e..bd89b81dd9 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/WorldEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/world/WorldInitEvent.java b/paper-api/src/main/java/org/bukkit/event/world/WorldInitEvent.java index 0a043b2d0a..6bf13e0664 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/WorldInitEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/world/WorldLoadEvent.java b/paper-api/src/main/java/org/bukkit/event/world/WorldLoadEvent.java index ab44bde7c4..c5545aa1d3 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/WorldLoadEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/world/WorldSaveEvent.java b/paper-api/src/main/java/org/bukkit/event/world/WorldSaveEvent.java index af6ff5d639..ab4e5b598b 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/WorldSaveEvent.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/event/world/WorldUnloadEvent.java b/paper-api/src/main/java/org/bukkit/event/world/WorldUnloadEvent.java index 17ad2f8c16..110544b73c 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/WorldUnloadEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/world/WorldUnloadEvent.java @@ -7,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;