Package io.papermc.paper.event.block
Class BlockFailedDispenseEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
io.papermc.paper.event.block.BlockFailedDispenseEvent
Called when a block tries to dispense an item, but its inventory is empty.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.block.BlockEventblock
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanCalls the event and tests if cancelled.static @NotNull HandlerListbooleanvoidshouldPlayEffect(boolean playEffect) Sets if the effect for empty dispensers should be playedMethods inherited from class org.bukkit.event.block.BlockEventgetBlockMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details- 
BlockFailedDispenseEvent
 
- 
- 
Method Details- 
shouldPlayEffectpublic boolean shouldPlayEffect()- Returns:
- if the effect should be played
 
- 
shouldPlayEffectpublic void shouldPlayEffect(boolean playEffect) Sets if the effect for empty dispensers should be played- Parameters:
- playEffect- if the effect should be played
 
- 
callEventpublic boolean callEvent()Calls the event and tests if cancelled.- Overrides:
- callEventin class- Event
- Returns:
- shouldPlayEffect()
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-