Class AbstractDebugChart

java.lang.Object
net.minecraft.client.gui.components.debugchart.AbstractDebugChart
Direct Known Subclasses:
BandwidthDebugChart, FpsDebugChart, PingDebugChart, TpsDebugChart

public abstract class AbstractDebugChart extends Object
  • Field Details

  • Constructor Details

    • AbstractDebugChart

      protected AbstractDebugChart(Font font, SampleStorage sampleStorage)
  • Method Details

    • getWidth

      public int getWidth(int maxWidth)
    • getFullHeight

      public int getFullHeight()
    • extractRenderState

      public void extractRenderState(GuiGraphicsExtractor graphics, int left, int width)
    • extractSampleBars

      protected void extractSampleBars(GuiGraphicsExtractor graphics, int bottom, int currentX, int sampleIndex)
    • extractMainSampleBar

      protected void extractMainSampleBar(GuiGraphicsExtractor graphics, int bottom, int currentX, int sampleIndex)
    • extractAdditionalSampleBars

      protected void extractAdditionalSampleBars(GuiGraphicsExtractor graphics, int bottom, int currentX, int sampleIndex)
    • getValueForAggregation

      protected long getValueForAggregation(int sampleIndex)
    • extractAdditionalLinesAndLabels

      protected void extractAdditionalLinesAndLabels(GuiGraphicsExtractor graphics, int left, int width, int bottom)
    • extractStringWithShade

      protected void extractStringWithShade(GuiGraphicsExtractor graphics, String str, int x, int y)
    • toDisplayString

      protected abstract String toDisplayString(double sample)
    • getSampleHeight

      protected abstract int getSampleHeight(double sample)
    • getSampleColor

      protected abstract int getSampleColor(long sample)
    • getSampleColor

      protected int getSampleColor(double sample, double min, int minColor, double mid, int midColor, double max, int maxColor)