Package org.bukkit.material
Class Diode
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Diode
- All Implemented Interfaces:
java.lang.Cloneable
,Directional
public class Diode extends MaterialData implements Directional
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Diode
clone()
int
getDelay()
Gets the delay of the repeater in ticksBlockFace
getFacing()
Gets the direction this block is facingvoid
setDelay(int delay)
Sets the delay of the repeatervoid
setFacingDirection(BlockFace face)
Sets the direction that this block is facing injava.lang.String
toString()
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Diode
public Diode() -
Diode
@Deprecated public Diode(int type)Deprecated.Magic value- Parameters:
type
- the raw type id
-
Diode
-
Diode
@Deprecated public Diode(int type, byte data)Deprecated.Magic value- Parameters:
type
- the raw type iddata
- the raw data value
-
Diode
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
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
Description copied from interface:Directional
Sets the direction that this block is facing in- Specified by:
setFacingDirection
in interfaceDirectional
- Parameters:
face
- The facing direction
-
getFacing
Description copied from interface:Directional
Gets the direction this block is facing- Specified by:
getFacing
in interfaceDirectional
- Returns:
- the direction this block is facing
-
toString
public java.lang.String toString()- Overrides:
toString
in classMaterialData
-
clone
- Overrides:
clone
in classMaterialData
-