Class Tripwire

All Implemented Interfaces:
Cloneable

@Deprecated(forRemoval=true, since="1.13") public class Tripwire extends MaterialData
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
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Tripwire(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.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Test if tripwire is currently activated
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Test if object triggering this tripwire directly
    void
    setActivated(boolean act)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set tripwire activated state
    void
    setObjectTriggering(boolean trig)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set object triggering state for this tripwire
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    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

    • Tripwire

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

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

    • isActivated

      public boolean isActivated()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Test if tripwire 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 tripwire activated state
      Parameters:
      act - - true if activated, false if not
    • isObjectTriggering

      public boolean isObjectTriggering()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Test if object triggering this tripwire directly
      Returns:
      true if object activating tripwire, false if not
    • setObjectTriggering

      public void setObjectTriggering(boolean trig)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set object triggering state for this tripwire
      Parameters:
      trig - - true if object activating tripwire, false if not
    • clone

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

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