Package org.bukkit.block.data
Interface Rail
- All Known Subinterfaces:
RedstoneRail
public interface Rail extends BlockData
'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
Nested Classes Modifier and Type Interface Description static class
Rail.Shape
The different types of shapes a rail block can occupy. -
Method Summary
Modifier and Type Method Description Rail.Shape
getShape()
Gets the value of the 'shape' property.Set<Rail.Shape>
getShapes()
Gets the shapes which are applicable to this block.void
setShape(Rail.Shape shape)
Sets the value of the 'shape' property.Methods inherited from interface org.bukkit.block.data.BlockData
clone, getAsString, getAsString, getMaterial, getSoundGroup, matches, merge