类 TripwireHook
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SimpleAttachableMaterialData
org.bukkit.material.TripwireHook
- 所有已实现的接口:
Cloneable,Attachable,Directional,Redstone
代表绊线钩
-
构造器概要
构造器构造器说明TripwireHook(int type) 已过时。不安全的参数TripwireHook(int type, byte data) 已过时。不安全的参数TripwireHook(BlockFace dir) -
方法概要
修饰符和类型方法说明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, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
TripwireHook
public TripwireHook() -
TripwireHook
已过时。不安全的参数- 参数:
type- the raw type id
-
TripwireHook
已过时。不安全的参数- 参数:
type- the raw type iddata- the raw data value
-
TripwireHook
-
-
方法详细资料
-
isConnected
public boolean isConnected()这个绊线钩是否处于连接状态.原文:Test if tripwire is connected
- 返回:
- 绊线钩是否处于连接状态
-
setConnected
public void setConnected(boolean connected) 设置这个绊线钩的连接状态.原文:Set tripwire connection state
- 参数:
connected- 绊线钩是否处于连接状态
-
isActivated
public boolean isActivated()这个绊线钩是否被激活.原文:Test if hook is currently activated
- 返回:
- 绊线钩是否被激活
-
setActivated
public void setActivated(boolean act) 设置这个绊线钩的激活状态.原文:Set hook activated state
- 参数:
act- 绊线钩是否被激活
-
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
-