接口 CommandBlock
- 所有超级接口:
BlockData
,Cloneable
,Directional
'conditional' 数据值表示触发此命令方块是否需要条件,
换句话说只有在此命令方块前的命令方块执行成功时才会触发本命令方块.
-
方法概要
修饰符和类型方法说明boolean
获取 'conditional' 数据值.void
setConditional
(boolean conditional) 设置 'conditional' 数据值.从接口继承的方法 org.bukkit.block.data.BlockData
clone, copyTo, createBlockState, getAsString, getAsString, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate
从接口继承的方法 org.bukkit.block.data.Directional
getFaces, getFacing, setFacing
-
方法详细资料
-
isConditional
boolean isConditional()获取 'conditional' 数据值.原文: Gets the value of the 'conditional' property.
- 返回:
- 'conditional' 数据值
-
setConditional
void setConditional(boolean conditional) 设置 'conditional' 数据值.原文: Sets the value of the 'conditional' property.
- 参数:
conditional
- 'conditional' 数据值
-