public class Tripwire extends MaterialData
| Constructor and Description |
|---|
Tripwire() |
Tripwire(int type)
Deprecated.
Magic value
|
Tripwire(int type,
byte data)
Deprecated.
Magic value
|
| Modifier and Type | Method and Description |
|---|---|
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() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackpublic Tripwire()
@Deprecated public Tripwire(int type)
type - the raw type id@Deprecated public Tripwire(int type, byte data)
type - the raw type iddata - the raw data valuepublic boolean isActivated()
public void setActivated(boolean act)
act - - true if activated, false if notpublic boolean isObjectTriggering()
public void setObjectTriggering(boolean trig)
trig - - true if object activating tripwire, false if notpublic Tripwire clone()
clone in class MaterialDatapublic String toString()
toString in class MaterialDataCopyright © 2016. All rights reserved.