org.bukkit.material
Class Diode
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Diode
- All Implemented Interfaces:
- Cloneable, Directional
public class Diode
- extends MaterialData
- implements Directional
Diode
public Diode()
Diode
public Diode(int type)
Diode
public Diode(Material type)
Diode
public Diode(int type,
byte data)
Diode
public Diode(Material type,
byte data)
setDelay
public void setDelay(int delay)
- Sets the delay of the repeater
- Parameters:
delay
- The new delay (1-4)
getDelay
public int getDelay()
- Gets the delay of the repeater in ticks
- Returns:
- The delay (1-4)
setFacingDirection
public void setFacingDirection(BlockFace face)
- Description copied from interface:
Directional
- Sets the direction that this block is facing in
- Specified by:
setFacingDirection
in interface Directional
- Parameters:
face
- The facing direction
getFacing
public BlockFace getFacing()
- Description copied from interface:
Directional
- Gets the direction this block is facing
- Specified by:
getFacing
in interface Directional
- Returns:
- the direction this block is facing
toString
public String toString()
- Overrides:
toString
in class MaterialData
clone
public Diode clone()
- Overrides:
clone
in class MaterialData
Copyright © 2013. All Rights Reserved.