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