Class TpsDebugChart
java.lang.Object
net.minecraft.client.gui.components.debugchart.AbstractDebugChart
net.minecraft.client.gui.components.debugchart.TpsDebugChart
-
Field Summary
Modifier 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
ConstructorDescriptionTpsDebugChart
(Font p_299254_, SampleStorage p_324399_, Supplier<Float> p_309098_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
drawAdditionalDimensions
(GuiGraphics p_321511_, int p_321489_, int p_321791_, int p_321685_) protected int
getSampleColor
(long p_299243_) protected int
getSampleHeight
(double p_299161_) protected long
getValueForAggregation
(int p_321565_) protected void
renderAdditionalLinesAndLabels
(GuiGraphics p_298653_, int p_298791_, int p_298387_, int p_298869_) protected String
toDisplayString
(double p_298403_) private static double
toMilliseconds
(double p_298223_) Methods inherited from class net.minecraft.client.gui.components.debugchart.AbstractDebugChart
drawChart, drawDimensions, drawMainDimension, drawStringWithShade, getSampleColor, getWidth
-
Field Details
-
RED
private static final int RED- See Also:
-
YELLOW
private static final int YELLOW- See Also:
-
GREEN
private static final int GREEN- See Also:
-
TICK_METHOD_COLOR
private static final int TICK_METHOD_COLOR- See Also:
-
TASK_COLOR
private static final int TASK_COLOR- See Also:
-
OTHER_COLOR
private static final int OTHER_COLOR- See Also:
-
msptSupplier
-
-
Constructor Details
-
TpsDebugChart
-
-
Method Details
-
renderAdditionalLinesAndLabels
protected void renderAdditionalLinesAndLabels(GuiGraphics p_298653_, int p_298791_, int p_298387_, int p_298869_) - Overrides:
renderAdditionalLinesAndLabels
in classAbstractDebugChart
-
drawAdditionalDimensions
protected void drawAdditionalDimensions(GuiGraphics p_321511_, int p_321489_, int p_321791_, int p_321685_) - Overrides:
drawAdditionalDimensions
in classAbstractDebugChart
-
getValueForAggregation
protected long getValueForAggregation(int p_321565_) - Overrides:
getValueForAggregation
in classAbstractDebugChart
-
toDisplayString
- Specified by:
toDisplayString
in classAbstractDebugChart
-
getSampleHeight
protected int getSampleHeight(double p_299161_) - Specified by:
getSampleHeight
in classAbstractDebugChart
-
getSampleColor
protected int getSampleColor(long p_299243_) - Specified by:
getSampleColor
in classAbstractDebugChart
-
toMilliseconds
private static double toMilliseconds(double p_298223_)
-