Package org.bukkit.material
Class Button
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SimpleAttachableMaterialData
org.bukkit.material.Button
- All Implemented Interfaces:
Cloneable
,Attachable
,Directional
,Redstone
Represents a button
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Gets the face that this block is attached onboolean
Gets the current state of this Material, indicating if it's powered or unpoweredvoid
setFacingDirection
(BlockFace face) Sets the direction this button is pointing towardvoid
setPowered
(boolean bool) Sets the current state of this buttontoString()
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
-
Constructor Details
-
Button
public Button() -
Button
Deprecated.Magic value- Parameters:
type
- the type
-
Button
-
Button
Deprecated.Magic value- Parameters:
type
- the raw type iddata
- the raw data value
-
Button
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
isPowered
public boolean isPowered()Gets the current state of this Material, indicating if it's powered or unpowered -
setPowered
public void setPowered(boolean bool) Sets the current state of this button- Parameters:
bool
- whether or not the button is powered
-
getAttachedFace
Gets the face that this block is attached on- Specified by:
getAttachedFace
in interfaceAttachable
- Returns:
- BlockFace attached to
-
setFacingDirection
Sets the direction this button is pointing toward- Specified by:
setFacingDirection
in interfaceDirectional
- Parameters:
face
- The facing direction
-
toString
- Overrides:
toString
in classSimpleAttachableMaterialData
-
clone
- Overrides:
clone
in classSimpleAttachableMaterialData
-