BlockData.@Deprecated public class Diode extends MaterialData implements Directional, Redstone
| Modifier and Type | Field and Description | 
|---|---|
protected static int | 
DEFAULT_DELAY
Deprecated.  
  | 
protected static BlockFace | 
DEFAULT_DIRECTION
Deprecated.  
  | 
protected static boolean | 
DEFAULT_STATE
Deprecated.  
  | 
| Constructor and Description | 
|---|
Diode()
Deprecated.  
Constructs a diode switched on, with a delay of 1 and facing the default
 direction (north). 
 | 
Diode(BlockFace facingDirection)
Deprecated.  
Constructs a diode switched off, with a delay of 1 and facing the
 specified direction. 
 | 
Diode(BlockFace facingDirection,
     int delay)
Deprecated.  
Constructs a diode switched off, with the specified delay and facing the
 specified direction. 
 | 
Diode(BlockFace facingDirection,
     int delay,
     boolean state)
Deprecated.  
Constructs a diode switched on or off, with the specified delay and
 facing the specified direction. 
 | 
Diode(Material type)
Deprecated.  
  | 
Diode(Material type,
     byte data)
Deprecated. 
 
Magic value 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Diode | 
clone()
Deprecated.  
  | 
int | 
getDelay()
Deprecated.  
Gets the delay of the repeater in ticks. 
 | 
BlockFace | 
getFacing()
Deprecated.  
Gets the direction this diode is facing 
 | 
boolean | 
isPowered()
Deprecated.  
Checks if the diode is powered. 
 | 
void | 
setDelay(int delay)
Deprecated.  
Sets the delay of the repeater. 
 | 
void | 
setFacingDirection(BlockFace face)
Deprecated.  
Sets the direction this diode is facing. 
 | 
String | 
toString()
Deprecated.  
  | 
equals, getData, getItemType, 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 stateBlockFacepublic Diode(Material type)
@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 in interface Directionalface - The direction to set this diode toBlockFacepublic BlockFace getFacing()
getFacing in interface DirectionalBlockFacepublic String toString()
toString in class MaterialDatapublic Diode clone()
clone in class MaterialDataCopyright © 2022. All rights reserved.