public class Diode extends MaterialData implements Directional, Redstone
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected static int |
DEFAULT_DELAY |
protected static BlockFace |
DEFAULT_DIRECTION |
protected static boolean |
DEFAULT_STATE |
| コンストラクタと説明 |
|---|
Diode()
Constructs a diode switched on, with a delay of 1 and facing the default
direction (north).
|
Diode(BlockFace facingDirection)
Constructs a diode switched off, with a delay of 1 and facing the
specified direction.
|
Diode(BlockFace facingDirection,
int delay)
Constructs a diode switched off, with the specified delay and facing the
specified direction.
|
Diode(BlockFace facingDirection,
int delay,
boolean state)
Constructs a diode switched on or off, with the specified delay and
facing the specified direction.
|
Diode(int type)
非推奨です。
Magic value
|
Diode(int type,
byte data)
非推奨です。
Magic value
|
Diode(Material type) |
Diode(Material type,
byte data)
非推奨です。
Magic value
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Diode |
clone() |
int |
getDelay()
Gets the delay of the repeater in ticks.
|
BlockFace |
getFacing()
Gets the direction this diode is facing
|
boolean |
isPowered()
Checks if the diode is powered.
|
void |
setDelay(int delay)
Sets the delay of the repeater.
|
void |
setFacingDirection(BlockFace face)
Sets the direction this diode is facing.
|
String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackprotected static final BlockFace DEFAULT_DIRECTION
protected static final int DEFAULT_DELAY
protected static final boolean DEFAULT_STATE
public Diode()
public Diode(BlockFace facingDirection)
facingDirection - the direction the diode is facingBlockFacepublic Diode(BlockFace facingDirection, int delay)
facingDirection - the direction the diode is facingdelay - The number of ticks (1-4) before the diode turns on after
being poweredBlockFacepublic Diode(BlockFace facingDirection, int delay, boolean state)
facingDirection - the direction the diode is facingdelay - The number of ticks (1-4) before the diode turns on after
being poweredstate - True if the diode is in the on stateBlockFace@Deprecated public Diode(int type)
type - the raw type idpublic Diode(Material type)
@Deprecated public Diode(int type, byte data)
type - the raw type iddata - the raw data value@Deprecated public Diode(Material type, byte data)
type - the typedata - the raw data valuepublic void setDelay(int delay)
delay - The new delay (1-4)public int getDelay()
public void setFacingDirection(BlockFace face)
setFacingDirection インタフェース内 Directionalface - The direction to set this diode toBlockFacepublic BlockFace getFacing()
getFacing インタフェース内 DirectionalBlockFacepublic String toString()
toString クラス内 MaterialDatapublic Diode clone()
clone クラス内 MaterialDataCopyright © 2016. All rights reserved.