Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class RenderLavaTank extends TileEntitySpecialRenderer<TileLavaTank> {
- protected static Minecraft mc = Minecraft.getMinecraft();
- @Override
- public void renderTileEntityAt(TileLavaTank tank, double x, double y, double z, float partialTicks, int destroyStage) {
- FluidStack liquid = tank.getTank().getFluid();
- if (liquid != null) {
- float height = ((float) liquid.amount) / (float) tank.getTank().getCapacity();
- height += (1 * 0.0625);
- float d = RenderUtil.FLUID_OFFSET;
- //RenderUtil.renderFluidCuboid(liquid, tank.getPos(), x + (2 * 0.0625), y, z + (2 * 0.0625), 15 * (2 * 0.0625), height, 1);
- RenderUtil.renderFluidCuboid(liquid, tank.getPos(), x + (2 * 0.0625), y, z + (2 * 0.0625), d, d, d, 1d - d - (4 * 0.0625), height - (2 * 0.0625), 1d - d - (4 * 0.0625));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement