Class PressureGaugeRenderer2D

java.lang.Object
me.desht.pneumaticcraft.client.render.pressure_gauge.PressureGaugeRenderer2D

public class PressureGaugeRenderer2D extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    drawPressureGauge(com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.gui.Font fontRenderer, float minPressure, float maxPressure, float dangerPressure, float minWorkingPressure, float currentPressure, int xPos, int yPos)
     
    static void
    drawPressureGauge(com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.gui.Font fontRenderer, float minPressure, float maxPressure, float dangerPressure, float minWorkingPressure, float currentPressure, int xPos, int yPos, int fgColor)
    Render a pressure gauge into a GUI.

    Methods inherited from class java.lang.Object

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

    • PressureGaugeRenderer2D

      public PressureGaugeRenderer2D()
  • Method Details

    • drawPressureGauge

      public static void drawPressureGauge(com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.gui.Font fontRenderer, float minPressure, float maxPressure, float dangerPressure, float minWorkingPressure, float currentPressure, int xPos, int yPos)
    • drawPressureGauge

      public static void drawPressureGauge(com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.gui.Font fontRenderer, float minPressure, float maxPressure, float dangerPressure, float minWorkingPressure, float currentPressure, int xPos, int yPos, int fgColor)
      Render a pressure gauge into a GUI. Do not use for in-world rendering (e.g. pressure gauge module)
      Parameters:
      fontRenderer - the font renderer
      minPressure - minimum pressure
      maxPressure - maximum pressure
      dangerPressure - danger pressure (red area)
      minWorkingPressure - min. working pressure
      currentPressure - current pressure (where needle points)
      xPos - x position
      yPos - y position
      fgColor - color to draw the surround, needle and text