Package org.bukkit.block.data.type
Interface CommandBlock
- All Superinterfaces:
BlockData
,Cloneable
,Directional
'conditional' denotes whether this command block is conditional or not, i.e.
will only execute if the preceding command block also executed successfully.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the value of the 'conditional' property.void
setConditional
(boolean conditional) Sets the value of the 'conditional' property.Methods inherited from interface org.bukkit.block.data.BlockData
clone, copyTo, createBlockState, getAsString, getAsString, getCollisionShape, getDestroySpeed, getDestroySpeed, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate
Methods inherited from interface org.bukkit.block.data.Directional
getFaces, getFacing, setFacing
-
Method Details
-
isConditional
boolean isConditional()Gets the value of the 'conditional' property.- Returns:
- the 'conditional' value
-
setConditional
void setConditional(boolean conditional) Sets the value of the 'conditional' property.- Parameters:
conditional
- the new 'conditional' value
-