Class PlaceBlockListener

java.lang.Object
ua.mcchickenstudio.opencreative.listeners.player.PlaceBlockListener
All Implemented Interfaces:
org.bukkit.event.Listener

public final class PlaceBlockListener extends Object implements org.bukkit.event.Listener
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    move(org.bukkit.Location location, org.bukkit.block.BlockFace face)
     
    static void
    moveCodingBlock(org.bukkit.block.Block oldBlock, org.bukkit.block.Block newBlock)
    Moves coding block with wall sign and container to next block.
    void
    onChestPlace(org.bukkit.event.block.BlockPlaceEvent event)
     
    void
    onPlace(org.bukkit.event.block.BlockPlaceEvent event)
     
    static void
    placeDebugTorch(@NotNull org.bukkit.Location location)
     
    static void
    placeDevBlock(org.bukkit.Location location, org.bukkit.Material material, org.bukkit.Material additionalBlockMaterial, org.bukkit.Material signMaterial, String signText)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PlaceBlockListener

      public PlaceBlockListener()
  • Method Details

    • placeDevBlock

      public static void placeDevBlock(org.bukkit.Location location, org.bukkit.Material material, org.bukkit.Material additionalBlockMaterial, org.bukkit.Material signMaterial, String signText)
    • placeDebugTorch

      public static void placeDebugTorch(@NotNull @NotNull org.bukkit.Location location)
    • move

      public static boolean move(org.bukkit.Location location, org.bukkit.block.BlockFace face)
    • moveCodingBlock

      public static void moveCodingBlock(org.bukkit.block.Block oldBlock, org.bukkit.block.Block newBlock)
      Moves coding block with wall sign and container to next block.
      Parameters:
      oldBlock - Block to move and replace with air.
      newBlock - Block where to move.
    • onChestPlace

      public void onChestPlace(org.bukkit.event.block.BlockPlaceEvent event)
    • onPlace

      public void onPlace(org.bukkit.event.block.BlockPlaceEvent event)