[Bleeding] Event no longer implements Serializable.

This commit is contained in:
Feildmaster
2012-02-19 01:25:46 -06:00
committed by EvilSeph
parent 219d005e1d
commit ca71be0228
129 changed files with 4 additions and 170 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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