Ton of Material extensions handling the meta-data of blocks.
By: sunkid <sunkid@iminurnetz.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user