public class BlockFailedDispenseEvent extends BlockEvent
Event.Result
block
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
|
getBlock
getEventName, isAsynchronous
public boolean shouldPlayEffect()
public void shouldPlayEffect(boolean playEffect)
playEffect
- if the effect should be playedpublic boolean callEvent()
callEvent
in class Event
shouldPlayEffect()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.