public class BlockOpenable extends BlockType
MaterialData
implements Openable
.ItemType.Context
ADJACENT, drops, placeSound, SIDES
Constructor and Description |
---|
BlockOpenable() |
Modifier and Type | Method and Description |
---|---|
boolean |
blockInteract(GlowPlayer player,
GlowBlock block,
org.bukkit.block.BlockFace face,
org.bukkit.util.Vector clickedLoc)
Called when a player attempts to interact with (right-click) a block of this type already in
the world.
|
protected void |
onClosed(GlowPlayer player,
GlowBlock block,
org.bukkit.block.BlockFace face,
org.bukkit.util.Vector clickedLoc,
GlowBlockState state,
org.bukkit.material.MaterialData materialData) |
protected void |
onOpened(GlowPlayer player,
GlowBlock block,
org.bukkit.block.BlockFace face,
org.bukkit.util.Vector clickedLoc,
GlowBlockState state,
org.bukkit.material.MaterialData materialData) |
afterDestroy, afterPlace, blockDestroy, canAbsorb, canOverride, canPlaceAt, canTickRandomly, createBlockEntity, getDrops, getMinedDrops, getOppositeBlockFace, getPlaceAs, getPlaceSound, getPulseTickSpeed, isPulseOnce, leftClickBlock, onBlockChanged, onEntityStep, onNearBlockChanged, onRedstoneUpdate, placeBlock, receivePulse, requestPulse, rightClickBlock, setDrops, setPlaceSound, updateBlock, updatePhysics, updatePhysicsAfterEvent, warnMaterialData
getContext, getId, getMaterial, getMaxStackSize, rightClickAir, setId, setMaterial, setMaxStackSize, setPlaceAs, setPlaceAs, toString
public boolean blockInteract(GlowPlayer player, GlowBlock block, org.bukkit.block.BlockFace face, org.bukkit.util.Vector clickedLoc)
BlockType
blockInteract
in class BlockType
player
- the player interactingblock
- the block interacted withface
- the clicked faceclickedLoc
- where in the block the click occurredprotected void onOpened(GlowPlayer player, GlowBlock block, org.bukkit.block.BlockFace face, org.bukkit.util.Vector clickedLoc, GlowBlockState state, org.bukkit.material.MaterialData materialData)
protected void onClosed(GlowPlayer player, GlowBlock block, org.bukkit.block.BlockFace face, org.bukkit.util.Vector clickedLoc, GlowBlockState state, org.bukkit.material.MaterialData materialData)
Copyright © 2021. All rights reserved.