[Bleeding] Event no longer implements Serializable.

By: Feildmaster <admin@feildmaster.com>
This commit is contained in:
Bukkit/Spigot
2012-02-19 01:25:46 -06:00
parent 0fd379166c
commit e4de1795db
129 changed files with 4 additions and 170 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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
*/

View File

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

View File

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

View File

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

View File

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