Ton of Material extensions handling the meta-data of blocks.

By: sunkid <sunkid@iminurnetz.com>
This commit is contained in:
Bukkit/Spigot
2011-04-02 16:42:12 -07:00
parent a449fb01d1
commit 84a31c3951
31 changed files with 1203 additions and 135 deletions

View File

@@ -0,0 +1,41 @@
package org.bukkit.material;
import org.bukkit.Material;
import org.bukkit.block.BlockFace;
/**
* Represents a furnace.
*
* @author sunkid
*/
public class Furnace extends FurnaceAndDispenser {
public Furnace() {
super(Material.FURNACE);
}
/**
* Instantiate a furnace facing in a particular direction.
* @param direction the direction the furnace's "opening" is facing
*/
public Furnace(BlockFace direction) {
this();
setFacingDirection(direction);
}
public Furnace(final int type) {
super(type);
}
public Furnace(final Material type) {
super(type);
}
public Furnace(final int type, final byte data) {
super(type, data);
}
public Furnace(final Material type, final byte data) {
super(type, data);
}
}