Interface RenderHelper


public interface RenderHelper
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final RenderHelper
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default int[]
    argb(int color)
     
    get()
     
    default void
    renderBox(com.mojang.blaze3d.vertex.VertexConsumer builder, com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, int light, int overlay, float x1, float x2, float y1, float y2, float z1, float z2, int[] color)
    Renders a box with the sprite on each face.
    default void
    renderBox(com.mojang.blaze3d.vertex.VertexConsumer builder, com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, int light, int overlay, int[] color)
    Renders a box with the sprite on each face.
    default void
    renderBox(com.mojang.blaze3d.vertex.VertexConsumer builder, org.joml.Matrix4f pos, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, int light, int overlay, float x1, float x2, float y1, float y2, float z1, float z2, int[] color)
    Renders a box with the sprite on each face.
    default void
    renderFace(com.mojang.blaze3d.vertex.VertexConsumer builder, org.joml.Matrix4f pos, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, net.minecraft.core.Direction side, int light, int overlay, float x1, float x2, float y1, float y2, float z1, float z2, int[] color)
    Renders the face of a box.
    void
    renderFluidBox(com.mojang.blaze3d.vertex.PoseStack pose, net.minecraft.world.level.material.FluidState fluidState, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.client.renderer.MultiBufferSource bufferSource, int light, int overlay)
     
  • Field Details

  • Method Details

    • get

      static RenderHelper get()
    • renderFluidBox

      void renderFluidBox(com.mojang.blaze3d.vertex.PoseStack pose, net.minecraft.world.level.material.FluidState fluidState, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.client.renderer.MultiBufferSource bufferSource, int light, int overlay)
    • argb

      default int[] argb(int color)
    • renderBox

      default void renderBox(com.mojang.blaze3d.vertex.VertexConsumer builder, com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, int light, int overlay, int[] color)
      Renders a box with the sprite on each face.
      Parameters:
      builder - The vertex consumer.
      stack - The pose stack.
      sprite - The sprite to render.
      light - The packed light data.
      overlay - The overlay day.
      color - Unpacked color data in ARGB ordering.
    • renderBox

      default void renderBox(com.mojang.blaze3d.vertex.VertexConsumer builder, com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, int light, int overlay, float x1, float x2, float y1, float y2, float z1, float z2, int[] color)
      Renders a box with the sprite on each face.
      Parameters:
      builder - The vertex consumer.
      stack - The post stack.
      sprite - The sprite to render.
      light - Packed light coordinates.
      overlay - Overlay data.
      x1 - The starting render position on the X axis.
      x2 - The ending render postion on the X axis.
      y1 - The starting render position on the Y axis.
      y2 - The ending render position on the Y axis.
      z1 - The starting render position on the Z axis.
      z2 - The ending render position on the Z axis.
      color - Unpacked color data in ARGB ordering.
    • renderBox

      default void renderBox(com.mojang.blaze3d.vertex.VertexConsumer builder, org.joml.Matrix4f pos, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, int light, int overlay, float x1, float x2, float y1, float y2, float z1, float z2, int[] color)
      Renders a box with the sprite on each face.
      Parameters:
      builder - The vertex consumer.
      pos - The position to render at.
      sprite - The sprite to render.
      light - Packed light coordinates.
      overlay - Overlay data.
      x1 - The starting render position on the X axis.
      x2 - The ending render postion on the X axis.
      y1 - The starting render position on the Y axis.
      y2 - The ending render position on the Y axis.
      z1 - The starting render position on the Z axis.
      z2 - The ending render position on the Z axis.
      color - Unpacked color data in ARGB ordering.
    • renderFace

      default void renderFace(com.mojang.blaze3d.vertex.VertexConsumer builder, org.joml.Matrix4f pos, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, net.minecraft.core.Direction side, int light, int overlay, float x1, float x2, float y1, float y2, float z1, float z2, int[] color)
      Renders the face of a box.
      Parameters:
      builder - The vertex consumer.
      pos - The position to render at.
      sprite - The sprite to render.
      side - The side to render.
      light - Packed light coordinates.
      overlay - Overlay data.
      x1 - The starting render position on the X axis.
      x2 - The ending render postion on the X axis.
      y1 - The starting render position on the Y axis.
      y2 - The ending render position on the Y axis.
      z1 - The starting render position on the Z axis.
      z2 - The ending render position on the Z axis.
      color - Unpacked color data in ARGB ordering.