Cancellablepublic class BlockShearEntityEvent extends BlockEvent implements Cancellable
Event.Resultblock| Constructor | Description | 
|---|---|
BlockShearEntityEvent(Block dispenser,
                     Entity sheared,
                     ItemStack tool) | 
| Modifier and Type | Method | Description | 
|---|---|---|
Entity | 
getEntity() | 
 Gets the entity that was sheared. 
 | 
static HandlerList | 
getHandlerList() | 
|
HandlerList | 
getHandlers() | 
|
ItemStack | 
getTool() | 
 Gets the item used to shear this sheep. 
 | 
boolean | 
isCancelled() | 
 Gets the cancellation state of this event. 
 | 
void | 
setCancelled(boolean cancelled) | 
 Sets the cancellation state of this event. 
 | 
getBlockgetEventName, isAsynchronous@NotNull public Entity getEntity()
@NotNull public ItemStack getTool()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true if you wish to cancel this event@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2019. All rights reserved.