Class PlaceBlockListener
java.lang.Object
ua.mcchickenstudio.opencreative.listeners.player.PlaceBlockListener
- All Implemented Interfaces:
org.bukkit.event.Listener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanmove(org.bukkit.Location location, org.bukkit.block.BlockFace face) static voidmoveCodingBlock(org.bukkit.block.Block oldBlock, org.bukkit.block.Block newBlock) Moves coding block with wall sign and container to next block.voidonChestPlace(org.bukkit.event.block.BlockPlaceEvent event) voidonPlace(org.bukkit.event.block.BlockPlaceEvent event) static voidplaceDebugTorch(@NotNull org.bukkit.Location location) static voidplaceDevBlock(org.bukkit.Location location, org.bukkit.Material material, org.bukkit.Material additionalBlockMaterial, org.bukkit.Material signMaterial, String signText)
-
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)
-