Turn notification

This commit is contained in:
Anuken
2020-05-16 16:40:24 -04:00
parent bdbc8ab6d2
commit 2b46659daf
5 changed files with 39 additions and 5 deletions

View File

@@ -38,7 +38,17 @@ public class Stats{
/** Updates export statistics. */
public void handleItemExport(ItemStack stack){
export.getOr(stack.item, ExportStat::new).counter += stack.amount;
handleItemExport(stack.item, stack.amount);
}
/** Updates export statistics. */
public void handleItemExport(Item item, int amount){
export.getOr(item, ExportStat::new).counter += amount;
}
/** Subtracts from export statistics. */
public void handleItemImport(Item item, int amount){
export.getOr(item, ExportStat::new).counter -= amount;
}
public float getExport(Item item){