public void addCraftingToCrafters(ICrafting par1ICrafting) { super.addCraftingToCrafters(par1ICrafting); for (int i = 0; i < 15; i++) { par1ICrafting.sendProgressBarUpdate(this, i, this.deconstructor.progress[i]); lastProgressTime[i] = this.deconstructor.progress[i]; } }
/** Updates crafting matrix; called from onCraftMatrixChanged. Args: none */ public void detectAndSendChanges() { super.detectAndSendChanges(); for (int var1 = 0; var1 < this.crafters.size(); ++var1) { ICrafting var2 = (ICrafting) this.crafters.get(var1); for (int i = 0; i < 15; i++) { if (this.deconstructor.progress[i] != this.lastProgressTime[i]) var2.sendProgressBarUpdate(this, i, this.deconstructor.progress[i]); } } for (int i = 0; i < 15; i++) lastProgressTime[i] = this.deconstructor.progress[i]; }