org.bukkit.material
Class PistonExtensionMaterial

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.PistonExtensionMaterial
All Implemented Interfaces:
Cloneable, Attachable, Directional

public class PistonExtensionMaterial
extends MaterialData
implements Attachable

Material data for the piston extension block


Constructor Summary
PistonExtensionMaterial(int type)
          Deprecated. Magic value
PistonExtensionMaterial(int type, byte data)
          Deprecated. Magic value
PistonExtensionMaterial(Material type)
           
PistonExtensionMaterial(Material type, byte data)
          Deprecated. Magic value
 
Method Summary
 PistonExtensionMaterial clone()
           
 BlockFace getAttachedFace()
          Gets the face that this block is attached on
 BlockFace getFacing()
          Gets the direction this block is facing
 boolean isSticky()
          Checks if this piston extension is sticky, and returns true if so
 void setFacingDirection(BlockFace face)
          Sets the direction that this block is facing in
 void setSticky(boolean sticky)
          Sets whether or not this extension is sticky
 
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PistonExtensionMaterial

@Deprecated
public PistonExtensionMaterial(int type)
Deprecated. Magic value


PistonExtensionMaterial

public PistonExtensionMaterial(Material type)

PistonExtensionMaterial

@Deprecated
public PistonExtensionMaterial(int type,
                                          byte data)
Deprecated. Magic value


PistonExtensionMaterial

@Deprecated
public PistonExtensionMaterial(Material type,
                                          byte data)
Deprecated. Magic value

Method Detail

setFacingDirection

public void setFacingDirection(BlockFace face)
Description copied from interface: Directional
Sets the direction that this block is facing in

Specified by:
setFacingDirection in interface Directional
Parameters:
face - The facing direction

getFacing

public BlockFace getFacing()
Description copied from interface: Directional
Gets the direction this block is facing

Specified by:
getFacing in interface Directional
Returns:
the direction this block is facing

isSticky

public boolean isSticky()
Checks if this piston extension is sticky, and returns true if so

Returns:
true if this piston is "sticky", or false

setSticky

public void setSticky(boolean sticky)
Sets whether or not this extension is sticky

Parameters:
sticky - true if sticky, otherwise false

getAttachedFace

public BlockFace getAttachedFace()
Description copied from interface: Attachable
Gets the face that this block is attached on

Specified by:
getAttachedFace in interface Attachable
Returns:
BlockFace attached to

clone

public PistonExtensionMaterial clone()
Overrides:
clone in class MaterialData


Copyright © 2013. All Rights Reserved.