Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.material.PistonBaseMaterial Class Reference

Material data for the piston base block. More...

+ Inheritance diagram for org.bukkit.material.PistonBaseMaterial:
+ Collaboration diagram for org.bukkit.material.PistonBaseMaterial:

Public Member Functions

 PistonBaseMaterial (final int type)
 
 PistonBaseMaterial (final Material type)
 
 PistonBaseMaterial (final int type, final byte data)
 
 PistonBaseMaterial (final Material type, final byte data)
 
void setFacingDirection (BlockFace face)
 
BlockFace getFacing ()
 
boolean isPowered ()
 
void setPowered (boolean powered)
 Sets the current state of this piston.
 
boolean isSticky ()
 Checks if this piston base is sticky, and returns true if so.
 
PistonBaseMaterial clone ()
 
- Public Member Functions inherited from org.bukkit.material.MaterialData
 MaterialData (final int type)
 
 MaterialData (final Material type)
 
 MaterialData (final int type, final byte data)
 
 MaterialData (final Material type, final byte data)
 
byte getData ()
 Gets the raw data in this material.
 
void setData (byte data)
 Sets the raw data of this material.
 
Material getItemType ()
 Gets the Material that this MaterialData represents.
 
int getItemTypeId ()
 Gets the Material Id that this MaterialData represents.
 
ItemStack toItemStack ()
 Creates a new ItemStack based on this MaterialData.
 
ItemStack toItemStack (int amount)
 Creates a new ItemStack based on this MaterialData.
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 
MaterialData clone ()
 
- Public Member Functions inherited from org.bukkit.material.Directional
void setFacingDirection (BlockFace face)
 Sets the direction that this block is facing in.
 
BlockFace getFacing ()
 Gets the direction this block is facing.
 
- Public Member Functions inherited from org.bukkit.material.Redstone
boolean isPowered ()
 Gets the current state of this Material, indicating if it's powered or unpowered.
 

Detailed Description

Material data for the piston base block.

Definition at line 9 of file PistonBaseMaterial.java.

Constructor & Destructor Documentation

org.bukkit.material.PistonBaseMaterial.PistonBaseMaterial ( final int  type)

Definition at line 10 of file PistonBaseMaterial.java.

org.bukkit.material.PistonBaseMaterial.PistonBaseMaterial ( final Material  type)

Definition at line 14 of file PistonBaseMaterial.java.

org.bukkit.material.PistonBaseMaterial.PistonBaseMaterial ( final int  type,
final byte  data 
)

Definition at line 18 of file PistonBaseMaterial.java.

org.bukkit.material.PistonBaseMaterial.PistonBaseMaterial ( final Material  type,
final byte  data 
)

Definition at line 22 of file PistonBaseMaterial.java.

Member Function Documentation

PistonBaseMaterial org.bukkit.material.PistonBaseMaterial.clone ( )
boolean org.bukkit.material.PistonBaseMaterial.isPowered ( )
boolean org.bukkit.material.PistonBaseMaterial.isSticky ( )

Checks if this piston base is sticky, and returns true if so.

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

Definition at line 88 of file PistonBaseMaterial.java.

References org.bukkit.material.MaterialData.getItemType(), and org.bukkit.Material.PISTON_STICKY_BASE.

void org.bukkit.material.PistonBaseMaterial.setFacingDirection ( BlockFace  face)
void org.bukkit.material.PistonBaseMaterial.setPowered ( boolean  powered)

Sets the current state of this piston.

Parameters
poweredtrue if the piston is extended & powered, or false

Definition at line 79 of file PistonBaseMaterial.java.

References org.bukkit.material.MaterialData.getData(), and org.bukkit.material.MaterialData.setData().


The documentation for this class was generated from the following file: