Class RenderHelper

java.lang.Object
com.minecolonies.core.compatibility.jei.RenderHelper

public class RenderHelper extends Object
JEI GUI rendering utility helpers
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    renderBlock(com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.world.level.block.state.BlockState block, float x, float y, float z, float pitch, float yaw, float scale)
    Render a block model on a GUI.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RenderHelper

      public RenderHelper()
  • Method Details

    • renderBlock

      public static void renderBlock(com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.world.level.block.state.BlockState block, float x, float y, float z, float pitch, float yaw, float scale)
      Render a block model on a GUI.
      Parameters:
      matrixStack - matrix
      block - the blockstate to render
      x - horizontal center position
      y - vertical bottom position
      z - distance from camera
      pitch - rotation forwards
      yaw - rotation sideways
      scale - scaling factor