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 pFont, SampleStorage pSampleStorage)
  • Method Details

    • renderAdditionalLinesAndLabels

      protected void renderAdditionalLinesAndLabels(GuiGraphics pGuiGraphics, int pX, int pWidth, int pHeight)
      Overrides:
      renderAdditionalLinesAndLabels in class AbstractDebugChart
    • drawLabeledLineAtValue

      private void drawLabeledLineAtValue(GuiGraphics pGuiGraphics, int pX, int pWidth, int pY, int pValue)
    • drawLineWithLabel

      private void drawLineWithLabel(GuiGraphics pGuiGraphics, int pX, int pWidth, int pY, String pText)
    • toDisplayString

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

      private static String toDisplayStringInternal(double pValue)
    • getSampleHeight

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

      private static int getSampleHeightInternal(double pValue)
    • getSampleColor

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

      private static double toBytesPerSecond(double pBytesPerTick)