Package net.glowstone.block.blocktype
Class BlockClimbable
java.lang.Object
net.glowstone.block.itemtype.ItemType
net.glowstone.block.blocktype.BlockType
net.glowstone.block.blocktype.BlockClimbable
- Direct Known Subclasses:
BlockLadder
,BlockVine
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canPlaceAt
(GlowPlayer player, GlowBlock block, org.bukkit.block.BlockFace against) Check whether the block can be placed at the given location.protected boolean
isTargetOccluding
(GlowBlock block, org.bukkit.block.BlockFace face) protected boolean
isTargetOccluding
(GlowBlockState state, org.bukkit.block.BlockFace face) 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, onNearBlockChanged, onRedstoneUpdate, placeBlock, receivePulse, requestPulse, rightClickBlock, setDrops, setPlaceSound, updateBlock, updatePhysics, updatePhysicsAfterEvent, warnMaterialData
Methods inherited from class net.glowstone.block.itemtype.ItemType
getContext, getMaterial, getMaterials, getMaxStackSize, rightClickAir, setMaterial, setMaxStackSize, setPlaceAs, setPlaceAs, toString
-
Constructor Details
-
BlockClimbable
public BlockClimbable()
-
-
Method Details
-
canPlaceAt
Description copied from class:BlockType
Check whether the block can be placed at the given location.- Overrides:
canPlaceAt
in classBlockType
- Parameters:
player
- The player who placed the block.block
- The location the block is being placed at.against
- The face the block is being placed against.- Returns:
- Whether the placement is valid.
-
isTargetOccluding
-
isTargetOccluding
-