[Bleeding] Event no longer implements Serializable.
By: Feildmaster <admin@feildmaster.com>
This commit is contained in:
@@ -6,7 +6,6 @@ import org.bukkit.entity.Painting;
|
||||
/**
|
||||
* Triggered when a painting is removed by an entity
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class PaintingBreakByEntityEvent extends PaintingBreakEvent {
|
||||
private final Entity remover;
|
||||
|
||||
|
||||
@@ -7,10 +7,8 @@ import org.bukkit.event.HandlerList;
|
||||
/**
|
||||
* Triggered when a painting is removed
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class PaintingBreakEvent extends PaintingEvent implements Cancellable {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
|
||||
private boolean cancelled;
|
||||
private final RemoveCause cause;
|
||||
|
||||
|
||||
@@ -6,9 +6,7 @@ import org.bukkit.event.Event;
|
||||
/**
|
||||
* Represents a painting-related event.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public abstract class PaintingEvent extends Event {
|
||||
|
||||
protected Painting painting;
|
||||
|
||||
protected PaintingEvent(final Painting painting) {
|
||||
|
||||
@@ -10,12 +10,9 @@ import org.bukkit.event.HandlerList;
|
||||
/**
|
||||
* Triggered when a painting is created in the world
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class PaintingPlaceEvent extends PaintingEvent implements Cancellable {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
|
||||
private boolean cancelled;
|
||||
|
||||
private final Player player;
|
||||
private final Block block;
|
||||
private final BlockFace blockFace;
|
||||
|
||||
Reference in New Issue
Block a user