[Bleeding] Remove deprecated events (EndermanPickup/Place).

By: Feildmaster <admin@feildmaster.com>
This commit is contained in:
Bukkit/Spigot 2012-02-19 01:25:11 -06:00
parent 539aedf219
commit 0fd379166c
2 changed files with 0 additions and 102 deletions

View file

@ -1,50 +0,0 @@
package org.bukkit.event.entity;
import org.bukkit.block.Block;
import org.bukkit.entity.Entity;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
/**
* @deprecated Use EntityChangeBlockEvent instead
*/
@SuppressWarnings("serial")
@Deprecated
public class EndermanPickupEvent extends EntityEvent implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private boolean cancel;
private final Block block;
public EndermanPickupEvent(final Entity what, final Block block) {
super(what);
this.block = block;
this.cancel = false;
}
public boolean isCancelled() {
return cancel;
}
public void setCancelled(boolean cancel) {
this.cancel = cancel;
}
/**
* Get the block that the enderman is going to pick up.
*
* @return block the enderman is about to pick up
*/
public Block getBlock() {
return block;
}
@Override
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
}

View file

@ -1,52 +0,0 @@
package org.bukkit.event.entity;
import org.bukkit.Location;
import org.bukkit.entity.Entity;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
/**
*
* @deprecated Use EntityChangeBlockEvent instead
*
*/
@SuppressWarnings("serial")
@Deprecated
public class EndermanPlaceEvent extends EntityEvent implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private boolean cancel;
private final Location location;
public EndermanPlaceEvent(final Entity what, final Location location) {
super(what);
this.location = location;
this.cancel = false;
}
public boolean isCancelled() {
return cancel;
}
public void setCancelled(boolean cancel) {
this.cancel = cancel;
}
/**
* Get the location that is target of the enderman's placement.
*
* @return location where the enderman will place its block
*/
public Location getLocation() {
return location;
}
@Override
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
}