Class PixelmonRenderingHelper

java.lang.Object
com.pixelmonmod.pixelmon.api.util.helpers.PixelmonRenderingHelper

public class PixelmonRenderingHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    drawAxis(net.minecraft.client.gui.GuiGraphics graphics, int screenWidth, float scale, float height, Color color, org.joml.Quaternionf axis)
     
    getAllAnimations(AbstractClientEntity abstractClientEntity)
    Gets a list of all animations that the Pokémon has.
    static void
    renderEntityInInventory(net.minecraft.client.gui.GuiGraphics graphics, float x, float y, int scale, org.joml.Vector3f translation, org.joml.Quaternionf rotation, org.joml.Quaternionf cameraOverride, net.minecraft.world.entity.LivingEntity entity)
     
    static void
    renderEntityInInventoryFollowsMouse(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.world.entity.LivingEntity entity, int x0, int y0, int x1, int y1, int scale, float offset, float mouseX, float mouseY)
     
    static void
    renderRotateableEntityToScreen(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.world.entity.LivingEntity livingEntity, int x, int y, int width, int height, float savedX, float savedY, float rotationX, float rotationY, float savedRotationX, float savedRotationY, float scale, float partialTicks)
    Renders the statue model on the GUI.
    static void
    renderRotateableEntityToScreen(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.world.entity.LivingEntity livingEntity, int x, int y, int width, int height, float savedX, float savedY, float rotationX, float rotationY, float savedRotationX, float savedRotationY, float scale, float partialTicks, boolean spin)
    Renders the statue model on the GUI.
    static void
    renderRotateableEntityWithXYZAxisToScreen(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.world.entity.LivingEntity livingEntity, int x, int y, int width, int length, float savedX, float savedY, float rotationX, float rotationY, float savedRotationX, float savedRotationY, float scale, float partialTicks, boolean spin, boolean renderAxes, int screenWidth)
    Renders the statue model on the GUI.
    static void
    renderXYZAxisToScreen(net.minecraft.client.gui.GuiGraphics graphics, int screenWidth)
     

    Methods inherited from class java.lang.Object

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

    • PixelmonRenderingHelper

      public PixelmonRenderingHelper()
  • Method Details

    • renderEntityInInventory

      public static void renderEntityInInventory(net.minecraft.client.gui.GuiGraphics graphics, float x, float y, int scale, org.joml.Vector3f translation, org.joml.Quaternionf rotation, @Nullable org.joml.Quaternionf cameraOverride, net.minecraft.world.entity.LivingEntity entity)
    • renderEntityInInventoryFollowsMouse

      public static void renderEntityInInventoryFollowsMouse(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.world.entity.LivingEntity entity, int x0, int y0, int x1, int y1, int scale, float offset, float mouseX, float mouseY)
    • renderRotateableEntityToScreen

      public static void renderRotateableEntityToScreen(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.world.entity.LivingEntity livingEntity, int x, int y, int width, int height, float savedX, float savedY, float rotationX, float rotationY, float savedRotationX, float savedRotationY, float scale, float partialTicks)
      Renders the statue model on the GUI.
      Parameters:
      graphics - The PoseStack matrix.
      livingEntity - The entity to render.
      x - The x coordinate of the model.
      y - The y coordinate of the model.
      width - The width of the model.
      height - The length of the model.
      savedX -
      savedY -
      rotationX -
      rotationY -
      savedRotationX -
      savedRotationY -
      partialTicks - The partial ticks that have elapsed.
    • renderRotateableEntityToScreen

      public static void renderRotateableEntityToScreen(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.world.entity.LivingEntity livingEntity, int x, int y, int width, int height, float savedX, float savedY, float rotationX, float rotationY, float savedRotationX, float savedRotationY, float scale, float partialTicks, boolean spin)
      Renders the statue model on the GUI.
      Parameters:
      graphics - The PoseStack matrix.
      livingEntity - The entity to render.
      x - The x coordinate of the model.
      y - The y coordinate of the model.
      width - The width of the model.
      height - The length of the model.
      savedX -
      savedY -
      rotationX -
      rotationY -
      savedRotationX -
      savedRotationY -
      partialTicks - The partial ticks that have elapsed.
      spin - Whether the model will spin.
    • renderRotateableEntityWithXYZAxisToScreen

      public static void renderRotateableEntityWithXYZAxisToScreen(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.world.entity.LivingEntity livingEntity, int x, int y, int width, int length, float savedX, float savedY, float rotationX, float rotationY, float savedRotationX, float savedRotationY, float scale, float partialTicks, boolean spin, boolean renderAxes, int screenWidth)
      Renders the statue model on the GUI.
      Parameters:
      graphics - The PoseStack matrix.
      livingEntity - The entity to render.
      x - The x coordinate of the model.
      y - The y coordinate of the model.
      width - The width of the model.
      length - The length of the model.
      savedX -
      savedY -
      rotationX -
      rotationY -
      savedRotationX -
      savedRotationY -
      partialTicks - The partial ticks that have elapsed.
      spin - Whether the model will spin.
      renderAxes - Whether a red, green, and blue colored line will be rendered to represent the X, Y, and Z axes.
      screenWidth - Whether the model will spin.
    • renderXYZAxisToScreen

      public static void renderXYZAxisToScreen(net.minecraft.client.gui.GuiGraphics graphics, int screenWidth)
    • drawAxis

      public static void drawAxis(net.minecraft.client.gui.GuiGraphics graphics, int screenWidth, float scale, float height, Color color, org.joml.Quaternionf axis)
    • getAllAnimations

      public static Set<AnimationType> getAllAnimations(AbstractClientEntity abstractClientEntity)
      Gets a list of all animations that the Pokémon has.
      Returns:
      A list of all animations that the Pokémon has.