类 TripwireHook

所有已实现的接口:
Cloneable, Attachable, Directional, Redstone

@Deprecated(since="1.14.1") public class TripwireHook extends SimpleAttachableMaterialData implements Redstone
已过时。
所有 MaterialData 的用法都已弃用并可能被移除。 请使用 BlockData。
代表绊线钩。
  • 构造器详细资料

    • TripwireHook

      public TripwireHook()
      已过时。
    • TripwireHook

      @Deprecated(since="1.6.2") public TripwireHook(Material type, byte data)
      已过时。
      魔法值

      原文:Magic value

      参数:
      type - 物品类型
      data - 原始数据值
    • TripwireHook

      public TripwireHook(BlockFace dir)
      已过时。
  • 方法详细资料

    • 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

      public void setFacingDirection(BlockFace face)
      已过时。
      从接口复制的说明: Directional
      设置此方块的朝向.

      原文: Sets the direction that this block is facing in

      指定者:
      setFacingDirection 在接口中 Directional
      参数:
      face - 朝向
    • getAttachedFace

      public BlockFace 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

      指定者:
      isPowered 在接口中 Redstone
      返回:
      如果被充能则返回true, 否则返回false
    • clone

      public TripwireHook clone()
      已过时。
      覆盖:
      clone 在类中 SimpleAttachableMaterialData
    • toString

      public String toString()
      已过时。
      覆盖:
      toString 在类中 SimpleAttachableMaterialData