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
@Deprecated(since="1.14.1")
public class Button
extends SimpleAttachableMaterialData
implements Redstone
Deprecated.
Represents a button
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated.Deprecated.Gets the face that this block is attached onboolean
Deprecated.Gets the current state of this Material, indicating if it's powered or unpoweredvoid
setFacingDirection
(BlockFace face) Deprecated.Sets the direction this button is pointing towardvoid
setPowered
(boolean bool) Deprecated.Sets the current state of this buttontoString()
Deprecated.Methods inherited from class org.bukkit.material.SimpleAttachableMaterialData
getFacing
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Button
public Button()Deprecated. -
Button
Deprecated. -
Button
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
isPowered
public boolean isPowered()Deprecated.Gets the current state of this Material, indicating if it's powered or unpowered -
setPowered
public void setPowered(boolean bool) Deprecated.Sets the current state of this button- Parameters:
bool
- whether or not the button is powered
-
getAttachedFace
Deprecated.Gets the face that this block is attached on- Specified by:
getAttachedFace
in interfaceAttachable
- Returns:
- BlockFace attached to
-
setFacingDirection
Deprecated.Sets the direction this button is pointing toward- Specified by:
setFacingDirection
in interfaceDirectional
- Parameters:
face
- The facing direction
-
toString
Deprecated.- Overrides:
toString
in classSimpleAttachableMaterialData
-
clone
Deprecated.- Overrides:
clone
in classSimpleAttachableMaterialData
-
BlockData
.