类 Diode
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Diode
- 所有已实现的接口:
Cloneable,Directional,Redstone
@Deprecated(since="1.14.1")
public class Diode
extends MaterialData
implements Directional, Redstone
已过时。
表示一个处于开启或关闭状态的二极管/中继器,具有延迟并面向特定方向。
-
字段概要
字段修饰符和类型字段说明protected static final int已过时。protected static final BlockFace已过时。protected static final boolean已过时。 -
构造器概要
构造器构造器说明Diode()已过时。构造一个开启的二极管,延迟为1且面向默认方向(北)。已过时。构造一个关闭的二极管,延迟为1且面向指定方向。已过时。构造一个关闭的二极管,具有指定延迟并面向指定方向。已过时。构造一个开启或关闭的二极管,具有指定延迟并面向指定方向。已过时。已过时。不安全的参数 -
方法概要
从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
字段详细资料
-
构造器详细资料
-
Diode
public Diode()已过时。构造一个开启的二极管,延迟为1且面向默认方向(北)。原文:Constructs a diode switched on, with a delay of 1 and facing the default direction (north).
默认情况下, 此构造函数创建一个开启的二极管, 以保持与过去实现的向后兼容性.
-
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- 二极管被充能后开启所需的 tick 数(1-4)- 另请参阅:
-
Diode
已过时。构造一个开启或关闭的二极管,具有指定延迟并面向指定方向。原文:Constructs a diode switched on or off, with the specified delay and facing the specified direction.
- 参数:
facingDirection- 二极管面向的方向delay- 二极管被充能后开启所需的 tick 数(1-4)state- 二极管是否处于开启状态- 另请参阅:
-
Diode
已过时。 -
Diode
已过时。不安全的参数- 参数:
type- 类型data- 原始数据值
-
-
方法详细资料
-
setDelay
public void setDelay(int delay) 已过时。设置中继器的延迟。原文:Sets the delay of the repeater.
- 参数:
delay- 新延迟(1-4)
-
getDelay
public int getDelay()已过时。获取中继器的延迟(以tick为单位)。原文: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.
-
BlockData。