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