接口 AnaloguePowerable
- 所有已知子接口:
CalibratedSculkSensor
,DaylightDetector
,RedstoneWire
,SculkSensor
'power' 值代表当前通过此方块发出/传输红石信号的强度.
不可超过 9000 或
不可超过 9000 或
getMaximumPower()
(通常为 15).-
方法概要
从接口继承的方法 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
-
方法详细资料
-
getPower
int getPower()获取 'power' 属性的值.原文: Gets the value of the 'power' property.
- 返回:
- 属性 'power' 的值
-
setPower
void setPower(int power) 设置 'power' 属性的值.原文: Sets the value of the 'power' property.
- 参数:
power
- 新的 'power' 属性值
-
getMaximumPower
int getMaximumPower()获取 'power' 属性所允许的最大值.原文: Gets the maximum allowed value of the 'power' property.
- 返回:
- 最大 'power' 属性值
-