java.lang.Cloneable
, Redstone
public class PoweredRail extends ExtendedRails implements Redstone
Constructor | Description |
---|---|
PoweredRail() |
|
PoweredRail(Material type) |
|
PoweredRail(Material type,
byte data) |
Deprecated.
Magic value
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
getConvertedData, isCurve, setDirection
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
finalize, getClass, notify, notifyAll, wait, wait, wait
getDirection, isOnSlope, toString
public PoweredRail()
public PoweredRail(Material type)
@Deprecated public PoweredRail(Material type, byte data)
type
- the typedata
- the raw data valuepublic boolean isPowered()
Redstone
public void setPowered(boolean isPowered)
isPowered
- whether or not the rail is poweredpublic PoweredRail clone()
clone
in class ExtendedRails
Copyright © 2018. All rights reserved.