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

@@ -8,6 +8,15 @@ import org.bukkit.TreeSpecies;
* @author sunkid
*/
public class Tree extends MaterialData {
public Tree() {
super(Material.LOG);
}
public Tree(TreeSpecies species) {
this();
setSpecies(species);
}
public Tree(final int type) {
super(type);
}
@@ -41,4 +50,9 @@ public class Tree extends MaterialData {
public void setSpecies(TreeSpecies species) {
setData(species.getData());
}
@Override
public String toString() {
return getSpecies() + " " + super.toString();
}
}