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
|
player
public PlayerShearEntityEvent(Player player, LivingEntity sheared, DroppedItem drop)
public LivingEntity sheared()
public DroppedItem drop()
public void setDrop(DroppedItem drop)
public boolean isIgnored()
isIgnored
in interface Cancellable
public void cancel(boolean cancelled)
cancel
in interface Cancellable
cancelled
- set the cancellation state of the eventCopyright © 2016. All rights reserved.