类 Lever
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SimpleAttachableMaterialData
org.bukkit.material.Lever
- 所有已实现的接口:
Cloneable
,Attachable
,Directional
,Redstone
代表拉杆
-
构造器概要
-
方法概要
修饰符和类型方法说明clone()
获取这个方块附着的朝向.boolean
获取这个拉杆是否被充能.void
setFacingDirection
(BlockFace face) 设置拉杆被指向的方向.void
setPowered
(boolean isPowered) 设置拉杆是否被充能.toString()
从类继承的方法 org.bukkit.material.SimpleAttachableMaterialData
getFacing
从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
Lever
public Lever() -
Lever
已过时。不安全的参数- 参数:
type
- the raw type id
-
Lever
-
Lever
已过时。不安全的参数- 参数:
type
- the raw type iddata
- the raw data value
-
Lever
已过时。不安全的参数- 参数:
type
- the typedata
- the raw data value
-
-
方法详细资料
-
isPowered
public boolean isPowered()获取这个拉杆是否被充能.原文:Gets the current state of this Material, indicating if it's powered or unpowered
-
setPowered
public void setPowered(boolean isPowered) 设置拉杆是否被充能.原文:Set this lever to be powered or not.
- 参数:
isPowered
- 拉杆是否被充能
-
getAttachedFace
获取这个方块附着的朝向.原文:Gets the face that this block is attached on
- 指定者:
getAttachedFace
在接口中Attachable
- 返回:
- 附着的朝向
-
setFacingDirection
设置拉杆被指向的方向.原文:Sets the direction this lever is pointing in
- 指定者:
setFacingDirection
在接口中Directional
- 参数:
face
- 这个方块的朝向
-
toString
- 覆盖:
toString
在类中SimpleAttachableMaterialData
-
clone
- 覆盖:
clone
在类中SimpleAttachableMaterialData
-