[Bleeding] Add new MaterialData classes for new blocks and update existing blocks with new data

By: Mike Primm <mike@primmhome.com>
This commit is contained in:
Bukkit/Spigot
2012-08-04 21:23:59 -05:00
parent 64ad50197f
commit 5154864bbc
12 changed files with 640 additions and 21 deletions

View File

@@ -0,0 +1,45 @@
package org.bukkit.material;
import org.bukkit.Material;
import org.bukkit.block.BlockFace;
/**
* Represents an ender chest
*/
public class EnderChest extends FurnaceAndDispenser {
public EnderChest() {
super(Material.ENDER_CHEST);
}
/**
* Instantiate an ender chest facing in a particular direction.
*
* @param direction the direction the ender chest's lid opens towards
*/
public EnderChest(BlockFace direction) {
this();
setFacingDirection(direction);
}
public EnderChest(final int type) {
super(type);
}
public EnderChest(final Material type) {
super(type);
}
public EnderChest(final int type, final byte data) {
super(type, data);
}
public EnderChest(final Material type, final byte data) {
super(type, data);
}
@Override
public EnderChest clone() {
return (EnderChest) super.clone();
}
}