public class BlockTrapDoor extends Object
Constructor and Description |
---|
BlockTrapDoor(BlockType parent) |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
public BlockTrapDoor(BlockType parent)
public void placeBlock(GlowPlayer player, GlowBlockState state, org.bukkit.block.BlockFace face, org.bukkit.inventory.ItemStack holding, org.bukkit.util.Vector clickedLoc)
player
- ignoredstate
- the block to updateface
- the face on which to hinge the trapdoorholding
- ignoredclickedLoc
- the clicked point within the blockpublic void onRedstoneUpdate(GlowBlock block)
block
- a trapdoor blockCopyright © 2021. All rights reserved.