类 Diode
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Diode
- 所有已实现的接口:
Cloneable
,Directional
,Redstone
代表开启或关闭状态的红石中继器.
-
字段概要
修饰符和类型字段说明protected static final int
protected static final BlockFace
protected static final boolean
-
构造器概要
-
方法概要
从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
字段详细资料
-
构造器详细资料
-
Diode
public Diode()构造一个开启状态的、1延迟、默认朝向(北)的红石中继器. 默认情况下这个构造器创建的是开启状态的红石中继器,为了兼容之前的实现.原文: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
构造一个关闭状态的、1延迟、指定朝向的红石中继器.原文:Constructs a diode switched off, with a delay of 1 and facing the specified direction.
- 参数:
facingDirection
- 朝向- 另请参阅:
-
Diode
构造一个关闭状态的、指定延迟、指定朝向的红石中继器.原文:Constructs a diode switched off, with the specified delay and facing the specified direction.
- 参数:
facingDirection
- 朝向delay
- 红石刻 (1-4)- 另请参阅:
-
Diode
构造一个开启或关闭状态的、指定延迟、指定朝向的红石中继器.原文:Constructs a diode switched on or off, with the specified delay and facing the specified direction.
- 参数:
facingDirection
- 朝向delay
- 刻 (1-4)state
- 激活状态- 另请参阅:
-
Diode
已过时。不安全的参数- 参数:
type
- the raw type id
-
Diode
-
Diode
已过时。不安全的参数- 参数:
type
- the raw type iddata
- the raw data value
-
Diode
已过时。不安全的参数- 参数:
type
- the typedata
- the raw data value
-
-
方法详细资料
-
setDelay
public void setDelay(int delay) 设置这个红石中继器的延迟.原文:Sets the delay of the repeater.
- 参数:
delay
- 延迟 (1-4)
-
getDelay
public int getDelay()获取这个红石中继器的延迟 (以刻为单位).原文:Gets the delay of the repeater in ticks.
- 返回:
- 延迟 (1-4)
-
setFacingDirection
设置这个红石中继器的朝向.原文:Sets the direction this diode is facing.
- 指定者:
setFacingDirection
在接口中Directional
- 参数:
face
- 朝向- 另请参阅:
-
getFacing
获取这个红石中继器的朝向.原文:Gets the direction this diode is facing
- 指定者:
getFacing
在接口中Directional
- 返回:
- 这个红石中继器的朝向
- 另请参阅:
-
toString
- 覆盖:
toString
在类中MaterialData
-
clone
- 覆盖:
clone
在类中MaterialData
-
isPowered
public boolean isPowered()检测这个红石中继器是否充能.原文:Checks if the diode is powered.
-