Auto remove un needed things in the code
This commit is contained in:
parent
7e7fcf2ad9
commit
510f969c94
105 changed files with 141 additions and 348 deletions
|
@ -42,7 +42,7 @@ public class ContainerAESU extends RebornContainer {
|
|||
public void detectAndSendChanges() {
|
||||
super.detectAndSendChanges();
|
||||
for (int i = 0; i < this.crafters.size(); i++) {
|
||||
ICrafting icrafting = (ICrafting) this.crafters.get(i);
|
||||
ICrafting icrafting = this.crafters.get(i);
|
||||
if (this.euOut != tile.getMaxOutput()) {
|
||||
icrafting.sendProgressBarUpdate(this, 0, (int) tile.getMaxOutput());
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ public class ContainerAlloyFurnace extends RebornContainer
|
|||
{
|
||||
for (int i = 0; i < this.crafters.size(); i++)
|
||||
{
|
||||
ICrafting crafting = (ICrafting) this.crafters.get(i);
|
||||
ICrafting crafting = this.crafters.get(i);
|
||||
if (this.currentItemBurnTime != tile.currentItemBurnTime)
|
||||
{
|
||||
crafting.sendProgressBarUpdate(this, 0, tile.currentItemBurnTime);
|
||||
|
|
|
@ -56,7 +56,7 @@ public class ContainerBatbox extends RebornContainer
|
|||
super.detectAndSendChanges();
|
||||
for (int i = 0; i < this.crafters.size(); i++)
|
||||
{
|
||||
ICrafting icrafting = (ICrafting) this.crafters.get(i);
|
||||
ICrafting icrafting = this.crafters.get(i);
|
||||
if (this.energy != (int) tile.getEnergy())
|
||||
{
|
||||
icrafting.sendProgressBarUpdate(this, 2, (int) tile.getEnergy());
|
||||
|
|
|
@ -59,7 +59,7 @@ public class ContainerBlastFurnace extends ContainerCrafting
|
|||
super.detectAndSendChanges();
|
||||
for (int i = 0; i < this.crafters.size(); i++)
|
||||
{
|
||||
ICrafting icrafting = (ICrafting) this.crafters.get(i);
|
||||
ICrafting icrafting = this.crafters.get(i);
|
||||
if (this.heat != tile.getHeat())
|
||||
{
|
||||
icrafting.sendProgressBarUpdate(this, 10, tile.getHeat());
|
||||
|
|
|
@ -26,7 +26,7 @@ public abstract class ContainerCrafting extends RebornContainer
|
|||
super.detectAndSendChanges();
|
||||
for (int i = 0; i < this.crafters.size(); i++)
|
||||
{
|
||||
ICrafting icrafting = (ICrafting) this.crafters.get(i);
|
||||
ICrafting icrafting = this.crafters.get(i);
|
||||
if (this.currentTickTime != crafter.currentTickTime || crafter.currentTickTime == -1)
|
||||
{
|
||||
icrafting.sendProgressBarUpdate(this, 0, crafter.currentTickTime);
|
||||
|
|
|
@ -55,7 +55,7 @@ public class ContainerDieselGenerator extends RebornContainer
|
|||
super.detectAndSendChanges();
|
||||
for (int i = 0; i < this.crafters.size(); i++)
|
||||
{
|
||||
ICrafting icrafting = (ICrafting) this.crafters.get(i);
|
||||
ICrafting icrafting = this.crafters.get(i);
|
||||
if (this.energy != (int) tiledieselGenerator.getEnergy())
|
||||
{
|
||||
icrafting.sendProgressBarUpdate(this, 0, (int) tiledieselGenerator.getEnergy());
|
||||
|
|
|
@ -58,7 +58,7 @@ public class ContainerFusionReactor extends RebornContainer
|
|||
super.detectAndSendChanges();
|
||||
for (int i = 0; i < this.crafters.size(); i++)
|
||||
{
|
||||
ICrafting icrafting = (ICrafting) this.crafters.get(i);
|
||||
ICrafting icrafting = this.crafters.get(i);
|
||||
if (this.coilStatus != fusionController.coilStatus)
|
||||
{
|
||||
icrafting.sendProgressBarUpdate(this, 0, fusionController.coilStatus);
|
||||
|
|
|
@ -59,7 +59,7 @@ public class ContainerGenerator extends RebornContainer
|
|||
super.detectAndSendChanges();
|
||||
for (int i = 0; i < this.crafters.size(); i++)
|
||||
{
|
||||
ICrafting icrafting = (ICrafting) this.crafters.get(i);
|
||||
ICrafting icrafting = this.crafters.get(i);
|
||||
if (this.burnTime != tile.burnTime)
|
||||
{
|
||||
icrafting.sendProgressBarUpdate(this, 0, tile.burnTime);
|
||||
|
|
|
@ -43,7 +43,7 @@ public class ContainerIDSU extends RebornContainer {
|
|||
public void detectAndSendChanges() {
|
||||
super.detectAndSendChanges();
|
||||
for (int i = 0; i < this.crafters.size(); i++) {
|
||||
ICrafting icrafting = (ICrafting) this.crafters.get(i);
|
||||
ICrafting icrafting = this.crafters.get(i);
|
||||
if (this.euOut != tile.output) {
|
||||
icrafting.sendProgressBarUpdate(this, 0, tile.output);
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ public class ContainerImplosionCompressor extends ContainerCrafting
|
|||
super.detectAndSendChanges();
|
||||
for (int i = 0; i < this.crafters.size(); i++)
|
||||
{
|
||||
ICrafting icrafting = (ICrafting) this.crafters.get(i);
|
||||
ICrafting icrafting = this.crafters.get(i);
|
||||
if (this.multIBlockState != getMultIBlockStateint())
|
||||
{
|
||||
icrafting.sendProgressBarUpdate(this, 3, getMultIBlockStateint());
|
||||
|
|
|
@ -59,7 +59,7 @@ public class ContainerIndustrialGrinder extends ContainerCrafting
|
|||
super.detectAndSendChanges();
|
||||
for (int i = 0; i < this.crafters.size(); i++)
|
||||
{
|
||||
ICrafting icrafting = (ICrafting) this.crafters.get(i);
|
||||
ICrafting icrafting = this.crafters.get(i);
|
||||
if (this.connectionStatus != tile.connectionStatus)
|
||||
{
|
||||
icrafting.sendProgressBarUpdate(this, 10, tile.connectionStatus);
|
||||
|
|
|
@ -49,7 +49,7 @@ public class ContainerLESU extends RebornContainer {
|
|||
public void detectAndSendChanges() {
|
||||
super.detectAndSendChanges();
|
||||
for (int i = 0; i < this.crafters.size(); i++) {
|
||||
ICrafting icrafting = (ICrafting) this.crafters.get(i);
|
||||
ICrafting icrafting = this.crafters.get(i);
|
||||
if (this.euOut != tile.getMaxOutput()) {
|
||||
icrafting.sendProgressBarUpdate(this, 0, (int) tile.getMaxOutput());
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ public class ContainerMFE extends RebornContainer
|
|||
super.detectAndSendChanges();
|
||||
for (int i = 0; i < this.crafters.size(); i++)
|
||||
{
|
||||
ICrafting icrafting = (ICrafting) this.crafters.get(i);
|
||||
ICrafting icrafting = this.crafters.get(i);
|
||||
if (this.energy != (int) tile.getEnergy())
|
||||
{
|
||||
icrafting.sendProgressBarUpdate(this, 2, (int) tile.getEnergy());
|
||||
|
|
|
@ -71,7 +71,7 @@ public class ContainerMFSU extends RebornContainer
|
|||
super.detectAndSendChanges();
|
||||
for (int i = 0; i < this.crafters.size(); i++)
|
||||
{
|
||||
ICrafting icrafting = (ICrafting) this.crafters.get(i);
|
||||
ICrafting icrafting = this.crafters.get(i);
|
||||
if (this.energy != (int) tile.getEnergy())
|
||||
{
|
||||
icrafting.sendProgressBarUpdate(this, 2, (int) tile.getEnergy());
|
||||
|
|
|
@ -60,7 +60,7 @@ public class ContainerMatterFabricator extends RebornContainer
|
|||
super.detectAndSendChanges();
|
||||
for (int i = 0; i < this.crafters.size(); i++)
|
||||
{
|
||||
ICrafting icrafting = (ICrafting) this.crafters.get(i);
|
||||
ICrafting icrafting = this.crafters.get(i);
|
||||
if (this.progressTime != tile.progresstime)
|
||||
{
|
||||
icrafting.sendProgressBarUpdate(this, 0, tile.progresstime);
|
||||
|
|
|
@ -81,7 +81,7 @@ public class ContainerRollingMachine extends RebornContainer
|
|||
{
|
||||
for (int i = 0; i < this.crafters.size(); i++)
|
||||
{
|
||||
ICrafting crafting = (ICrafting) this.crafters.get(i);
|
||||
ICrafting crafting = this.crafters.get(i);
|
||||
if (this.currentItemBurnTime != tile.runTime)
|
||||
{
|
||||
crafting.sendProgressBarUpdate(this, 0, tile.runTime);
|
||||
|
|
|
@ -54,7 +54,7 @@ public class ContainerVacuumFreezer extends ContainerCrafting
|
|||
super.detectAndSendChanges();
|
||||
for (int i = 0; i < this.crafters.size(); i++)
|
||||
{
|
||||
ICrafting icrafting = (ICrafting) this.crafters.get(i);
|
||||
ICrafting icrafting = this.crafters.get(i);
|
||||
if (this.machineStatus != tile.multiBlockStatus)
|
||||
{
|
||||
icrafting.sendProgressBarUpdate(this, 3, tile.multiBlockStatus);
|
||||
|
|
|
@ -15,11 +15,7 @@ public class SlotScrapbox extends Slot
|
|||
|
||||
public boolean isItemValid(ItemStack par1ItemStack)
|
||||
{
|
||||
if (par1ItemStack.getItem() == ModItems.scrapBox)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return par1ItemStack.getItem() == ModItems.scrapBox;
|
||||
}
|
||||
|
||||
public int getSlotStackLimit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue