@@ -0,0 +1,1567 @@
+package info.u_team.u_team_core.gui.render;%0A%0Aimport com.mojang.blaze3d.matrix.MatrixStack;%0Aimport com.mojang.blaze3d.systems.RenderSystem;%0A%0Aimport info.u_team.u_team_core.util.RGBA;%0Aimport net.minecraft.client.Minecraft;%0Aimport net.minecraft.client.gui.AbstractGui;%0Aimport net.minecraft.client.renderer.texture.TextureAtlasSprite;%0Aimport net.minecraft.inventory.container.PlayerContainer;%0Aimport net.minecraft.util.ResourceLocation;%0Aimport net.minecraftforge.fluids.FluidStack;%0A%0Apublic class FluidInventoryRenderer extends AbstractGui %7B%0A%09%0A%09private static final ResourceLocation ATLAS = PlayerContainer.LOCATION_BLOCKS_TEXTURE;%0A%09%0A%09@SuppressWarnings(%22deprecation%22)%0A%09public void drawFluid(MatrixStack matrixStack, int x, int y, FluidStack stack) %7B%0A%09%09if (stack == null %7C%7C stack.isEmpty()) %7B%0A%09%09%09return;%0A%09%09%7D%0A%09%09%0A%09%09final TextureAtlasSprite sprite = getFluidSprite(stack);%0A%09%09Minecraft.getInstance().getTextureManager().bindTexture(ATLAS);%0A%09%09%0A%09%09RenderSystem.enableBlend();%0A%09%09RenderSystem.enableAlphaTest();%0A%09%09%0A%09%09final RGBA rgba = RGBA.fromARGB(stack.getFluid().getAttributes().getColor(stack));%0A%09%09RenderSystem.color4f(rgba.getRedComponent(), rgba.getGreenComponent(), rgba.getBlueComponent(), rgba.getAlphaComponent());%0A%09%09%0A%09%09blit(matrixStack, x, y, 100, 16, 16, sprite);%0A%09%09%0A%09%09RenderSystem.color4f(1, 1, 1, 1);%0A%09%09%0A%09%09RenderSystem.disableAlphaTest();%0A%09%09RenderSystem.disableBlend();%0A%09%7D%0A%09%0A%09private TextureAtlasSprite getFluidSprite(FluidStack stack) %7B%0A%09%09return Minecraft.getInstance().getAtlasSpriteGetter(ATLAS).apply(stack.getFluid().getAttributes().getStillTexture(stack));%0A%09%7D%0A%7D%0A

Copy to new class with renamed name