public class Diode extends MaterialData implements Directional
| Constructor and Description | 
|---|
| Diode() | 
| Diode(int type)Deprecated. 
 Magic value | 
| Diode(int type,
     byte data)Deprecated. 
 Magic value | 
| Diode(Material type) | 
| Diode(Material type,
     byte data)Deprecated. 
 Magic value | 
| Modifier and Type | Method and Description | 
|---|---|
| Diode | clone() | 
| int | getDelay()Gets the delay of the repeater in ticks | 
| BlockFace | getFacing()Gets the direction this block is facing | 
| void | setDelay(int delay)Sets the delay of the repeater | 
| void | setFacingDirection(BlockFace face)Sets the direction that this block is facing in | 
| String | toString() | 
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackpublic Diode()
@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)
DirectionalsetFacingDirection in interface Directionalface - The facing directionpublic BlockFace getFacing()
DirectionalgetFacing in interface Directionalpublic String toString()
toString in class MaterialDatapublic Diode clone()
clone in class MaterialDataCopyright © 2015. All rights reserved.