java.lang.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
|
java.lang.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 java.lang.String toString()
toString
in class MaterialData
Copyright © 2018. All rights reserved.