public class Lever extends SimpleAttachableMaterialData implements Redstone
| コンストラクタと説明 |
|---|
Lever() |
Lever(int type)
非推奨です。
Magic value
|
Lever(int type,
byte data)
非推奨です。
Magic value
|
Lever(Material type) |
Lever(Material type,
byte data)
非推奨です。
Magic value
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Lever |
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 lever is pointing in
|
void |
setPowered(boolean isPowered)
Set this lever to be powered or not.
|
String |
toString() |
getFacingequals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackpublic Lever()
@Deprecated public Lever(int type)
type - the raw type idpublic Lever(Material type)
@Deprecated public Lever(int type, byte data)
type - the raw type iddata - the raw data value@Deprecated public Lever(Material type, byte data)
type - the typedata - the raw data valuepublic boolean isPowered()
public void setPowered(boolean isPowered)
isPowered - whether the lever should be powered or notpublic BlockFace getAttachedFace()
getAttachedFace インタフェース内 Attachablepublic void setFacingDirection(BlockFace face)
setFacingDirection インタフェース内 Directionalface - The facing directionpublic String toString()
toString クラス内 SimpleAttachableMaterialDatapublic Lever clone()
clone クラス内 SimpleAttachableMaterialDataCopyright © 2016. All rights reserved.