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,37 @@
package org.bukkit.material;
import org.bukkit.Material;
import org.bukkit.block.BlockFace;
/**
* Represents a dispenser.
*
* @author sunkid
*/
public class Dispenser extends FurnaceAndDispenser {
public Dispenser() {
super(Material.DISPENSER);
}
public Dispenser(BlockFace direction) {
this();
setFacingDirection(direction);
}
public Dispenser(final int type) {
super(type);
}
public Dispenser(final Material type) {
super(type);
}
public Dispenser(final int type, final byte data) {
super(type, data);
}
public Dispenser(final Material type, final byte data) {
super(type, data);
}
}