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 Diodeclone()intgetDelay()Gets the delay of the repeater in ticksBlockFacegetFacing()Gets the direction this block is facingvoidsetDelay(int delay)Sets the delay of the repeatervoidsetFacingDirection(BlockFace face)Sets the direction that this block is facing injava.lang.StringtoString()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:DirectionalSets the direction that this block is facing in- Specified by:
setFacingDirectionin interfaceDirectional- Parameters:
face- The facing direction
-
getFacing
Description copied from interface:DirectionalGets the direction this block is facing- Specified by:
getFacingin interfaceDirectional- Returns:
- the direction this block is facing
-
toString
public java.lang.String toString()- Overrides:
toStringin classMaterialData
-
clone
- Overrides:
clonein classMaterialData
-