|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.material.MaterialData org.bukkit.material.PistonExtensionMaterial
public class PistonExtensionMaterial
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 |
---|
public PistonExtensionMaterial(int type)
public PistonExtensionMaterial(Material type)
public PistonExtensionMaterial(int type, byte data)
public PistonExtensionMaterial(Material type, byte data)
Method Detail |
---|
public void setFacingDirection(BlockFace face)
Directional
setFacingDirection
in interface Directional
face
- The facing directionpublic BlockFace getFacing()
Directional
getFacing
in interface Directional
public boolean isSticky()
public void setSticky(boolean sticky)
sticky
- true if sticky, otherwise falsepublic BlockFace getAttachedFace()
Attachable
getAttachedFace
in interface Attachable
public PistonExtensionMaterial clone()
clone
in class MaterialData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |