Package org.bukkit.material
Class Tripwire
- java.lang.Object
-
- org.bukkit.material.MaterialData
-
- org.bukkit.material.Tripwire
-
- All Implemented Interfaces:
Cloneable
public class Tripwire extends MaterialData
Represents the tripwire
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tripwireclone()booleanisActivated()Test if tripwire is currently activatedbooleanisObjectTriggering()Test if object triggering this tripwire directlyvoidsetActivated(boolean act)Set tripwire activated statevoidsetObjectTriggering(boolean trig)Set object triggering state for this tripwireStringtoString()-
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
-
-
-
Constructor Detail
-
Tripwire
public Tripwire()
-
Tripwire
@Deprecated public Tripwire(Material type, byte data)
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
-
Method Detail
-
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:
clonein classMaterialData
-
toString
public String toString()
- Overrides:
toStringin classMaterialData
-
-