java.lang.Cloneable
, Attachable
, Directional
, Redstone
public class TripwireHook extends SimpleAttachableMaterialData implements Redstone
Constructor | Description |
---|---|
TripwireHook() |
|
TripwireHook(BlockFace dir) |
|
TripwireHook(Material type,
byte data) |
Deprecated.
Magic value
|
Modifier and Type | Method | Description |
---|---|---|
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
|
java.lang.String |
toString() |
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
finalize, getClass, notify, notifyAll, wait, wait, wait
getFacing
public 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)
Directional
setFacingDirection
in interface Directional
face
- The facing directionpublic BlockFace getAttachedFace()
Attachable
getAttachedFace
in interface Attachable
public boolean isPowered()
Redstone
public TripwireHook clone()
clone
in class SimpleAttachableMaterialData
public java.lang.String toString()
toString
in class SimpleAttachableMaterialData
Copyright © 2018. All rights reserved.