Package org.bukkit.material
Class Rails
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Rails
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
ExtendedRails
Deprecated, for removal: This API element is subject to removal in a future version.
Represents minecart rails.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated, for removal: This API element is subject to removal in a future version.protected byte
Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.boolean
isCurve()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.void
setDirection
(BlockFace face, boolean isOnSlope) Deprecated, for removal: This API element is subject to removal in a future version.Set the direction of these trackstoString()
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Rails
public Rails()Deprecated, for removal: This API element is subject to removal in a future version. -
Rails
Deprecated, for removal: This API element is subject to removal in a future version. -
Rails
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
isOnSlope
public boolean isOnSlope()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- the whether this track is set on a slope
-
isCurve
public boolean isCurve()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- the whether this track is set as a curve
-
getDirection
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- the direction these tracks are set
Note that tracks are bidirectional and that the direction returned is the ascending direction if the track is set on a slope. If it is set as a curve, the corner of the track is returned.
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toString
in classMaterialData
-
getConvertedData
Deprecated.Magic valueReturn the data without the extended properties used byPoweredRail
andDetectorRail
. Overridden inExtendedRails
- Returns:
- the data without the extended part
-
setDirection
Deprecated, for removal: This API element is subject to removal in a future version.Set the direction of these tracksNote that tracks are bidirectional and that the direction returned is the ascending direction if the track is set on a slope. If it is set as a curve, the corner of the track should be supplied.
- Parameters:
face
- the direction the track should be facingisOnSlope
- whether or not the track should be on a slope
-
clone
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
clone
in classMaterialData
-
BlockData
.