public class Button extends SimpleAttachableMaterialData implements Redstone
コンストラクタと説明 |
---|
Button() |
Button(int type)
非推奨です。
Magic value
|
Button(int type,
byte data)
非推奨です。
Magic value
|
Button(Material type) |
Button(Material type,
byte data)
非推奨です。
Magic value
|
修飾子とタイプ | メソッドと説明 |
---|---|
Button |
clone() |
BlockFace |
getAttachedFace()
Gets the face that this block is attached on
|
boolean |
isPowered()
Gets the current state of this Material, indicating if it's powered or
unpowered
|
void |
setFacingDirection(BlockFace face)
Sets the direction this button is pointing toward
|
void |
setPowered(boolean bool)
Sets the current state of this button
|
String |
toString() |
getFacing
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public Button()
@Deprecated public Button(int type)
type
- the typepublic Button(Material type)
@Deprecated public Button(int type, byte data)
type
- the raw type iddata
- the raw data value@Deprecated public Button(Material type, byte data)
type
- the typedata
- the raw data valuepublic boolean isPowered()
public void setPowered(boolean bool)
bool
- whether or not the button is poweredpublic BlockFace getAttachedFace()
getAttachedFace
インタフェース内 Attachable
public void setFacingDirection(BlockFace face)
setFacingDirection
インタフェース内 Directional
face
- The facing directionpublic String toString()
toString
クラス内 SimpleAttachableMaterialData
public Button clone()
clone
クラス内 SimpleAttachableMaterialData
Copyright © 2016. All rights reserved.