接口 Repeater
- 所有超级接口:
BlockData
,Cloneable
,Directional
,Powerable
'delay' 为中继器传递信号的延迟, 即在当前信号传递过来后, 等待多少刻再激活自身以传递信号到下一个方块.
延迟不可低于
'locked' 值表示中继器是否处于锁存状态.
处于锁存状态的中继器在状态解除之前不会变更它的输出信号. 在游戏中, 从侧面对中继器充能以锁存它.
延迟不可低于
getMinimumDelay()
也不可高于 getMaximumDelay()
.
'locked' 值表示中继器是否处于锁存状态.
处于锁存状态的中继器在状态解除之前不会变更它的输出信号. 在游戏中, 从侧面对中继器充能以锁存它.
-
方法概要
从接口继承的方法 org.bukkit.block.data.BlockData
clone, getAsString, getAsString, getLightEmission, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate
从接口继承的方法 org.bukkit.block.data.Directional
getFaces, getFacing, setFacing
从接口继承的方法 org.bukkit.block.data.Powerable
isPowered, setPowered
-
方法详细资料
-
getDelay
int getDelay()获取 'delay' 属性的值.原文: Gets the value of the 'delay' property.
- 返回:
- 属性 'delay' 的值
-
setDelay
void setDelay(int delay) 设置 'delay' 属性的值.原文: Sets the value of the 'delay' property.
- 参数:
delay
- 新的 'delay' 属性值
-
getMinimumDelay
int getMinimumDelay()获取 'delay' 属性所允许的最小值.原文: Gets the minimum allowed value of the 'delay' property.
- 返回:
- 最小 'delay' 属性值
-
getMaximumDelay
int getMaximumDelay()获取 'delay' 属性所允许的最大值.原文: Gets the maximum allowed value of the 'delay' property.
- 返回:
- 最大 'delay' 属性值
-
isLocked
boolean isLocked()获取 'locked' 属性的值.原文: Gets the value of the 'locked' property.
- 返回:
- 属性 'locked' 的值.
-
setLocked
void setLocked(boolean locked) 设置 'locked' 属性的值.原文: Sets the value of the 'locked' property.
- 参数:
locked
- 新的 'locked' 属性值
-