Class DefaultFluidVolumeRenderer
java.lang.Object
alexiil.mc.lib.attributes.fluid.render.FluidVolumeRenderer
alexiil.mc.lib.attributes.fluid.render.DefaultFluidVolumeRenderer
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 inherited from class alexiil.mc.lib.attributes.fluid.render.FluidVolumeRenderer
VCPS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
render
(FluidVolume fluid, 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
-
INSTANCE
-
-
Constructor Details
-
DefaultFluidVolumeRenderer
protected DefaultFluidVolumeRenderer()
-
-
Method Details
-
render
public void render(FluidVolume fluid, List<FluidRenderFace> faces, net.minecraft.client.render.VertexConsumerProvider vcp, net.minecraft.client.util.math.MatrixStack matrices) Description copied from class:FluidVolumeRenderer
Renders a list of faces of the given fluid at the specified co-ordinates.- Specified by:
render
in classFluidVolumeRenderer
-