Class PlaceBlockEvent
java.lang.Object
org.bukkit.event.Event
ua.mcchickenstudio.opencreative.coding.blocks.events.WorldEvent
ua.mcchickenstudio.opencreative.coding.blocks.events.player.interaction.PlaceBlockEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable, BlockEvent
public final class PlaceBlockEvent
extends WorldEvent
implements org.bukkit.event.Cancellable, BlockEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPlaceBlockEvent(org.bukkit.entity.Player player, org.bukkit.event.block.BlockPlaceEvent event) -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.block.BlockgetBlock()Returns block involved in block event.booleanvoidsetCancelled(boolean cancelled) Methods inherited from class WorldEvent
getHandlerList, getHandlers, getPlanet, getSelection, getWorldMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlaceBlockEvent
public PlaceBlockEvent(org.bukkit.entity.Player player, org.bukkit.event.block.BlockPlaceEvent event)
-
-
Method Details
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getBlock
@NotNull public @NotNull org.bukkit.block.Block getBlock()Description copied from interface:BlockEventReturns block involved in block event.- Specified by:
getBlockin interfaceBlockEvent- Returns:
- block from event.
-