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().
  • Field Details

  • 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 class FluidVolumeRenderer