public class TripwireHook extends SimpleAttachableMaterialData implements Redstone
コンストラクタと説明 |
---|
TripwireHook() |
TripwireHook(BlockFace dir) |
TripwireHook(int type)
非推奨です。
Magic value
|
TripwireHook(int type,
byte data)
非推奨です。
Magic value
|
修飾子とタイプ | メソッドと説明 |
---|---|
TripwireHook |
clone() |
BlockFace |
getAttachedFace()
Gets the face that this block is attached on
|
boolean |
isActivated()
Test if hook is currently activated
|
boolean |
isConnected()
Test if tripwire is connected
|
boolean |
isPowered()
Gets the current state of this Material, indicating if it's powered or
unpowered
|
void |
setActivated(boolean act)
Set hook activated state
|
void |
setConnected(boolean connected)
Set tripwire connection state
|
void |
setFacingDirection(BlockFace face)
Sets the direction that this block is facing in
|
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()
public void setConnected(boolean connected)
connected
- - true if connected, false if notpublic boolean isActivated()
public void setActivated(boolean act)
act
- - true if activated, false if notpublic void setFacingDirection(BlockFace face)
Directional
setFacingDirection
インタフェース内 Directional
face
- The facing directionpublic BlockFace getAttachedFace()
Attachable
getAttachedFace
インタフェース内 Attachable
public boolean isPowered()
Redstone
public TripwireHook clone()
clone
クラス内 SimpleAttachableMaterialData
public String toString()
toString
クラス内 SimpleAttachableMaterialData
Copyright © 2016. All rights reserved.