public class BlockFailedDispenseEvent extends BlockEvent
Event.Resultblock| Constructor | Description |
|---|---|
BlockFailedDispenseEvent(Block theBlock) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
callEvent() |
Calls the event and tests if cancelled.
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
boolean |
shouldPlayEffect() |
|
void |
shouldPlayEffect(boolean playEffect) |
Sets if the effect for empty dispensers should be played
|
getBlockgetEventName, isAsynchronouspublic boolean shouldPlayEffect()
public void shouldPlayEffect(boolean playEffect)
playEffect - if the effect should be playedpublic boolean callEvent()
callEvent in class EventshouldPlayEffect()@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2021. All rights reserved.