org.bukkit.material
Class PoweredRail

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.Rails
          extended by org.bukkit.material.ExtendedRails
              extended by org.bukkit.material.PoweredRail
All Implemented Interfaces:
Cloneable, Redstone

public class PoweredRail
extends ExtendedRails
implements Redstone

Represents a powered rail


Constructor Summary
PoweredRail()
           
PoweredRail(int type)
           
PoweredRail(int type, byte data)
           
PoweredRail(Material type)
           
PoweredRail(Material type, byte data)
           
 
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.
 
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, getItemTypeId, hashCode, setData, toItemStack, toItemStack
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.