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:
Bukkit/Spigot
2012-03-27 10:16:42 -04:00
parent bea998a6d0
commit dc590d2c1e
6 changed files with 7 additions and 68 deletions

View File

@@ -1,12 +1,9 @@
package org.bukkit.event.player;
import java.util.List;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
import org.bukkit.inventory.ItemStack;
/**
* Called when a player shears an entity
@@ -15,13 +12,11 @@ public class PlayerShearEntityEvent extends PlayerEvent implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private boolean cancel;
private final Entity what;
private final List<ItemStack> items;
public PlayerShearEntityEvent(final Player who, final Entity what, final List<ItemStack> drops) {
public PlayerShearEntityEvent(final Player who, final Entity what) {
super(who);
this.cancel = false;
this.what = what;
this.items = drops;
}
public boolean isCancelled() {
@@ -41,15 +36,6 @@ public class PlayerShearEntityEvent extends PlayerEvent implements Cancellable {
return what;
}
/**
* Get the items that will drop as a result of the shearing. To change the
* items dropped, change the contents of this list.
* @return The list of items.
*/
public List<ItemStack> getDrops() {
return items;
}
@Override
public HandlerList getHandlers() {
return handlers;