Class LoggingBlockPlaceEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockPlaceEvent
com.sk89q.worldguard.bukkit.event.debug.LoggingBlockPlaceEvent
- All Implemented Interfaces:
CancelLogging
,org.bukkit.event.Cancellable
public class LoggingBlockPlaceEvent
extends org.bukkit.event.block.BlockPlaceEvent
implements CancelLogging
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.block.BlockPlaceEvent
canBuild, cancel, hand, itemInHand, placedAgainst, player, replacedBlockState
Fields inherited from class org.bukkit.event.block.BlockEvent
block
-
Constructor Summary
ConstructorDescriptionLoggingBlockPlaceEvent
(org.bukkit.block.Block placedBlock, org.bukkit.block.BlockState replacedBlockState, org.bukkit.block.Block placedAgainst, org.bukkit.inventory.ItemStack itemInHand, org.bukkit.entity.Player thePlayer, boolean canBuild) -
Method Summary
Modifier and TypeMethodDescriptionGet an immutable list of cancels.void
setCancelled
(boolean cancel) Methods inherited from class org.bukkit.event.block.BlockPlaceEvent
canBuild, getBlockAgainst, getBlockPlaced, getBlockReplacedState, getHand, getHandlerList, getHandlers, getItemInHand, getPlayer, isCancelled, setBuild
Methods inherited from class org.bukkit.event.block.BlockEvent
getBlock
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.event.Cancellable
isCancelled
-
Constructor Details
-
LoggingBlockPlaceEvent
public LoggingBlockPlaceEvent(org.bukkit.block.Block placedBlock, org.bukkit.block.BlockState replacedBlockState, org.bukkit.block.Block placedAgainst, org.bukkit.inventory.ItemStack itemInHand, org.bukkit.entity.Player thePlayer, boolean canBuild)
-
-
Method Details
-
getCancels
Description copied from interface:CancelLogging
Get an immutable list of cancels.- Specified by:
getCancels
in interfaceCancelLogging
- Returns:
- An immutable list
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
- Overrides:
setCancelled
in classorg.bukkit.event.block.BlockPlaceEvent
-