类 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
已过时。
代表绊线钩。
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明clone()已过时。已过时。获取此方块附着的面.boolean已过时。测试钩子当前是否被激活。boolean已过时。测试绊线是否已连接。boolean已过时。获取此材料的当前状态, 表示其是否被充能.voidsetActivated(boolean act) 已过时。设置钩子的激活状态。voidsetConnected(boolean connected) 已过时。设置绊线的连接状态。voidsetFacingDirection(BlockFace face) 已过时。设置此方块的朝向.toString()已过时。从类继承的方法 org.bukkit.material.SimpleAttachableMaterialData
getFacing从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
TripwireHook
public TripwireHook()已过时。 -
TripwireHook
已过时。魔法值原文:Magic value
- 参数:
type- 物品类型data- 原始数据值
-
TripwireHook
已过时。
-
-
方法详细资料
-
isConnected
public boolean isConnected()已过时。测试绊线是否已连接。- 返回:
- 如果已连接则返回 true,否则返回 false
原文:Test if tripwire is connected
-
setConnected
public void setConnected(boolean connected) 已过时。设置绊线的连接状态。- 参数:
connected- - 如果已连接则为 true,否则为 false原文:Set tripwire connection state
-
isActivated
public boolean isActivated()已过时。测试钩子当前是否被激活。- 返回:
- 如果被激活则返回 true,否则返回 false
原文:Test if hook is currently activated
-
setActivated
public void setActivated(boolean act) 已过时。设置钩子的激活状态。- 参数:
act- - 如果被激活则为 true,否则为 false原文:Set hook activated state
-
setFacingDirection
已过时。从接口复制的说明:Directional设置此方块的朝向.原文: Sets the direction that this block is facing in
- 指定者:
setFacingDirection在接口中Directional- 参数:
face- 朝向
-
getAttachedFace
已过时。从接口复制的说明:Attachable获取此方块附着的面.原文: Gets the face that this block is attached on
- 指定者:
getAttachedFace在接口中Attachable- 返回:
- 附着的面
-
isPowered
public boolean isPowered()已过时。从接口复制的说明:Redstone获取此材料的当前状态, 表示其是否被充能.原文: Gets the current state of this Material, indicating if it's powered or unpowered
-
clone
已过时。- 覆盖:
clone在类中SimpleAttachableMaterialData
-
toString
已过时。- 覆盖:
toString在类中SimpleAttachableMaterialData
-
BlockData。