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 guiGraphics, int x, int width, int y, int value) private void
drawLineWithLabel
(GuiGraphics guiGraphics, int x, int width, int y, String text) protected int
getSampleColor
(long value) protected int
getSampleHeight
(double value) private static int
getSampleHeightInternal
(double value) protected void
renderAdditionalLinesAndLabels
(GuiGraphics guiGraphics, int x, int width, int height) private static double
toBytesPerSecond
(double bytesPerTick) protected String
toDisplayString
(double value) private static String
toDisplayStringInternal
(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:
renderAdditionalLinesAndLabels
in classAbstractDebugChart
-
drawLabeledLineAtValue
-
drawLineWithLabel
-
toDisplayString
- Specified by:
toDisplayString
in classAbstractDebugChart
-
toDisplayStringInternal
-
getSampleHeight
protected int getSampleHeight(double value) - Specified by:
getSampleHeight
in classAbstractDebugChart
-
getSampleHeightInternal
private static int getSampleHeightInternal(double value) -
getSampleColor
protected int getSampleColor(long value) - Specified by:
getSampleColor
in classAbstractDebugChart
-
toBytesPerSecond
private static double toBytesPerSecond(double bytesPerTick)
-