Class RenderHelper
java.lang.Object
com.mrbysco.roughlyenoughprofessions.RenderHelper
A helper class to render the Villager entity on the screen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.joml.Quaternionfstatic final org.joml.Vector3f -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrenderVillager(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, double scale, double yaw, double pitch, net.minecraft.world.entity.npc.Villager villager) Render the Villager entity on the screen
-
Field Details
-
TRANSLATION
public static final org.joml.Vector3f TRANSLATION -
ANGLE
public static final org.joml.Quaternionf ANGLE
-
-
Constructor Details
-
RenderHelper
public RenderHelper()
-
-
Method Details
-
renderVillager
public static void renderVillager(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, double scale, double yaw, double pitch, net.minecraft.world.entity.npc.Villager villager) Render the Villager entity on the screen- Parameters:
guiGraphics- The GuiGraphics instancex- The x positiony- The y positionscale- The scale of the entityyaw- The yaw of the entitypitch- The pitch of the entityvillager- The Villager entity to render
-