public class PlayerShearEntityEvent extends PlayerEvent implements Cancellable
| Constructor and Description |
|---|
PlayerShearEntityEvent(Player player,
LivingEntity sheared,
DroppedItem drop) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(boolean cancelled) |
DroppedItem |
drop()
Gets the item that shearing this entity will drop
|
boolean |
isIgnored() |
void |
setDrop(DroppedItem drop)
Sets the item that shearing this entity will drop
|
LivingEntity |
sheared()
Gets the entity that was sheared
|
playerpublic PlayerShearEntityEvent(Player player, LivingEntity sheared, DroppedItem drop)
public LivingEntity sheared()
public DroppedItem drop()
public void setDrop(DroppedItem drop)
public boolean isIgnored()
isIgnored in interface Cancellablepublic void cancel(boolean cancelled)
cancel in interface Cancellablecancelled - set the cancellation state of the eventCopyright © 2016. All rights reserved.