Package org.bukkit.material
Class PoweredRail
- java.lang.Object
-
- org.bukkit.material.MaterialData
-
- org.bukkit.material.Rails
-
- org.bukkit.material.ExtendedRails
-
- org.bukkit.material.PoweredRail
-
@Deprecated public class PoweredRail extends ExtendedRails implements Redstone
Deprecated.all usage of MaterialData is deprecated and subject to removal. UseBlockData
.Represents a powered rail
-
-
Constructor Summary
Constructors Constructor Description PoweredRail()
Deprecated.PoweredRail(Material type)
Deprecated.PoweredRail(Material type, byte data)
Deprecated.Magic value
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PoweredRail
clone()
Deprecated.boolean
isPowered()
Deprecated.Gets the current state of this Material, indicating if it's powered or unpoweredvoid
setPowered(boolean isPowered)
Deprecated.Set whether this PoweredRail should be powered or not.-
Methods inherited from class org.bukkit.material.ExtendedRails
getConvertedData, isCurve, setDirection
-
Methods 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 Detail
-
PoweredRail
public PoweredRail()
Deprecated.
-
PoweredRail
public PoweredRail(Material type)
Deprecated.
-
PoweredRail
@Deprecated public PoweredRail(Material type, byte data)
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Detail
-
isPowered
public boolean isPowered()
Deprecated.Description copied from interface:Redstone
Gets the current state of this Material, indicating if it's powered or unpowered
-
setPowered
public void setPowered(boolean isPowered)
Deprecated.Set whether this PoweredRail should be powered or not.- Parameters:
isPowered
- whether or not the rail is powered
-
clone
public PoweredRail clone()
Deprecated.- Overrides:
clone
in classExtendedRails
-
-