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 public class Button extends SimpleAttachableMaterialData implements Redstone
Deprecated.all usage of MaterialData is deprecated and subject to removal. UseBlockData.Represents a button
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Buttonclone()Deprecated.BlockFacegetAttachedFace()Deprecated.Gets the face that this block is attached onbooleanisPowered()Deprecated.Gets the current state of this Material, indicating if it's powered or unpoweredvoidsetFacingDirection(BlockFace face)Deprecated.Sets the direction this button is pointing towardvoidsetPowered(boolean bool)Deprecated.Sets the current state of this buttonStringtoString()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 Detail
-
Button
public Button()
Deprecated.
-
Button
public Button(Material type)
Deprecated.
-
Button
@Deprecated public Button(Material type, byte data)
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
-
Method Detail
-
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
public BlockFace getAttachedFace()
Deprecated.Gets the face that this block is attached on- Specified by:
getAttachedFacein interfaceAttachable- Returns:
- BlockFace attached to
-
setFacingDirection
public void setFacingDirection(BlockFace face)
Deprecated.Sets the direction this button is pointing toward- Specified by:
setFacingDirectionin interfaceDirectional- Parameters:
face- The facing direction
-
toString
public String toString()
Deprecated.- Overrides:
toStringin classSimpleAttachableMaterialData
-
clone
public Button clone()
Deprecated.- Overrides:
clonein classSimpleAttachableMaterialData
-
-