Package dev.piglin.piglinworldapi.block
Class RedstoneListener
java.lang.Object
dev.piglin.piglinworldapi.block.RedstoneListener
- All Implemented Interfaces:
org.bukkit.event.Listener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisRedstoneBlock(org.bukkit.Material id)Returns true if a block uses Redstone in some way.voidonBlockBreak(org.bukkit.event.block.BlockBreakEvent event)voidonBlockPlace(org.bukkit.event.block.BlockPlaceEvent event)voidonBlockRedstoneChange(org.bukkit.event.block.BlockRedstoneEvent event)voidonPhysics(org.bukkit.event.block.BlockPhysicsEvent event)
-
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)
-