org.bukkit.material
Class Tripwire

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

public class Tripwire
extends MaterialData

Represents the tripwire


Constructor Summary
Tripwire()
           
Tripwire(int type)
           
Tripwire(int type, byte data)
           
 
Method Summary
 Tripwire clone()
           
 boolean isActivated()
          Test if tripwire is currently activated
 boolean isObjectTriggering()
          Test if object triggering this tripwire directly
 void setActivated(boolean act)
          Set tripwire activated state
 void setObjectTriggering(boolean trig)
          Set object triggering state for this tripwire
 String toString()
           
 
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tripwire

public Tripwire()

Tripwire

public Tripwire(int type)

Tripwire

public Tripwire(int type,
                byte data)
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:
clone in class MaterialData

toString

public String toString()
Overrides:
toString in class MaterialData


Copyright © 2013. All Rights Reserved.