[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

@@ -14,7 +14,6 @@ import org.bukkit.event.HandlerList;
* <p />
* 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();

View File

@@ -9,7 +9,6 @@ import org.bukkit.event.HandlerList;
* <p />
* 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;

View File

@@ -13,7 +13,6 @@ import org.bukkit.event.HandlerList;
* <li>If you want to figure out what is being placed, use {@link #getMaterial()} or {@link #getMaterialId()} instead.</li>
* </ul>
*/
@SuppressWarnings("serial")
public class BlockCanBuildEvent extends BlockEvent {
private static final HandlerList handlers = new HandlerList();
protected boolean buildable;

View File

@@ -11,7 +11,6 @@ import org.bukkit.inventory.ItemStack;
* <p />
* 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;

View File

@@ -11,10 +11,8 @@ import org.bukkit.util.Vector;
* <p />
* 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;

View File

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

View File

@@ -16,7 +16,6 @@ import org.bukkit.event.HandlerList;
* <p />
* 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;

View File

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

View File

@@ -10,7 +10,6 @@ import org.bukkit.event.HandlerList;
* <p />
* 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;

View File

@@ -10,7 +10,6 @@ import org.bukkit.event.HandlerList;
* <p />
* 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;

View File

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

View File

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

View File

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

View File

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

View File

@@ -12,7 +12,6 @@ import org.bukkit.inventory.ItemStack;
* <p />
* 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;

View File

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

View File

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

View File

@@ -12,7 +12,6 @@ import org.bukkit.entity.Entity;
* <li>Snow formed by a {@link org.bukkit.entity.Snowman}.</li>
* </ul>
*/
@SuppressWarnings("serial")
public class EntityBlockFormEvent extends BlockFormEvent {
private final Entity entity;

View File

@@ -9,7 +9,6 @@ import org.bukkit.event.HandlerList;
* <p />
* 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;

View File

@@ -10,7 +10,6 @@ import org.bukkit.event.HandlerList;
* <p />
* 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;