mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2024-11-11 01:17:16 +00:00
Set the damage for a minecart
This commit is contained in:
parent
b7ebe8411a
commit
14b76f73c8
1 changed files with 10 additions and 0 deletions
|
@ -8,4 +8,14 @@ public class MinecartWatcher extends FlagWatcher {
|
|||
super(entityId);
|
||||
}
|
||||
|
||||
public void setDamage(float damage) {
|
||||
setValue(19, damage);
|
||||
}
|
||||
|
||||
public float getDamage() {
|
||||
if (getValue(19) != null)
|
||||
return (Float) getValue(19);
|
||||
return 0F;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue