类 TripwireHook
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SimpleAttachableMaterialData
org.bukkit.material.TripwireHook
- 所有已实现的接口:
Cloneable,Attachable,Directional,Redstone
@Deprecated(since="1.14.1")
public class TripwireHook
extends SimpleAttachableMaterialData
implements Redstone
已过时。
Represents the tripwire hook
-
构造器概要
构造器构造器说明已过时。TripwireHook(BlockFace dir) 已过时。TripwireHook(Material type, byte data) 已过时。Magic value -
方法概要
修饰符和类型方法说明clone()已过时。已过时。Gets the face that this block is attached onboolean已过时。Test if hook is currently activatedboolean已过时。Test if tripwire is connectedboolean已过时。Gets the current state of this Material, indicating if it's powered or unpoweredvoidsetActivated(boolean act) 已过时。Set hook activated statevoidsetConnected(boolean connected) 已过时。Set tripwire connection statevoidsetFacingDirection(BlockFace face) 已过时。Sets the direction that this block is facing intoString()已过时。从类继承的方法 org.bukkit.material.SimpleAttachableMaterialData
getFacing从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
TripwireHook
public TripwireHook()已过时。 -
TripwireHook
已过时。Magic value- 参数:
type- the typedata- the raw data value
-
TripwireHook
已过时。
-
-
方法详细资料
-
isConnected
public boolean isConnected()已过时。Test if tripwire is connected- 返回:
- true if connected, false if not
-
setConnected
public void setConnected(boolean connected) 已过时。Set tripwire connection state- 参数:
connected- - true if connected, false if not
-
isActivated
public boolean isActivated()已过时。Test if hook is currently activated- 返回:
- true if activated, false if not
-
setActivated
public void setActivated(boolean act) 已过时。Set hook activated state- 参数:
act- - true if activated, false if not
-
setFacingDirection
已过时。从接口复制的说明:DirectionalSets the direction that this block is facing in- 指定者:
setFacingDirection在接口中Directional- 参数:
face- The facing direction
-
getAttachedFace
已过时。从接口复制的说明:AttachableGets the face that this block is attached on- 指定者:
getAttachedFace在接口中Attachable- 返回:
- BlockFace attached to
-
isPowered
public boolean isPowered()已过时。从接口复制的说明:RedstoneGets the current state of this Material, indicating if it's powered or unpowered -
clone
已过时。- 覆盖:
clone在类中SimpleAttachableMaterialData
-
toString
已过时。- 覆盖:
toString在类中SimpleAttachableMaterialData
-
BlockData.