public class BlockFailedDispenseEvent extends BlockEvent
Event.Resultblock| Constructor and Description |
|---|
BlockFailedDispenseEvent(@NotNull Block theBlock) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
callEvent()
Calls the event and tests if cancelled.
|
static @NotNull HandlerList |
getHandlerList() |
@NotNull 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 @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.