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