Class BandwidthDebugChart

java.lang.Object
net.minecraft.client.gui.components.debugchart.AbstractDebugChart
net.minecraft.client.gui.components.debugchart.BandwidthDebugChart

public class BandwidthDebugChart extends AbstractDebugChart
  • Field Details

  • Constructor Details

    • BandwidthDebugChart

      public BandwidthDebugChart(Font p_298747_, SampleStorage p_323505_)
  • Method Details

    • renderAdditionalLinesAndLabels

      protected void renderAdditionalLinesAndLabels(GuiGraphics p_298777_, int p_298875_, int p_298575_, int p_298572_)
      Overrides:
      renderAdditionalLinesAndLabels in class AbstractDebugChart
    • drawLabeledLineAtValue

      private void drawLabeledLineAtValue(GuiGraphics guiGraphics, int x, int width, int y, int value)
    • drawLineWithLabel

      private void drawLineWithLabel(GuiGraphics guiGraphics, int x, int width, int y, String text)
    • toDisplayString

      protected String toDisplayString(double p_299213_)
      Specified by:
      toDisplayString in class AbstractDebugChart
    • toDisplayStringInternal

      private static String toDisplayStringInternal(double value)
    • getSampleHeight

      protected int getSampleHeight(double p_298596_)
      Specified by:
      getSampleHeight in class AbstractDebugChart
    • getSampleHeightInternal

      private static int getSampleHeightInternal(double value)
    • getSampleColor

      protected int getSampleColor(long p_298852_)
      Specified by:
      getSampleColor in class AbstractDebugChart
    • toBytesPerSecond

      private static double toBytesPerSecond(double bytesPerTick)