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
- All Implemented Interfaces:
java.lang.Cloneable
,Redstone
public class PoweredRail extends ExtendedRails implements Redstone
Represents a powered rail
-
Constructor Summary
Constructors Constructor Description PoweredRail()
PoweredRail(int type)
Deprecated.Magic valuePoweredRail(int type, byte data)
Deprecated.Magic valuePoweredRail(Material type)
PoweredRail(Material type, byte data)
Deprecated.Magic value -
Method Summary
Modifier and Type Method Description PoweredRail
clone()
boolean
isPowered()
Gets the current state of this Material, indicating if it's powered or unpoweredvoid
setPowered(boolean isPowered)
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.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
PoweredRail
public PoweredRail() -
PoweredRail
@Deprecated public PoweredRail(int type)Deprecated.Magic value- Parameters:
type
- the raw type id
-
PoweredRail
-
PoweredRail
@Deprecated public PoweredRail(int type, byte data)Deprecated.Magic value- Parameters:
type
- the raw type iddata
- the raw data value
-
PoweredRail
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
isPowered
public boolean isPowered()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)Set whether this PoweredRail should be powered or not.- Parameters:
isPowered
- whether or not the rail is powered
-
clone
- Overrides:
clone
in classExtendedRails
-