Reverting the Drop API for now, we need to re-evalute this as it is causing too many issues and blocking releases.
This reverts commit 2d17b0c24e2de982c09ad6050a95db0fac70c3ad. By: Warren Loo <evilseph@gmail.com>
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
package org.bukkit.event.vehicle;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Vehicle;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
/**
|
||||
* Raised when a vehicle is destroyed, which could be caused by either a player
|
||||
@@ -17,12 +14,10 @@ public class VehicleDestroyEvent extends VehicleEvent implements Cancellable {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private final Entity attacker;
|
||||
private boolean cancelled;
|
||||
private List<ItemStack> drops;
|
||||
|
||||
public VehicleDestroyEvent(final Vehicle vehicle, final Entity attacker, List<ItemStack> drops) {
|
||||
public VehicleDestroyEvent(final Vehicle vehicle, final Entity attacker) {
|
||||
super(vehicle);
|
||||
this.attacker = attacker;
|
||||
this.drops = drops;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -50,14 +45,4 @@ public class VehicleDestroyEvent extends VehicleEvent implements Cancellable {
|
||||
public static HandlerList getHandlerList() {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a list of drops that this vehicle should drop when broken. Changes to this list will
|
||||
* affect what is actually dropped. This list does not include the contents of the inventory
|
||||
* if this is a storage minecart; if that's needed, it can be fetched by casting.
|
||||
* @return A list of drops
|
||||
*/
|
||||
public List<ItemStack> getDrops() {
|
||||
return drops;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user