|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.material.MaterialData
org.bukkit.material.SimpleAttachableMaterialData
org.bukkit.material.TripwireHook
public class TripwireHook
Represents the tripwire hook
| Constructor Summary | |
|---|---|
TripwireHook()
|
|
TripwireHook(BlockFace dir)
|
|
TripwireHook(int type)
|
|
TripwireHook(int type,
byte data)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.bukkit.material.SimpleAttachableMaterialData |
|---|
getFacing |
| Methods inherited from class org.bukkit.material.MaterialData |
|---|
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TripwireHook()
public TripwireHook(int type)
public TripwireHook(int type,
byte data)
public TripwireHook(BlockFace dir)
| Method Detail |
|---|
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 Directionalface - The facing directionpublic BlockFace getAttachedFace()
Attachable
getAttachedFace in interface Attachablepublic boolean isPowered()
Redstone
isPowered in interface Redstonepublic TripwireHook clone()
clone in class SimpleAttachableMaterialDatapublic String toString()
toString in class SimpleAttachableMaterialData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||