Class RenderHelper
java.lang.Object
com.minecolonies.core.compatibility.jei.RenderHelper
JEI GUI rendering utility helpers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrenderBlock(net.minecraft.client.gui.GuiGraphics ctx, 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.
-
Constructor Details
-
RenderHelper
public RenderHelper()
-
-
Method Details
-
renderBlock
public static void renderBlock(net.minecraft.client.gui.GuiGraphics ctx, 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:
block- the blockstate to renderx- horizontal center positiony- vertical bottom positionz- distance from camerapitch- rotation forwardsyaw- rotation sidewaysscale- scaling factormatrixStack- matrix
-