Package net.glowstone.block.blocktype
Class BlockTrapDoor
java.lang.Object
net.glowstone.block.blocktype.BlockTrapDoor
Helper for trapdoor blocks.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onRedstoneUpdate
(GlowBlock block) Opens or shuts a trapdoor if triggered by redstone.void
placeBlock
(GlowPlayer player, GlowBlockState state, org.bukkit.block.BlockFace face, org.bukkit.inventory.ItemStack holding, org.bukkit.util.Vector clickedLoc) Places a trapdoor.
-
Constructor Details
-
BlockTrapDoor
-
-
Method Details
-
placeBlock
public void placeBlock(GlowPlayer player, GlowBlockState state, org.bukkit.block.BlockFace face, org.bukkit.inventory.ItemStack holding, org.bukkit.util.Vector clickedLoc) Places a trapdoor.- Parameters:
player
- ignoredstate
- the block to updateface
- the face on which to hinge the trapdoorholding
- ignoredclickedLoc
- the clicked point within the block
-
onRedstoneUpdate
Opens or shuts a trapdoor if triggered by redstone.- Parameters:
block
- a trapdoor block
-