Class BlockClickEvent
java.lang.Object
dev.rono.igniscore.api.event.BlockClickEvent
- All Implemented Interfaces:
BlockEvent, PlayerBlockEvent
Fired when a player clicks a placed custom block.
Listeners may change result() to control core handling (ignite, break, open).
-
Constructor Summary
ConstructorsConstructorDescriptionBlockClickEvent(PlacedBlock block, IgnisPlayer player, IgnisInteraction interaction, IgnisItem heldItem, CustomBlockAction defaultResult) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BlockEvent
config, definition
-
Constructor Details
-
BlockClickEvent
public BlockClickEvent(PlacedBlock block, IgnisPlayer player, IgnisInteraction interaction, IgnisItem heldItem, CustomBlockAction defaultResult)
-
-
Method Details
-
block
- Specified by:
blockin interfaceBlockEvent- Returns:
- the placed block instance this event refers to
-
player
- Specified by:
playerin interfacePlayerBlockEvent
-
interaction
-
heldItem
-
result
-
setResult
-