Package net.glowstone.block.blocktype
Class BlockAttachable
java.lang.Object
net.glowstone.block.itemtype.ItemType
net.glowstone.block.blocktype.BlockType
net.glowstone.block.blocktype.BlockNeedsAttached
net.glowstone.block.blocktype.BlockAttachable
- Direct Known Subclasses:
BlockButton
,BlockLever
-
Nested Class Summary
Nested classes/interfaces inherited from class net.glowstone.block.itemtype.ItemType
ItemType.Context
-
Field Summary
Fields inherited from class net.glowstone.block.blocktype.BlockType
ADJACENT, drops, placeSound, SIDES, soundGroup
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.bukkit.block.BlockFace
void
setAttachedFace
(org.bukkit.block.BlockState state, org.bukkit.block.BlockFace attachedFace) Sets which face is attached to the adjacent block.Methods inherited from class net.glowstone.block.blocktype.BlockNeedsAttached
canAttachTo, canPlaceAt, dropMe, onNearBlockChanged, updatePhysicsAfterEvent
Methods inherited from class net.glowstone.block.blocktype.BlockType
afterDestroy, afterPlace, blockDestroy, blockInteract, canAbsorb, canOverride, canTickRandomly, createBlockEntity, getCastedBlockData, getDrops, getMinedDrops, getOppositeBlockFace, getPlaceAs, getPlaceSound, getPulseTickSpeed, getSoundGroup, isPulseOnce, leftClickBlock, onBlockChanged, onEntityStep, onRedstoneUpdate, placeBlock, receivePulse, requestPulse, rightClickBlock, setDrops, setPlaceSound, updateBlock, updatePhysics, warnMaterialData
Methods inherited from class net.glowstone.block.itemtype.ItemType
getContext, getMaterial, getMaterials, getMaxStackSize, rightClickAir, setMaterial, setMaxStackSize, setPlaceAs, setPlaceAs, toString
-
Constructor Details
-
BlockAttachable
public BlockAttachable()
-
-
Method Details
-
setAttachedFace
public void setAttachedFace(org.bukkit.block.BlockState state, org.bukkit.block.BlockFace attachedFace) Sets which face is attached to the adjacent block.- Parameters:
state
- this block's BlockStateattachedFace
- the face to attach
-
getAttachedFace
- Overrides:
getAttachedFace
in classBlockNeedsAttached
-