|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.material.MaterialData org.bukkit.material.SimpleAttachableMaterialData org.bukkit.material.Button
public class Button
Represents a button
Constructor Summary | |
---|---|
Button()
|
|
Button(int type)
|
|
Button(int type,
byte data)
|
|
Button(Material type)
|
|
Button(Material type,
byte data)
|
Method Summary | |
---|---|
Button |
clone()
|
BlockFace |
getAttachedFace()
Gets the face that this block is attached on |
boolean |
isPowered()
Gets the current state of this Material, indicating if it's powered or unpowered |
void |
setFacingDirection(BlockFace face)
Sets the direction this button is pointing toward |
void |
setPowered(boolean bool)
Sets the current state of this button |
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 Button()
public Button(int type)
public Button(Material type)
public Button(int type, byte data)
public Button(Material type, byte data)
Method Detail |
---|
public boolean isPowered()
isPowered
in interface Redstone
public void setPowered(boolean bool)
bool
- whether or not the button is poweredpublic BlockFace getAttachedFace()
getAttachedFace
in interface Attachable
public void setFacingDirection(BlockFace face)
setFacingDirection
in interface Directional
face
- The facing directionpublic String toString()
toString
in class SimpleAttachableMaterialData
public Button clone()
clone
in class SimpleAttachableMaterialData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |