[Bleeding] Event no longer implements Serializable.
By: Feildmaster <admin@feildmaster.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user