|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.material.MaterialData
org.bukkit.material.Rails
org.bukkit.material.ExtendedRails
org.bukkit.material.PoweredRail
public class PoweredRail
Represents a powered rail
| Constructor Summary | |
|---|---|
PoweredRail()
|
|
PoweredRail(int type)
Deprecated. Magic value |
|
PoweredRail(int type,
byte data)
Deprecated. Magic value |
|
PoweredRail(Material type)
|
|
PoweredRail(Material type,
byte data)
Deprecated. Magic value |
|
| 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 |
|---|
public PoweredRail()
@Deprecated public PoweredRail(int type)
public PoweredRail(Material type)
@Deprecated
public PoweredRail(int type,
byte data)
@Deprecated
public PoweredRail(Material type,
byte data)
| Method Detail |
|---|
public boolean isPowered()
Redstone
isPowered in interface Redstonepublic void setPowered(boolean isPowered)
isPowered - whether or not the rail is poweredpublic PoweredRail clone()
clone in class ExtendedRails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||