Class PlayerBlockPlaceEvent
java.lang.Object
me.internalizable.numdrassl.api.event.player.PlayerBlockPlaceEvent
- All Implemented Interfaces:
Cancellable
Event fired when a player attempts to place a block.
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerBlockPlaceEvent(Player player, int blockX, int blockY, int blockZ, int blockId) -
Method Summary
Modifier and TypeMethodDescriptionintintintintbooleanCheck if this event has been cancelled.voidsetCancelled(boolean cancelled) Set whether this event is cancelled.
-
Constructor Details
-
PlayerBlockPlaceEvent
public PlayerBlockPlaceEvent(@Nonnull Player player, int blockX, int blockY, int blockZ, int blockId)
-
-
Method Details
-
getPlayer
-
getBlockX
public int getBlockX() -
getBlockY
public int getBlockY() -
getBlockZ
public int getBlockZ() -
getBlockId
public int getBlockId() -
isCancelled
public boolean isCancelled()Description copied from interface:CancellableCheck if this event has been cancelled.- Specified by:
isCancelledin interfaceCancellable- Returns:
- true if the event is cancelled
-
setCancelled
public void setCancelled(boolean cancelled) Description copied from interface:CancellableSet whether this event is cancelled.- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancelled- true to cancel the event
-