public class PoweredRail extends ExtendedRails implements Redstone
| 构造器和说明 |
|---|
PoweredRail() |
PoweredRail(int type)
已过时。
不安全的参数
|
PoweredRail(int type,
byte data)
已过时。
不安全的参数
|
PoweredRail(Material type) |
PoweredRail(Material type,
byte data)
已过时。
不安全的参数
|
| 限定符和类型 | 方法和说明 |
|---|---|
PoweredRail |
clone() |
boolean |
isPowered()
获取这个充能铁轨是否充能.
|
void |
setPowered(boolean isPowered)
设置这个充能铁轨是否充能.
|
getConvertedData, isCurve, setDirectiongetDirection, isOnSlope, toStringequals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackpublic PoweredRail()
@Deprecated public PoweredRail(int type)
type - the raw type idpublic PoweredRail(Material type)
@Deprecated
public PoweredRail(int type,
byte data)
type - the raw type iddata - the raw data value@Deprecated public PoweredRail(Material type, byte data)
type - the typedata - the raw data valuepublic void setPowered(boolean isPowered)
原文:Set whether this PoweredRail should be powered or not.
isPowered - 这个充能铁轨是否充能public PoweredRail clone()
clone 在类中 ExtendedRails