Package org.bukkit.material
Class Diode
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Diode
- All Implemented Interfaces:
- Cloneable,- Directional,- Redstone
@Deprecated(since="1.13",
            forRemoval=true)
public class Diode
extends MaterialData
implements Directional, Redstone
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a diode/repeater in the on or off state, with a delay and facing
 in a specific direction.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final intDeprecated, for removal: This API element is subject to removal in a future version.protected static final BlockFaceDeprecated, for removal: This API element is subject to removal in a future version.protected static final booleanDeprecated, for removal: This API element is subject to removal in a future version.
- 
Constructor SummaryConstructorsConstructorDescriptionDiode()Deprecated, for removal: This API element is subject to removal in a future version.Constructs a diode switched on, with a delay of 1 and facing the default direction (north).Deprecated, for removal: This API element is subject to removal in a future version.Constructs a diode switched off, with a delay of 1 and facing the specified direction.Deprecated, for removal: This API element is subject to removal in a future version.Constructs a diode switched off, with the specified delay and facing the specified direction.Deprecated, for removal: This API element is subject to removal in a future version.Constructs a diode switched on or off, with the specified delay and facing the specified direction.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic value
- 
Method SummaryModifier and TypeMethodDescriptionclone()Deprecated, for removal: This API element is subject to removal in a future version.intgetDelay()Deprecated, for removal: This API element is subject to removal in a future version.Gets the delay of the repeater in ticks.Deprecated, for removal: This API element is subject to removal in a future version.Gets the direction this diode is facingbooleanDeprecated, for removal: This API element is subject to removal in a future version.Checks if the diode is powered.voidsetDelay(int delay) Deprecated, for removal: This API element is subject to removal in a future version.Sets the delay of the repeater.voidsetFacingDirection(BlockFace face) Deprecated, for removal: This API element is subject to removal in a future version.Sets the direction this diode is facing.toString()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.bukkit.material.MaterialDataequals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
- 
Field Details- 
DEFAULT_DIRECTIONDeprecated, for removal: This API element is subject to removal in a future version.
- 
DEFAULT_DELAYprotected static final int DEFAULT_DELAYDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
 
- 
DEFAULT_STATEprotected static final boolean DEFAULT_STATEDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
 
 
- 
- 
Constructor Details- 
Diodepublic Diode()Deprecated, for removal: This API element is subject to removal in a future version.Constructs a diode switched on, with a delay of 1 and facing the default direction (north). By default this constructor creates a diode that is switched on for backwards compatibility with past implementations.
- 
DiodeDeprecated, for removal: This API element is subject to removal in a future version.Constructs a diode switched off, with a delay of 1 and facing the specified direction.- Parameters:
- facingDirection- the direction the diode is facing
- See Also:
 
- 
DiodeDeprecated, for removal: This API element is subject to removal in a future version.Constructs a diode switched off, with the specified delay and facing the specified direction.- Parameters:
- facingDirection- the direction the diode is facing
- delay- The number of ticks (1-4) before the diode turns on after being powered
- See Also:
 
- 
DiodeDeprecated, for removal: This API element is subject to removal in a future version.Constructs a diode switched on or off, with the specified delay and facing the specified direction.- Parameters:
- facingDirection- the direction the diode is facing
- delay- The number of ticks (1-4) before the diode turns on after being powered
- state- True if the diode is in the on state
- See Also:
 
- 
DiodeDeprecated, for removal: This API element is subject to removal in a future version.
- 
DiodeDeprecated.Magic value- Parameters:
- type- the type
- data- the raw data value
 
 
- 
- 
Method Details- 
setDelaypublic void setDelay(int delay) Deprecated, for removal: This API element is subject to removal in a future version.Sets the delay of the repeater.- Parameters:
- delay- The new delay (1-4)
 
- 
getDelaypublic int getDelay()Deprecated, for removal: This API element is subject to removal in a future version.Gets the delay of the repeater in ticks.- Returns:
- The delay (1-4)
 
- 
setFacingDirectionDeprecated, for removal: This API element is subject to removal in a future version.Sets the direction this diode is facing.- Specified by:
- setFacingDirectionin interface- Directional
- Parameters:
- face- The direction to set this diode to
- See Also:
 
- 
getFacingDeprecated, for removal: This API element is subject to removal in a future version.Gets the direction this diode is facing- Specified by:
- getFacingin interface- Directional
- Returns:
- The direction this diode is facing
- See Also:
 
- 
toStringDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- toStringin class- MaterialData
 
- 
cloneDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- clonein class- MaterialData
 
- 
isPoweredpublic boolean isPowered()Deprecated, for removal: This API element is subject to removal in a future version.Checks if the diode is powered.
 
- 
BlockData.