org.bukkit.material
Class Diode

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.Diode
All Implemented Interfaces:
Cloneable, Directional

public class Diode
extends MaterialData
implements Directional


Constructor Summary
Diode()
           
Diode(int type)
           
Diode(int type, byte data)
           
Diode(Material type)
           
Diode(Material type, byte data)
           
 
Method Summary
 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()
           
 
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.