类 Diode
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Diode
- 所有已实现的接口:
Cloneable
,Directional
,Redstone
已过时。
Represents a diode/repeater in the on or off state, with a delay and facing
in a specific direction.
-
字段概要
修饰符和类型字段说明protected static final int
已过时。protected static final BlockFace
已过时。protected static final boolean
已过时。 -
构造器概要
构造器说明Diode()
已过时。Constructs a diode switched on, with a delay of 1 and facing the default direction (north).已过时。Constructs a diode switched off, with a delay of 1 and facing the specified direction.已过时。Constructs a diode switched off, with the specified delay and facing the specified direction.已过时。Constructs a diode switched on or off, with the specified delay and facing the specified direction.已过时。已过时。Magic value -
方法概要
修饰符和类型方法说明clone()
已过时。int
getDelay()
已过时。Gets the delay of the repeater in ticks.已过时。Gets the direction this diode is facingboolean
已过时。Checks if the diode is powered.void
setDelay
(int delay) 已过时。Sets the delay of the repeater.void
setFacingDirection
(BlockFace face) 已过时。Sets the direction this diode is facing.toString()
已过时。从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
字段详细资料
-
构造器详细资料
-
Diode
public Diode()已过时。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. -
Diode
已过时。Constructs a diode switched off, with a delay of 1 and facing the specified direction.- 参数:
facingDirection
- the direction the diode is facing- 另请参阅:
-
Diode
已过时。Constructs a diode switched off, with the specified delay and facing the specified direction.- 参数:
facingDirection
- the direction the diode is facingdelay
- The number of ticks (1-4) before the diode turns on after being powered- 另请参阅:
-
Diode
已过时。Constructs a diode switched on or off, with the specified delay and facing the specified direction.- 参数:
facingDirection
- the direction the diode is facingdelay
- The number of ticks (1-4) before the diode turns on after being poweredstate
- True if the diode is in the on state- 另请参阅:
-
Diode
已过时。 -
Diode
已过时。Magic value- 参数:
type
- the typedata
- the raw data value
-
-
方法详细资料
-
setDelay
public void setDelay(int delay) 已过时。Sets the delay of the repeater.- 参数:
delay
- The new delay (1-4)
-
getDelay
public int getDelay()已过时。Gets the delay of the repeater in ticks.- 返回:
- The delay (1-4)
-
setFacingDirection
已过时。Sets the direction this diode is facing.- 指定者:
setFacingDirection
在接口中Directional
- 参数:
face
- The direction to set this diode to- 另请参阅:
-
getFacing
已过时。Gets the direction this diode is facing- 指定者:
getFacing
在接口中Directional
- 返回:
- The direction this diode is facing
- 另请参阅:
-
toString
已过时。- 覆盖:
toString
在类中MaterialData
-
clone
已过时。- 覆盖:
clone
在类中MaterialData
-
isPowered
public boolean isPowered()已过时。Checks if the diode is powered.
-
BlockData
.