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 intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intFields 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 voiddrawLabeledLineAtValue(GuiGraphics guiGraphics, int x, int width, int y, int value) private voiddrawLineWithLabel(GuiGraphics guiGraphics, int x, int width, int y, String text) protected intgetSampleColor(long value) protected intgetSampleHeight(double value) private static intgetSampleHeightInternal(double value) protected voidrenderAdditionalLinesAndLabels(GuiGraphics guiGraphics, int x, int width, int height) private static doubletoBytesPerSecond(double bytesPerTick) protected StringtoDisplayString(double value) private static StringtoDisplayStringInternal(double value) 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 guiGraphics, int x, int width, int height) - Overrides:
renderAdditionalLinesAndLabelsin classAbstractDebugChart
-
drawLabeledLineAtValue
-
drawLineWithLabel
-
toDisplayString
- Specified by:
toDisplayStringin classAbstractDebugChart
-
toDisplayStringInternal
-
getSampleHeight
protected int getSampleHeight(double value) - Specified by:
getSampleHeightin classAbstractDebugChart
-
getSampleHeightInternal
private static int getSampleHeightInternal(double value) -
getSampleColor
protected int getSampleColor(long value) - Specified by:
getSampleColorin classAbstractDebugChart
-
toBytesPerSecond
private static double toBytesPerSecond(double bytesPerTick)
-