类 TripwireHook

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

@Deprecated public class TripwireHook extends SimpleAttachableMaterialData implements Redstone
已过时。
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
Represents the tripwire hook
  • 构造器详细资料

    • TripwireHook

      public TripwireHook()
      已过时。
    • TripwireHook

      @Deprecated public TripwireHook(Material type, byte data)
      已过时。
      Magic value
      参数:
      type - the type
      data - the raw data value
    • TripwireHook

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

    • 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

      public void setFacingDirection(BlockFace face)
      已过时。
      从接口复制的说明: Directional
      Sets the direction that this block is facing in
      指定者:
      setFacingDirection 在接口中 Directional
      参数:
      face - The facing direction
    • getAttachedFace

      public BlockFace getAttachedFace()
      已过时。
      从接口复制的说明: Attachable
      Gets the face that this block is attached on
      指定者:
      getAttachedFace 在接口中 Attachable
      返回:
      BlockFace attached to
    • isPowered

      public boolean isPowered()
      已过时。
      从接口复制的说明: Redstone
      Gets the current state of this Material, indicating if it's powered or unpowered
      指定者:
      isPowered 在接口中 Redstone
      返回:
      true if powered, otherwise false
    • clone

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

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