mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-03-11 12:15:35 +00:00
SILEX tweaks, arc welder model
This commit is contained in:
parent
d0530d2d7f
commit
d247f1dff0
@ -6,6 +6,8 @@ import org.lwjgl.opengl.GL11;
|
||||
|
||||
import com.hbm.inventory.container.ContainerSILEX;
|
||||
import com.hbm.inventory.fluid.Fluids;
|
||||
import com.hbm.inventory.recipes.SILEXRecipes;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.items.machine.ItemFELCrystal.EnumWavelengths;
|
||||
import com.hbm.lib.RefStrings;
|
||||
import com.hbm.packet.AuxButtonPacket;
|
||||
@ -18,6 +20,7 @@ import net.minecraft.client.audio.PositionedSoundRecord;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class GUISILEX extends GuiInfoContainer {
|
||||
@ -85,7 +88,7 @@ public class GUISILEX extends GuiInfoContainer {
|
||||
|
||||
if(silex.tank.getFill() > 0) {
|
||||
|
||||
if(silex.tank.getTankType() == Fluids.ACID || silex.fluidConversion.containsKey(silex.tank.getTankType())) {
|
||||
if(silex.tank.getTankType() == Fluids.ACID || silex.fluidConversion.containsKey(silex.tank.getTankType()) || SILEXRecipes.getOutput(new ItemStack(ModItems.fluid_icon, 1, silex.tank.getTankType().getID())) != null) {
|
||||
drawTexturedModalRect(guiLeft + 7, guiTop + 41, 176, 118, 54, 9);
|
||||
} else {
|
||||
drawTexturedModalRect(guiLeft + 7, guiTop + 41, 176, 109, 54, 9);
|
||||
|
||||
@ -158,10 +158,26 @@ public class TileEntitySILEX extends TileEntityMachineBase implements IFluidAcce
|
||||
|
||||
if(current != null && current.equals(conv)) {
|
||||
|
||||
int toFill = Math.min(10, Math.min(maxFill - currentFill, tank.getFill()));
|
||||
int toFill = Math.min(50, Math.min(maxFill - currentFill, tank.getFill()));
|
||||
currentFill += toFill;
|
||||
tank.setFill(tank.getFill() - toFill);
|
||||
}
|
||||
} else {
|
||||
ComparableStack direct = new ComparableStack(ModItems.fluid_icon, 1, tank.getTankType().getID());
|
||||
|
||||
if(SILEXRecipes.getOutput(direct.toStack()) != null) {
|
||||
|
||||
if(currentFill == 0) {
|
||||
current = (ComparableStack) direct.copy();
|
||||
}
|
||||
|
||||
if(current != null && current.equals(direct)) {
|
||||
|
||||
int toFill = Math.min(50, Math.min(maxFill - currentFill, tank.getFill()));
|
||||
currentFill += toFill;
|
||||
tank.setFill(tank.getFill() - toFill);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
loadDelay++;
|
||||
|
||||
1225
src/main/resources/assets/hbm/models/machines/arc_welder.obj
Normal file
1225
src/main/resources/assets/hbm/models/machines/arc_welder.obj
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
Loading…
x
Reference in New Issue
Block a user