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 font, SampleStorage sampleStorage)
  • Method Details

    • renderAdditionalLinesAndLabels

      protected void renderAdditionalLinesAndLabels(GuiGraphics graphics, int left, int width, int bottom)
      Overrides:
      renderAdditionalLinesAndLabels in class AbstractDebugChart
    • drawLabeledLineAtValue

      private void drawLabeledLineAtValue(GuiGraphics graphics, int left, int width, int bottom, int bytesPerSecond)
    • drawLineWithLabel

      private void drawLineWithLabel(GuiGraphics graphics, int x, int width, int y, String label)
    • toDisplayString

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

      private static String toDisplayStringInternal(double bytesPerSecond)
    • getSampleHeight

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

      private static int getSampleHeightInternal(double bytesPerSecond)
    • getSampleColor

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

      private static double toBytesPerSecond(double bytesPerTick)