Class RedstoneListener

java.lang.Object
dev.piglin.piglinworldapi.block.RedstoneListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class RedstoneListener extends Object implements org.bukkit.event.Listener
  • Constructor Details

    • RedstoneListener

      public RedstoneListener()
  • Method Details

    • isRedstoneBlock

      public static boolean isRedstoneBlock(org.bukkit.Material id)
      Returns true if a block uses Redstone in some way.
      Parameters:
      id - the type ID of the block
      Returns:
      true if the block uses Redstone
    • onBlockBreak

      public void onBlockBreak(org.bukkit.event.block.BlockBreakEvent event)
    • onBlockPlace

      public void onBlockPlace(org.bukkit.event.block.BlockPlaceEvent event)
    • onPhysics

      public void onPhysics(org.bukkit.event.block.BlockPhysicsEvent event)
    • onBlockRedstoneChange

      public void onBlockRedstoneChange(org.bukkit.event.block.BlockRedstoneEvent event)