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()
|
||||
|
|
|
@ -74,7 +74,7 @@ public class GuiIndustrialSawmill extends GuiContainer
|
|||
// }
|
||||
// }
|
||||
drawTexturedModalRect(k + 11, l + 19, 176, 86, 12, 47);
|
||||
if (sawmill.getMutliBlock() != true)
|
||||
if (!sawmill.getMutliBlock())
|
||||
{
|
||||
GuiUtil.drawTooltipBox(k + 30, l + 50 + 12 - 0, 114, 10);
|
||||
this.fontRendererObj.drawString(I18n.translateToLocal("techreborn.message.missingmultiblock"), k + 38,
|
||||
|
|
|
@ -63,7 +63,7 @@ public class RenderCablePart implements IBakedModel
|
|||
@Override
|
||||
public List<BakedQuad> getQuads(IBlockState blockState, EnumFacing side, long rand)
|
||||
{
|
||||
ArrayList<BakedQuad> list = new ArrayList<BakedQuad>();
|
||||
ArrayList<BakedQuad> list = new ArrayList<>();
|
||||
BlockFaceUV uv = new BlockFaceUV(new float[] { 0.0F, 0.0F, 16.0F, 16.0F }, 0);
|
||||
BlockPartFace face = new BlockPartFace(null, 0, "", uv);
|
||||
double thickness = type.cableThickness;
|
||||
|
|
|
@ -113,7 +113,7 @@ public class CasingConnectedTextureGenerator extends TextureAtlasSprite
|
|||
{
|
||||
IResource typeResource = manager.getResource(getTypeResource(type));
|
||||
type_image[0] = ImageIO.read(typeResource.getInputStream());
|
||||
animation = (AnimationMetadataSection) typeResource.getMetadata("animation");
|
||||
animation = typeResource.getMetadata("animation");
|
||||
|
||||
IResource edgeResource = manager.getResource(getTypeResource(type + "_edge"));
|
||||
edge_image[0] = ImageIO.read(edgeResource.getInputStream());
|
||||
|
|
|
@ -118,7 +118,7 @@ public class LesuConnectedTextureGenerator extends TextureAtlasSprite
|
|||
{
|
||||
IResource typeResource = manager.getResource(getLapisResource());
|
||||
type_image[0] = ImageIO.read(typeResource.getInputStream());
|
||||
animation = (AnimationMetadataSection) typeResource.getMetadata("animation");
|
||||
animation = typeResource.getMetadata("animation");
|
||||
|
||||
IResource edgeResource = manager.getResource(getTypeResource("lesu_block"));
|
||||
edge_image[0] = ImageIO.read(edgeResource.getInputStream());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue