mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-19 13:38:44 +01:00
Add CookTimeTotal API to Furnace
By: md_5 <git@md-5.net>
This commit is contained in:
parent
09b5837195
commit
92278020ef
1 changed files with 10 additions and 0 deletions
|
@ -55,6 +55,16 @@ public class CraftFurnace extends CraftContainer<TileEntityFurnace> implements F
|
||||||
this.getSnapshot().setProperty(2, cookTime);
|
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
|
@Override
|
||||||
public String getCustomName() {
|
public String getCustomName() {
|
||||||
TileEntityFurnace furnace = this.getSnapshot();
|
TileEntityFurnace furnace = this.getSnapshot();
|
||||||
|
|
Loading…
Add table
Reference in a new issue