Add Custom Renderer API for Fluids (#1059)

This commit is contained in:
slprime authored and GitHub committed 2026-10-02 01:22:58 +03:00
1 parent a105a60a1a
commit c020ecbf1f
7 files changed
+151 -65

No files matched your search

@@ -0,0 +1,17 @@
package codechicken.nei.api;
import net.minecraftforge.fluids.Fluid;
/**
* Custom renderer for a fluid, used by NEI fluid display slots and fluid tanks in recipes.
* <p>
* Register with {@link API#registerFluidRenderer(Fluid, IFluidRenderer)}.
*/
public interface IFluidRenderer {
/**
* Renders one 16x16 tile of the fluid. Partial tiles of a tank are clipped by NEI. The amount overlay is drawn by
* NEI.
*/
void renderFluid(Fluid fluid, int x, int y);
}