Set the damage for a minecart

This commit is contained in:
Andrew 2013-07-14 11:48:05 +12:00
parent b7ebe8411a
commit 14b76f73c8

View file

@ -8,4 +8,14 @@ public class MinecartWatcher extends FlagWatcher {
super(entityId); super(entityId);
} }
public void setDamage(float damage) {
setValue(19, damage);
}
public float getDamage() {
if (getValue(19) != null)
return (Float) getValue(19);
return 0F;
}
} }