Interface Rail

All Superinterfaces:
BlockData, Cloneable, Waterlogged
All Known Subinterfaces:

public interface Rail extends Waterlogged
'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 getShapes() to get those applicable to this block.
  • Method Details

    • getShape

      @NotNull Rail.Shape getShape()
      Gets the value of the 'shape' property.
      the 'shape' value
    • setShape

      void setShape(@NotNull Rail.Shape shape)
      Sets the value of the 'shape' property.
      shape - the new 'shape' value
    • getShapes

      @NotNull Set<Rail.Shape> getShapes()
      Gets the shapes which are applicable to this block.
      the allowed 'shape' values