Ton of Material extensions handling the meta-data of blocks.

This commit is contained in:
sunkid
2011-04-02 16:42:12 -07:00
committed by Erik Broes
parent 89f7386e87
commit 55e4fbfd14
31 changed files with 1203 additions and 135 deletions

View File

@@ -3,6 +3,9 @@ package org.bukkit.material;
import org.bukkit.Material;
public class Cake extends MaterialData {
public Cake() {
super(Material.CAKE_BLOCK);
}
public Cake(int type) {
super(type);
@@ -58,4 +61,10 @@ public class Cake extends MaterialData {
if (n > 6) n = 6;
setData((byte) (6 - n));
}
@Override
public String toString() {
return super.toString() + " " + getSlicesEaten() + "/" + getSlicesRemaining() + " slices eaten/remaining";
}
}