Cloneable
public class Tripwire extends MaterialData
Constructor | Description |
---|---|
Tripwire() |
|
Tripwire(Material type,
byte data) |
Deprecated.
Magic value
|
Modifier and Type | Method | 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, hashCode, setData, toItemStack, toItemStack
public Tripwire()
@Deprecated public Tripwire(Material type, byte data)
type
- the typedata
- 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 MaterialData
public String toString()
toString
in class MaterialData
Copyright © 2019. All rights reserved.