Cloneable, Attachable, Directional, RedstoneBlockData.@Deprecated public class TripwireHook extends SimpleAttachableMaterialData implements Redstone
| Constructor | Description | 
|---|---|
| TripwireHook() | Deprecated.  | 
| TripwireHook(BlockFace dir) | Deprecated.  | 
| TripwireHook(Material type,
            byte data) | Deprecated. 
 Magic value | 
| Modifier and Type | Method | Description | 
|---|---|---|
| TripwireHook | clone() | Deprecated.  | 
| BlockFace | getAttachedFace() | Deprecated.  Gets the face that this block is attached on | 
| boolean | isActivated() | Deprecated.  Test if hook is currently activated | 
| boolean | isConnected() | Deprecated.  Test if tripwire is connected | 
| boolean | isPowered() | Deprecated.  Gets the current state of this Material, indicating if it's powered or
 unpowered | 
| void | setActivated(boolean act) | Deprecated.  Set hook activated state | 
| void | setConnected(boolean connected) | Deprecated.  Set tripwire connection state | 
| void | setFacingDirection(BlockFace face) | Deprecated.  Sets the direction that this block is facing in | 
| String | toString() | Deprecated.  | 
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStackfinalize, getClass, notify, notifyAll, wait, wait, waitgetFacingpublic TripwireHook()
@Deprecated public TripwireHook(Material type, byte data)
type - the typedata - 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)
DirectionalsetFacingDirection in interface Directionalface - The facing directionpublic BlockFace getAttachedFace()
AttachablegetAttachedFace in interface Attachablepublic boolean isPowered()
Redstonepublic TripwireHook clone()
clone in class SimpleAttachableMaterialDatapublic String toString()
toString in class SimpleAttachableMaterialDataCopyright © 2020. All rights reserved.