接口 RedstoneWire
- 所有超级接口:
AnaloguePowerable
,BlockData
,Cloneable
'north', 'east', 'south', 'west' 代表该红石线与临近方块连接的方式.
-
嵌套类概要
-
方法概要
修饰符和类型方法说明获取该方块所有可以连接的方块朝向.查看指定方块朝向上的连接类型.void
setFace
(@NotNull BlockFace face, @NotNull RedstoneWire.Connection connection) 设置指定方块朝向上的连接类型.从接口继承的方法 org.bukkit.block.data.AnaloguePowerable
getMaximumPower, getPower, setPower
从接口继承的方法 org.bukkit.block.data.BlockData
clone, getAsString, getAsString, getLightEmission, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate
-
方法详细资料
-
getFace
查看指定方块朝向上的连接类型.原文: Checks the type of connection on the specified face.
- 参数:
face
- 目标方块朝向- 返回:
- 连接类型
-
setFace
void setFace(@NotNull @NotNull BlockFace face, @NotNull @NotNull RedstoneWire.Connection connection) 设置指定方块朝向上的连接类型.原文: Sets the type of connection on the specified face.
- 参数:
face
- 目标方块朝向connection
- 目标连接类型
-
getAllowedFaces
获取该方块所有可以连接的方块朝向.原文: Gets all of this faces which may be set on this block.
- 返回:
- 所有允许的方块朝向
-