类 Lever
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SimpleAttachableMaterialData
org.bukkit.material.Lever
- 所有已实现的接口:
Cloneable,Attachable,Directional,Redstone
@Deprecated(since="1.14.1")
public class Lever
extends SimpleAttachableMaterialData
implements Redstone
已过时。
代表一个拉杆
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明clone()已过时。已过时。获取此方块所附着的面boolean已过时。获取此材质的当前状态,指示其是否已通电voidsetFacingDirection(BlockFace face) 已过时。设置此拉杆指向的方向voidsetPowered(boolean isPowered) 已过时。设置此拉杆是否通电。toString()已过时。从类继承的方法 org.bukkit.material.SimpleAttachableMaterialData
getFacing从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
Lever
public Lever()已过时。 -
Lever
已过时。 -
Lever
已过时。魔法值- 参数:
type- 类型data- 原始数据值
-
-
方法详细资料
-
isPowered
public boolean isPowered()已过时。获取此材质的当前状态,指示其是否已通电 -
setPowered
public void setPowered(boolean isPowered) 已过时。设置此拉杆是否通电。- 参数:
isPowered- 拉杆是否应该通电原文:Set this lever to be powered or not.
-
getAttachedFace
已过时。获取此方块所附着的面- 指定者:
getAttachedFace在接口中Attachable- 返回:
- 附着的BlockFace
原文:Gets the face that this block is attached on
-
setFacingDirection
已过时。设置此拉杆指向的方向原文:Sets the direction this lever is pointing in
- 指定者:
setFacingDirection在接口中Directional- 参数:
face- 朝向
-
toString
已过时。- 覆盖:
toString在类中SimpleAttachableMaterialData
-
clone
已过时。- 覆盖:
clone在类中SimpleAttachableMaterialData
-
BlockData。