[Bleeding] Event no longer implements Serializable.
By: Feildmaster <admin@feildmaster.com>
This commit is contained in:
@@ -7,7 +7,6 @@ import org.bukkit.event.HandlerList;
|
||||
/**
|
||||
* Raised when a vehicle collides with a block.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class VehicleBlockCollisionEvent extends VehicleCollisionEvent {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private final Block block;
|
||||
|
||||
@@ -5,7 +5,6 @@ import org.bukkit.entity.Vehicle;
|
||||
/**
|
||||
* Raised when a vehicle collides.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public abstract class VehicleCollisionEvent extends VehicleEvent {
|
||||
public VehicleCollisionEvent(final Vehicle vehicle) {
|
||||
super(vehicle);
|
||||
|
||||
@@ -6,9 +6,9 @@ import org.bukkit.event.HandlerList;
|
||||
/**
|
||||
* Raised when a vehicle is created.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class VehicleCreateEvent extends VehicleEvent {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
|
||||
public VehicleCreateEvent(final Vehicle vehicle) {
|
||||
super(vehicle);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@ import org.bukkit.event.HandlerList;
|
||||
/**
|
||||
* Raised when a vehicle receives damage.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class VehicleDamageEvent extends VehicleEvent implements Cancellable {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private final Entity attacker;
|
||||
|
||||
@@ -10,7 +10,6 @@ import org.bukkit.event.HandlerList;
|
||||
* or the environment. This is not raised if the boat is simply 'removed'
|
||||
* due to other means.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class VehicleDestroyEvent extends VehicleEvent implements Cancellable {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private final Entity attacker;
|
||||
|
||||
@@ -8,7 +8,6 @@ import org.bukkit.event.HandlerList;
|
||||
/**
|
||||
* Raised when an entity enters a vehicle.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class VehicleEnterEvent extends VehicleEvent implements Cancellable {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private boolean cancelled;
|
||||
|
||||
@@ -8,7 +8,6 @@ import org.bukkit.event.HandlerList;
|
||||
/**
|
||||
* Raised when a vehicle collides with an entity.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class VehicleEntityCollisionEvent extends VehicleCollisionEvent implements Cancellable {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private final Entity entity;
|
||||
|
||||
@@ -6,7 +6,6 @@ import org.bukkit.event.Event;
|
||||
/**
|
||||
* Represents a vehicle-related event.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public abstract class VehicleEvent extends Event {
|
||||
protected Vehicle vehicle;
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ import org.bukkit.event.HandlerList;
|
||||
/**
|
||||
* Raised when a living entity exits a vehicle.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class VehicleExitEvent extends VehicleEvent implements Cancellable {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private boolean cancelled;
|
||||
|
||||
@@ -7,7 +7,6 @@ import org.bukkit.event.HandlerList;
|
||||
/**
|
||||
* Raised when a vehicle moves.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class VehicleMoveEvent extends VehicleEvent {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private final Location from;
|
||||
|
||||
@@ -3,7 +3,6 @@ package org.bukkit.event.vehicle;
|
||||
import org.bukkit.entity.Vehicle;
|
||||
import org.bukkit.event.HandlerList;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class VehicleUpdateEvent extends VehicleEvent {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user