Package org.bukkit.material
Class ExtendedRails
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Rails
org.bukkit.material.ExtendedRails
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
DetectorRail
,PoweredRail
Deprecated.
This is the superclass for the
DetectorRail
and PoweredRail
classes-
Constructor Summary
ConstructorDescriptionExtendedRails(Material type)
Deprecated.ExtendedRails(Material type, byte data)
Deprecated.Magic value -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated.protected byte
Deprecated.Magic valueboolean
isCurve()
Deprecated.void
setDirection(BlockFace face, boolean isOnSlope)
Deprecated.Set the direction of these tracksMethods inherited from class org.bukkit.material.Rails
getDirection, isOnSlope, toString
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
ExtendedRails
Deprecated. -
ExtendedRails
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
isCurve
public boolean isCurve()Deprecated. -
getConvertedData
Deprecated.Magic valueReturn the data without the extended properties used byPoweredRail
andDetectorRail
. Overridden inExtendedRails
- Overrides:
getConvertedData
in classRails
- Returns:
- the data without the extended part
-
setDirection
Deprecated.Description copied from class:Rails
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.
- Overrides:
setDirection
in classRails
- Parameters:
face
- the direction the track should be facingisOnSlope
- whether or not the track should be on a slope
-
clone
Deprecated.
-
BlockData
.