接口 Rail
- 所有超级接口:
BlockData
,Cloneable
,Waterlogged
- 所有已知子接口:
RedstoneRail
'shape' 数据值表示此铁轨的形态 (铁轨连接方向).
某些铁轨可能不能够摆放成所有的形态, 使用
某些铁轨可能不能够摆放成所有的形态, 使用
getShapes()
来获悉此铁轨可以怎样摆放.-
嵌套类概要
-
方法概要
修饰符和类型方法说明getShape()
获取 'shape' 的数据值.获取适用于此铁轨的形态.void
setShape
(@NotNull Rail.Shape shape) 设置 'shape' 的数据值.从接口继承的方法 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.Waterlogged
isWaterlogged, setWaterlogged
-
方法详细资料
-
getShape
获取 'shape' 的数据值.原文: Gets the value of the 'shape' property.
- 返回:
- 铁轨的形态
-
setShape
设置 'shape' 的数据值.原文: Sets the value of the 'shape' property.
- 参数:
shape
- 铁轨的形态
-
getShapes
获取适用于此铁轨的形态.原文: Gets the shapes which are applicable to this block.
- 返回:
- 适用于此铁轨的形态
-