Class Tripwire

java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Tripwire
All Implemented Interfaces:
java.lang.Cloneable

public class Tripwire
extends MaterialData
Represents the tripwire
  • Constructor Details

    • Tripwire

      public Tripwire()
    • Tripwire

      @Deprecated public Tripwire​(int type)
      Deprecated.
      Magic value
      Parameters:
      type - the raw type id
    • Tripwire

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

    • isActivated

      public boolean isActivated()
      Test if tripwire is currently activated
      Returns:
      true if activated, false if not
    • setActivated

      public void setActivated​(boolean act)
      Set tripwire activated state
      Parameters:
      act - - true if activated, false if not
    • isObjectTriggering

      public boolean isObjectTriggering()
      Test if object triggering this tripwire directly
      Returns:
      true if object activating tripwire, false if not
    • setObjectTriggering

      public void setObjectTriggering​(boolean trig)
      Set object triggering state for this tripwire
      Parameters:
      trig - - true if object activating tripwire, false if not
    • clone

      public Tripwire clone()
      Overrides:
      clone in class MaterialData
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class MaterialData