mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 23:13:21 +00:00
Started work on IO config GUI for machines.
This commit is contained in:
1 parent
926104ba56
commit
758921d10a
10 files changed
+618
-23
No files matched your search
@@ -25,7 +25,6 @@ import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
import net.minecraftforge.fluids.FluidTank;
|
||||
|
||||
@@ -177,6 +176,8 @@ public class RenderUtil {
|
||||
GL11.glEnable(GL11.GL_TEXTURE_2D);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* left, bottom, right, top
|
||||
*
|
||||
@@ -426,12 +427,12 @@ public class RenderUtil {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public static void renderGuiTank(FluidTank tank, double x, double y, double zLevel, double width, double height) {
|
||||
renderGuiTank(tank.getFluid(),tank.getCapacity(),tank.getFluidAmount(), x, y, zLevel, width, height);
|
||||
}
|
||||
|
||||
public static void renderGuiTank(FluidStack fluid, int capacity, int amount, double x, double y, double zLevel, double width, double height) {
|
||||
|
||||
public static void renderGuiTank(FluidStack fluid, int capacity, int amount, double x, double y, double zLevel, double width, double height) {
|
||||
if(fluid == null || fluid.getFluid() == null || fluid.amount <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user