Class BlockPlacerPlaceEvent

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

public class BlockPlacerPlaceEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable
This Event is fired whenever a BlockPlacer wants to place a Block.
Author:
TheBusyBiscuit
  • 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.BlockEvent

    block
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockPlacerPlaceEvent(org.bukkit.block.Block blockPlacer, org.bukkit.inventory.ItemStack placedItem, org.bukkit.block.Block block)
    This creates a new BlockPlacerPlaceEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.block.Block
    This method returns the BlockPlacer
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    org.bukkit.inventory.ItemStack
    This returns the placed ItemStack.
    boolean
     
    void
    setCancelled(boolean cancel)
     
    void
    This marks this Event as immutable, it can no longer be modified afterwards.
    void
    setItemStack(org.bukkit.inventory.ItemStack item)
    This sets the placed ItemStack.

    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
  • Constructor Details

    • BlockPlacerPlaceEvent

      @ParametersAreNonnullByDefault public BlockPlacerPlaceEvent(org.bukkit.block.Block blockPlacer, org.bukkit.inventory.ItemStack placedItem, org.bukkit.block.Block block)
      This creates a new BlockPlacerPlaceEvent.
      Parameters:
      blockPlacer - The BlockPlacer
      placedItem - The ItemStack of the Block that was placed
      block - The placed Block
  • Method Details

    • getBlockPlacer

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

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

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

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • setImmutable

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

      @Nonnull public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

      @Nonnull public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event