Add CookTimeTotal API to Furnace

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2019-01-23 10:26:43 +11:00
parent 09b5837195
commit 92278020ef

View file

@ -55,6 +55,16 @@ public class CraftFurnace extends CraftContainer<TileEntityFurnace> implements F
this.getSnapshot().setProperty(2, cookTime);
}
@Override
public int getCookTimeTotal() {
return this.getSnapshot().getProperty(3);
}
@Override
public void setCookTimeTotal(int cookTimeTotal) {
this.getSnapshot().setProperty(3, cookTimeTotal);
}
@Override
public String getCustomName() {
TileEntityFurnace furnace = this.getSnapshot();