Class BandwidthDebugChart
java.lang.Object
net.minecraft.client.gui.components.debugchart.AbstractDebugChart
net.minecraft.client.gui.components.debugchart.BandwidthDebugChart
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private static final int
private static final int
private static final int
Fields inherited from class net.minecraft.client.gui.components.debugchart.AbstractDebugChart
CHART_HEIGHT, COLOR_GREY, font, LINE_WIDTH, sampleStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
drawLabeledLineAtValue
(GuiGraphics pGuiGraphics, int pX, int pWidth, int pY, int pValue) private void
drawLineWithLabel
(GuiGraphics pGuiGraphics, int pX, int pWidth, int pY, String pText) protected int
getSampleColor
(long pValue) protected int
getSampleHeight
(double pValue) private static int
getSampleHeightInternal
(double pValue) protected void
renderAdditionalLinesAndLabels
(GuiGraphics pGuiGraphics, int pX, int pWidth, int pHeight) private static double
toBytesPerSecond
(double pBytesPerTick) protected String
toDisplayString
(double pValue) private static String
toDisplayStringInternal
(double pValue) Methods inherited from class net.minecraft.client.gui.components.debugchart.AbstractDebugChart
drawAdditionalDimensions, drawChart, drawDimensions, drawMainDimension, drawStringWithShade, getSampleColor, getValueForAggregation, getWidth
-
Field Details
-
MIN_COLOR
private static final int MIN_COLOR- See Also:
-
MID_COLOR
private static final int MID_COLOR- See Also:
-
MAX_COLOR
private static final int MAX_COLOR- See Also:
-
KILOBYTE
private static final int KILOBYTE- See Also:
-
MEGABYTE
private static final int MEGABYTE- See Also:
-
CHART_TOP_VALUE
private static final int CHART_TOP_VALUE- See Also:
-
-
Constructor Details
-
BandwidthDebugChart
-
-
Method Details
-
renderAdditionalLinesAndLabels
protected void renderAdditionalLinesAndLabels(GuiGraphics pGuiGraphics, int pX, int pWidth, int pHeight) - Overrides:
renderAdditionalLinesAndLabels
in classAbstractDebugChart
-
drawLabeledLineAtValue
private void drawLabeledLineAtValue(GuiGraphics pGuiGraphics, int pX, int pWidth, int pY, int pValue) -
drawLineWithLabel
-
toDisplayString
- Specified by:
toDisplayString
in classAbstractDebugChart
-
toDisplayStringInternal
-
getSampleHeight
protected int getSampleHeight(double pValue) - Specified by:
getSampleHeight
in classAbstractDebugChart
-
getSampleHeightInternal
private static int getSampleHeightInternal(double pValue) -
getSampleColor
protected int getSampleColor(long pValue) - Specified by:
getSampleColor
in classAbstractDebugChart
-
toBytesPerSecond
private static double toBytesPerSecond(double pBytesPerTick)
-