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:
- Cloneable, Redstone
public class PoweredRail
- extends ExtendedRails
- implements Redstone
Represents a powered rail
Method Summary |
PoweredRail |
clone()
|
boolean |
isPowered()
Gets the current state of this Material, indicating if it's powered or
unpowered |
void |
setPowered(boolean isPowered)
Set whether this PoweredRail should be powered or not. |
PoweredRail
public PoweredRail()
PoweredRail
public PoweredRail(int type)
PoweredRail
public PoweredRail(Material type)
PoweredRail
public PoweredRail(int type,
byte data)
PoweredRail
public PoweredRail(Material type,
byte data)
isPowered
public boolean isPowered()
- Description copied from interface:
Redstone
- Gets the current state of this Material, indicating if it's powered or
unpowered
- Specified by:
isPowered
in interface Redstone
- Returns:
- true if powered, otherwise false
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
public PoweredRail clone()
- Overrides:
clone
in class ExtendedRails
Copyright © 2013. All Rights Reserved.