[Bleeding] Event no longer implements Serializable.
This commit is contained in:
@@ -11,10 +11,8 @@ import org.bukkit.event.HandlerList;
|
||||
* <p />
|
||||
* If a Creature Spawn event is cancelled, the creature will not spawn.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CreatureSpawnEvent extends EntityEvent implements Cancellable {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
|
||||
private final Location location;
|
||||
private boolean canceled;
|
||||
private final CreatureType creatureType;
|
||||
|
||||
@@ -9,10 +9,8 @@ import org.bukkit.event.HandlerList;
|
||||
* <p />
|
||||
* If a Creeper Power event is cancelled, the Creeper will not be powered.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CreeperPowerEvent extends EntityEvent implements Cancellable {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
|
||||
private boolean canceled;
|
||||
private final PowerCause cause;
|
||||
private Entity bolt;
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -9,7 +9,6 @@ import org.bukkit.event.HandlerList;
|
||||
* <p />
|
||||
* If an Entity Combust event is cancelled, the entity will not combust.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class EntityCombustEvent extends EntityEvent implements Cancellable {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private int duration;
|
||||
|
||||
@@ -10,7 +10,6 @@ import org.bukkit.event.HandlerList;
|
||||
/**
|
||||
* Thrown when a Living Entity creates a portal in a world.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class EntityCreatePortalEvent extends EntityEvent implements Cancellable {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private final List<BlockState> blocks;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -8,7 +8,6 @@ import org.bukkit.inventory.ItemStack;
|
||||
/**
|
||||
* Thrown whenever a LivingEntity dies
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class EntityDeathEvent extends EntityEvent {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private final List<ItemStack> drops;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 = "";
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user