[Bleeding] Remove deprecated events (EndermanPickup/Place).
This commit is contained in:
parent
7288e2adb7
commit
070ae68360
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user