Class DefaultFluidVolumeRenderer
java.lang.Object
alexiil.mc.lib.attributes.fluid.render.FluidVolumeRenderer
alexiil.mc.lib.attributes.fluid.render.DefaultFluidVolumeRenderer
public class DefaultFluidVolumeRenderer extends FluidVolumeRenderer
Default
FluidVolumeRenderer that can handle most default fluid types - if the FluidVolume is for a
non-null minecraft Fluid then this will use the sprites provided from the FluidRenderHandlerRegistry.
Otherwise this will fallback to the sprites in FluidVolume.getStillSprite() and
FluidVolume.getFlowingSprite().-
Nested Class Summary
Nested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.render.FluidVolumeRenderer
FluidVolumeRenderer.ComponentRenderFaces, FluidVolumeRenderer.ExpandingVcp -
Field Summary
Fields Modifier and Type Field Description static DefaultFluidVolumeRendererINSTANCE -
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultFluidVolumeRenderer() -
Method Summary
Modifier and Type Method Description voidrender(FluidVolume fluid, java.util.List<FluidRenderFace> faces, net.minecraft.client.render.VertexConsumerProvider vcp, net.minecraft.client.util.math.MatrixStack matrices)Renders a list of faces of the given fluid at the specified co-ordinates.Methods inherited from class alexiil.mc.lib.attributes.fluid.render.FluidVolumeRenderer
getRenderLayer, getSprites, renderGuiRectangle, renderSimpleFluid, renderSimpleFluid, splitFaces, splitFacesComponent, vertex, vertex, vertex, vertex
-
Field Details
-
Constructor Details
-
DefaultFluidVolumeRenderer
protected DefaultFluidVolumeRenderer()
-
-
Method Details
-
render
public void render(FluidVolume fluid, java.util.List<FluidRenderFace> faces, net.minecraft.client.render.VertexConsumerProvider vcp, net.minecraft.client.util.math.MatrixStack matrices)Description copied from class:FluidVolumeRendererRenders a list of faces of the given fluid at the specified co-ordinates.- Specified by:
renderin classFluidVolumeRenderer
-