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)
           
PistonExtensionMaterial(int type, byte data)
           
PistonExtensionMaterial(Material type)
           
PistonExtensionMaterial(Material type, byte data)
           
 
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

public PistonExtensionMaterial(int type)

PistonExtensionMaterial

public PistonExtensionMaterial(Material type)

PistonExtensionMaterial

public PistonExtensionMaterial(int type,
                               byte data)

PistonExtensionMaterial

public PistonExtensionMaterial(Material type,
                               byte data)
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.