Class BlockPlacerPlaceEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
io.github.thebusybiscuit.slimefun4.api.events.BlockPlacerPlaceEvent
All Implemented Interfaces:
Cancellable

public class BlockPlacerPlaceEvent extends BlockEvent implements Cancellable
This Event is fired whenever a BlockPlacer wants to place a Block.
Author:
TheBusyBiscuit
  • Constructor Details

  • Method Details

    • getBlockPlacer

      @Nonnull public Block getBlockPlacer()
      This method returns the BlockPlacer
      Returns:
      The BlockPlacer
    • getItemStack

      @Nonnull public ItemStack getItemStack()
      This returns the placed ItemStack.
      Returns:
      The placed ItemStack
    • setItemStack

      public void setItemStack(@Nonnull ItemStack item)
      This sets the placed ItemStack.
      Parameters:
      item - The ItemStack to be placed
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface Cancellable
    • setImmutable

      public void setImmutable()
      This marks this Event as immutable, it can no longer be modified afterwards.
    • getHandlerList

      @Nonnull public static HandlerList getHandlerList()
    • getHandlers

      @Nonnull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event