public class TripwireHook extends SimpleAttachableMaterialData implements Redstone
构造器和说明 |
---|
TripwireHook() |
TripwireHook(BlockFace dir) |
TripwireHook(int type)
已过时。
不安全的参数
|
TripwireHook(int type,
byte data)
已过时。
不安全的参数
|
限定符和类型 | 方法和说明 |
---|---|
TripwireHook |
clone() |
BlockFace |
getAttachedFace()
获取这个方块附着的朝向.
|
boolean |
isActivated()
这个绊线钩是否被激活.
|
boolean |
isConnected()
这个绊线钩是否处于连接状态.
|
boolean |
isPowered()
这个物品有没有充能.
|
void |
setActivated(boolean act)
设置这个绊线钩的激活状态.
|
void |
setConnected(boolean connected)
设置这个绊线钩的连接状态.
|
void |
setFacingDirection(BlockFace face)
设置这个方块的朝向.
|
java.lang.String |
toString() |
getFacing
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public TripwireHook()
@Deprecated public TripwireHook(int type)
type
- the raw type id@Deprecated public TripwireHook(int type, byte data)
type
- the raw type iddata
- the raw data valuepublic TripwireHook(BlockFace dir)
public boolean isConnected()
原文:Test if tripwire is connected
public void setConnected(boolean connected)
原文:Set tripwire connection state
connected
- 绊线钩是否处于连接状态public boolean isActivated()
原文:Test if hook is currently activated
public void setActivated(boolean act)
原文:Set hook activated state
act
- 绊线钩是否被激活public void setFacingDirection(BlockFace face)
Directional
原文:Sets the direction that this block is facing in
setFacingDirection
在接口中 Directional
face
- 这个方块的朝向public BlockFace getAttachedFace()
Attachable
原文: Gets the face that this block is attached on
getAttachedFace
在接口中 Attachable
public boolean isPowered()
Redstone
原文:Gets the current state of this Material, indicating if it's powered or unpowered
public TripwireHook clone()
clone
在类中 SimpleAttachableMaterialData
public java.lang.String toString()
toString
在类中 SimpleAttachableMaterialData