Class PulseVirtualBlockInteractEvent
java.lang.Object
org.bukkit.event.Event
dev.pulsemc.pulse.api.events.virtual.block.PulseVirtualBlockInteractEvent
- All Implemented Interfaces:
Cancellable
Triggered when a player interacts (Left/Right clicks) with a virtual block.
Cancelling this event will prevent the interaction from proceeding and will ensure the virtual block remains visible to the player.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerListbooleanbooleanShould the vanilla server interaction be cancelled?voidsetCancelled(boolean cancel) voidsetCancelVanillaInteraction(boolean cancel) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PulseVirtualBlockInteractEvent
-
-
Method Details
-
getPlayer
-
getLocation
-
getVirtualBlock
-
getAction
-
isVanillaInteractionCancelled
public boolean isVanillaInteractionCancelled()Should the vanilla server interaction be cancelled? By default, this is true to prevent accidental block placements on fake blocks. -
setCancelVanillaInteraction
public void setCancelVanillaInteraction(boolean cancel) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceCancellable
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-