public class Tripwire extends MaterialData
构造器和说明 |
---|
Tripwire() |
Tripwire(int type)
已过时。
不安全的参数
|
Tripwire(int type,
byte data)
已过时。
不安全的参数
|
限定符和类型 | 方法和说明 |
---|---|
Tripwire |
clone() |
boolean |
isActivated()
测试绊线是否被激活.
|
boolean |
isObjectTriggering()
测试绊线是否由物体直接触发.
|
void |
setActivated(boolean act)
设置绊线是否被激活.
|
void |
setObjectTriggering(boolean trig)
设置绊线是否由物体触发.
|
java.lang.String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public 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()
原文:Test if tripwire is currently activated
public void setActivated(boolean act)
原文:Set tripwire activated state
act
- 绊线是否被激活public boolean isObjectTriggering()
原文:Test if object triggering this tripwire directly
public void setObjectTriggering(boolean trig)
原文:Set object triggering state for this tripwire
trig
- 绊线是否由物体触发public Tripwire clone()
clone
在类中 MaterialData
public java.lang.String toString()
toString
在类中 MaterialData