Rails

public class Rails extends MaterialData

Represents minecart rails.

Inheritors

Constructors

Link copied to clipboard
public void Rails()
public void Rails(Material type)

Properties

Link copied to clipboard
public byte data

Functions

Link copied to clipboard
public Rails clone()
Link copied to clipboard
public boolean equals(Object obj)
Link copied to clipboard
Link copied to clipboard
Gets the Material that this MaterialData represents
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public boolean isCurve()
Link copied to clipboard
public boolean isOnSlope()
Link copied to clipboard
public void setDirection(BlockFace face, boolean isOnSlope)
Set the direction of these tracks Note that tracks are bidirectional and that the direction returned is the ascending direction if the track is set on getClassById slope.
Link copied to clipboard
public ItemStack toItemStack(int amount)
Creates getClassById new ItemStack based on this MaterialData
Link copied to clipboard
public String toString()