Package org.bukkit.block.data
Interface Rail
- All Superinterfaces:
BlockData
,Cloneable
,Waterlogged
- All Known Subinterfaces:
RedstoneRail
'shape' represents the current layout of a minecart rail.
Some types of rail may not be able to be laid out in all shapes, use
Some types of rail may not be able to be laid out in all shapes, use
getShapes()
to get those applicable to this block.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The different types of shapes a rail block can occupy. -
Method Summary
Modifier and TypeMethodDescriptiongetShape()
Gets the value of the 'shape' property.Gets the shapes which are applicable to this block.void
setShape
(@NotNull Rail.Shape shape) Sets the value of the 'shape' property.Methods inherited from interface org.bukkit.block.data.BlockData
clone, createBlockState, getAsString, getAsString, getCollisionShape, getDestroySpeed, getDestroySpeed, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate
Methods inherited from interface org.bukkit.block.data.Waterlogged
isWaterlogged, setWaterlogged
-
Method Details
-
getShape
Gets the value of the 'shape' property.- Returns:
- the 'shape' value
-
setShape
Sets the value of the 'shape' property.- Parameters:
shape
- the new 'shape' value
-
getShapes
Gets the shapes which are applicable to this block.- Returns:
- the allowed 'shape' values
-