Class TripwireHook

All Implemented Interfaces:
Cloneable, Attachable, Directional, Redstone

@Deprecated(forRemoval=true, since="1.13") public class TripwireHook extends SimpleAttachableMaterialData implements Redstone
Deprecated, for removal: This API element is subject to removal in a future version.
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
Represents the tripwire hook
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    TripwireHook(Material type, byte data)
    Deprecated.
    Magic value
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the face that this block is attached on
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Test if hook is currently activated
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Test if tripwire is connected
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the current state of this Material, indicating if it's powered or unpowered
    void
    setActivated(boolean act)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set hook activated state
    void
    setConnected(boolean connected)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set tripwire connection state
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the direction that this block is facing in
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class org.bukkit.material.SimpleAttachableMaterialData

    getFacing

    Methods inherited from class org.bukkit.material.MaterialData

    equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TripwireHook

      public TripwireHook()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TripwireHook

      @Deprecated public TripwireHook(Material type, byte data)
      Deprecated.
      Magic value
      Parameters:
      type - the type
      data - the raw data value
    • TripwireHook

      public TripwireHook(BlockFace dir)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • isConnected

      public boolean isConnected()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Test if tripwire is connected
      Returns:
      true if connected, false if not
    • setConnected

      public void setConnected(boolean connected)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set tripwire connection state
      Parameters:
      connected - - true if connected, false if not
    • isActivated

      public boolean isActivated()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Test if hook is currently activated
      Returns:
      true if activated, false if not
    • setActivated

      public void setActivated(boolean act)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set hook activated state
      Parameters:
      act - - true if activated, false if not
    • setFacingDirection

      public void setFacingDirection(BlockFace face)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Directional
      Sets the direction that this block is facing in
      Specified by:
      setFacingDirection in interface Directional
      Parameters:
      face - The facing direction
    • getAttachedFace

      public BlockFace getAttachedFace()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Attachable
      Gets the face that this block is attached on
      Specified by:
      getAttachedFace in interface Attachable
      Returns:
      BlockFace attached to
    • isPowered

      public boolean isPowered()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Redstone
      Gets the current state of this Material, indicating if it's powered or unpowered
      Specified by:
      isPowered in interface Redstone
      Returns:
      true if powered, otherwise false
    • clone

      public TripwireHook clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      clone in class SimpleAttachableMaterialData
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class SimpleAttachableMaterialData