Auto-format spaces to tabs (#2)

This commit is contained in:
mezz committed 2016-10-27 02:49:49 -07:00
1 parent 25be7fd254
commit 5bb4b5d9a5
756 files changed
+49198 -48489

No files matched your search

@@ -20,56 +20,56 @@ import org.lwjgl.opengl.GL11;
import java.util.Collections;
public class ControlBreweryProgress extends ControlProgressBase {
static Texture Brewery = new StandardTexture(0, 69, 34, 39, ExtraTreeTexture.Gui);
static Texture BreweryOverlay = new StandardTexture(34, 69, 34, 39, ExtraTreeTexture.Gui);
static Texture Brewery = new StandardTexture(0, 69, 34, 39, ExtraTreeTexture.Gui);
static Texture BreweryOverlay = new StandardTexture(34, 69, 34, 39, ExtraTreeTexture.Gui);
@Override
public void onRenderBackground() {
CraftGUI.Render.texture(ControlBreweryProgress.Brewery, new IPoint(0.0f, 0.0f));
final Brewery.ComponentBreweryLogic logic = Machine.getInterface(Brewery.ComponentBreweryLogic.class, Window.get(this).getInventory());
if (logic == null || logic.currentCrafting == null || logic.currentCrafting.currentInput == null) {
return;
}
final int fermentedHeight = (int) (32.0f * logic.getProgress() / 100.0f);
CraftGUI.Render.limitArea(new IArea(new IPoint(1.0f, 6.0f).add(this.getAbsolutePosition()), new IPoint(32.0f, 32 - fermentedHeight)));
GL11.glEnable(3089);
this.renderFluid(logic.currentCrafting.currentInput, new IPoint(1.0f, 6.0f));
this.renderFluid(logic.currentCrafting.currentInput, new IPoint(17.0f, 6.0f));
this.renderFluid(logic.currentCrafting.currentInput, new IPoint(1.0f, 22.0f));
this.renderFluid(logic.currentCrafting.currentInput, new IPoint(17.0f, 22.0f));
GL11.glDisable(3089);
CraftGUI.Render.limitArea(new IArea(new IPoint(1.0f, 38 - fermentedHeight).add(this.getAbsolutePosition()), new IPoint(32.0f, fermentedHeight)));
GL11.glEnable(3089);
this.renderFluid(binnie.extratrees.machines.Brewery.getOutput(logic.currentCrafting), new IPoint(1.0f, 6.0f));
this.renderFluid(binnie.extratrees.machines.Brewery.getOutput(logic.currentCrafting), new IPoint(17.0f, 6.0f));
this.renderFluid(binnie.extratrees.machines.Brewery.getOutput(logic.currentCrafting), new IPoint(1.0f, 22.0f));
this.renderFluid(binnie.extratrees.machines.Brewery.getOutput(logic.currentCrafting), new IPoint(17.0f, 22.0f));
GL11.glDisable(3089);
final ItemStackSet stacks = new ItemStackSet();
Collections.addAll(stacks, logic.currentCrafting.inputs);
stacks.add(logic.currentCrafting.ingr);
int x = 1;
int y = 6;
for (final ItemStack stack : stacks) {
CraftGUI.Render.item(new IPoint(x, y), stack);
x += 16;
if (x > 18) {
x = 1;
y += 16;
}
}
}
@Override
public void onRenderBackground() {
CraftGUI.Render.texture(ControlBreweryProgress.Brewery, new IPoint(0.0f, 0.0f));
final Brewery.ComponentBreweryLogic logic = Machine.getInterface(Brewery.ComponentBreweryLogic.class, Window.get(this).getInventory());
if (logic == null || logic.currentCrafting == null || logic.currentCrafting.currentInput == null) {
return;
}
final int fermentedHeight = (int) (32.0f * logic.getProgress() / 100.0f);
CraftGUI.Render.limitArea(new IArea(new IPoint(1.0f, 6.0f).add(this.getAbsolutePosition()), new IPoint(32.0f, 32 - fermentedHeight)));
GL11.glEnable(3089);
this.renderFluid(logic.currentCrafting.currentInput, new IPoint(1.0f, 6.0f));
this.renderFluid(logic.currentCrafting.currentInput, new IPoint(17.0f, 6.0f));
this.renderFluid(logic.currentCrafting.currentInput, new IPoint(1.0f, 22.0f));
this.renderFluid(logic.currentCrafting.currentInput, new IPoint(17.0f, 22.0f));
GL11.glDisable(3089);
CraftGUI.Render.limitArea(new IArea(new IPoint(1.0f, 38 - fermentedHeight).add(this.getAbsolutePosition()), new IPoint(32.0f, fermentedHeight)));
GL11.glEnable(3089);
this.renderFluid(binnie.extratrees.machines.Brewery.getOutput(logic.currentCrafting), new IPoint(1.0f, 6.0f));
this.renderFluid(binnie.extratrees.machines.Brewery.getOutput(logic.currentCrafting), new IPoint(17.0f, 6.0f));
this.renderFluid(binnie.extratrees.machines.Brewery.getOutput(logic.currentCrafting), new IPoint(1.0f, 22.0f));
this.renderFluid(binnie.extratrees.machines.Brewery.getOutput(logic.currentCrafting), new IPoint(17.0f, 22.0f));
GL11.glDisable(3089);
final ItemStackSet stacks = new ItemStackSet();
Collections.addAll(stacks, logic.currentCrafting.inputs);
stacks.add(logic.currentCrafting.ingr);
int x = 1;
int y = 6;
for (final ItemStack stack : stacks) {
CraftGUI.Render.item(new IPoint(x, y), stack);
x += 16;
if (x > 18) {
x = 1;
y += 16;
}
}
}
@Override
public void onRenderForeground() {
}
@Override
public void onRenderForeground() {
}
protected ControlBreweryProgress(final IWidget parent, final float x, final float y) {
super(parent, x, y, 34.0f, 39.0f);
this.addAttribute(Attribute.MouseOver);
}
protected ControlBreweryProgress(final IWidget parent, final float x, final float y) {
super(parent, x, y, 34.0f, 39.0f);
this.addAttribute(Attribute.MouseOver);
}
public void renderFluid(final FluidStack fluid, final IPoint pos) {
public void renderFluid(final FluidStack fluid, final IPoint pos) {
// final int hex = fluid.getFluid().getColor(fluid);
// final int r = (hex & 0xFF0000) >> 16;
// final int g = (hex & 0xFF00) >> 8;
@@ -80,6 +80,6 @@ public class ControlBreweryProgress extends ControlProgressBase {
// GL11.glBlendFunc(770, 771);
// CraftGUI.Render.iconBlock(pos, fluid.getFluid().getIcon());
// GL11.glDisable(3042);
}
}
}