类 PoweredRail
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Rails
org.bukkit.material.ExtendedRails
org.bukkit.material.PoweredRail
代表充能铁轨
-
构造器概要
构造器构造器说明PoweredRail(int type) 已过时。不安全的参数PoweredRail(int type, byte data) 已过时。不安全的参数PoweredRail(Material type) PoweredRail(Material type, byte data) 已过时。不安全的参数 -
方法概要
从类继承的方法 org.bukkit.material.ExtendedRails
getConvertedData, isCurve, setDirection从类继承的方法 org.bukkit.material.Rails
getDirection, isOnSlope, toString从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
PoweredRail
public PoweredRail() -
PoweredRail
已过时。不安全的参数- 参数:
type- the raw type id
-
PoweredRail
-
PoweredRail
已过时。不安全的参数- 参数:
type- the raw type iddata- the raw data value
-
PoweredRail
已过时。不安全的参数- 参数:
type- the typedata- the raw data value
-
-
方法详细资料
-
isPowered
public boolean isPowered()获取这个充能铁轨是否充能. -
setPowered
public void setPowered(boolean isPowered) 设置这个充能铁轨是否充能.原文:Set whether this PoweredRail should be powered or not.
- 参数:
isPowered- 这个充能铁轨是否充能
-
clone
- 覆盖:
clone在类中ExtendedRails
-