类 Button
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SimpleAttachableMaterialData
org.bukkit.material.Button
- 所有已实现的接口:
Cloneable,Attachable,Directional,Redstone
代表按钮
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明clone()获取这个方块附着的方向.boolean获取这个按钮的充能状态.voidsetFacingDirection(BlockFace face) 设置这个按钮所指的方向.voidsetPowered(boolean bool) 设置这个按钮的充能状态.toString()从类继承的方法 org.bukkit.material.SimpleAttachableMaterialData
getFacing从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
Button
public Button() -
Button
已过时。不安全的参数- 参数:
type- the type
-
Button
-
Button
已过时。不安全的参数- 参数:
type- the raw type iddata- the raw data value
-
Button
已过时。不安全的参数- 参数:
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 bool) 设置这个按钮的充能状态.原文:Sets the current state of this button
- 参数:
bool- 按钮的充能状态
-
getAttachedFace
获取这个方块附着的方向.原文:Gets the face that this block is attached on
- 指定者:
getAttachedFace在接口中Attachable- 返回:
- 附着的BlockFace
-
setFacingDirection
设置这个按钮所指的方向.原文:Sets the direction this button is pointing toward
- 指定者:
setFacingDirection在接口中Directional- 参数:
face- 这个方块的朝向
-
toString
- 覆盖:
toString在类中SimpleAttachableMaterialData
-
clone
- 覆盖:
clone在类中SimpleAttachableMaterialData
-