Cancellable@Deprecated public class BlockDropItemEvent extends BlockEvent implements Cancellable
Event.Resultblock| Constructor | Description | 
|---|---|
BlockDropItemEvent(Block block,
                  BlockState blockState,
                  Player player,
                  List<Item> items) | 
 Deprecated.  
  | 
| Modifier and Type | Method | Description | 
|---|---|---|
BlockState | 
getBlockState() | 
 Deprecated.  
Gets the BlockState of the block involved in this event before it was
 broken. 
 | 
static HandlerList | 
getHandlerList() | 
 Deprecated.  
  | 
HandlerList | 
getHandlers() | 
 Deprecated.  
  | 
Item | 
getItem() | 
 Deprecated. 
 
very temporary compatibility measure 
 | 
List<Item> | 
getItems() | 
 Deprecated.  
Gets list of the Item drops caused by the block break. 
 | 
Player | 
getPlayer() | 
 Deprecated.  
Gets the Player that is breaking the block involved in this event. 
 | 
boolean | 
isCancelled() | 
 Deprecated.  
Gets the cancellation state of this event. 
 | 
void | 
setCancelled(boolean cancel) | 
 Deprecated.  
Sets the cancellation state of this event. 
 | 
getBlockgetEventName, isAsynchronouspublic BlockDropItemEvent(@NotNull
                          Block block,
                          @NotNull
                          BlockState blockState,
                          @NotNull
                          Player player,
                          @NotNull
                          List<Item> items)
@NotNull public Player getPlayer()
@NotNull public BlockState getBlockState()
@NotNull public List<Item> getItems()
@Deprecated @NotNull public Item getItem()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - 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.