org.bukkit.material
Class Dispenser

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.DirectionalContainer
          extended by org.bukkit.material.FurnaceAndDispenser
              extended by org.bukkit.material.Dispenser
All Implemented Interfaces:
Cloneable, Directional

public class Dispenser
extends FurnaceAndDispenser

Represents a dispenser.


Constructor Summary
Dispenser()
           
Dispenser(BlockFace direction)
           
Dispenser(int type)
          Deprecated. Magic value
Dispenser(int type, byte data)
          Deprecated. Magic value
Dispenser(Material type)
           
Dispenser(Material type, byte data)
          Deprecated. Magic value
 
Method Summary
 Dispenser clone()
           
 BlockFace getFacing()
          Gets the direction this block is facing
 void setFacingDirection(BlockFace face)
          Sets the direction that this block is facing in
 
Methods inherited from class org.bukkit.material.DirectionalContainer
toString
 
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dispenser

public Dispenser()

Dispenser

public Dispenser(BlockFace direction)

Dispenser

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


Dispenser

public Dispenser(Material type)

Dispenser

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


Dispenser

@Deprecated
public Dispenser(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
Overrides:
setFacingDirection in class DirectionalContainer
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
Overrides:
getFacing in class DirectionalContainer
Returns:
the direction this block is facing

clone

public Dispenser clone()
Overrides:
clone in class FurnaceAndDispenser


Copyright © 2014. All rights reserved.