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.Material;
* Represents a Wool/Cloth block
*/
public class Wool extends MaterialData implements Colorable {
public Wool() {
super(Material.WOOL);
}
public Wool(DyeColor color) {
this();
setColor(color);
}
public Wool(final int type) {
super(type);
}
@@ -41,4 +50,9 @@ public class Wool extends MaterialData implements Colorable {
public void setColor(DyeColor color) {
setData(color.getData());
}
@Override
public String toString() {
return getColor() + " " + super.toString();
}
}