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
Fields inherited from class net.minecraft.client.gui.components.debugchart.AbstractDebugChart
CHART_HEIGHT, COLOR_GREY, font, LINE_WIDTH, logger
-
Constructor Summary
ConstructorDescriptionTpsDebugChart
(Font p_298557_, SampleLogger p_298113_, Supplier<Float> p_309657_) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
getSampleColor
(long p_300761_) protected int
getSampleHeight
(double p_299260_) protected void
renderAdditionalLinesAndLabels
(GuiGraphics p_297354_, int p_298051_, int p_298343_, int p_299488_) protected String
toDisplayString
(double p_301254_) private static double
toMilliseconds
(double p_300655_) Methods inherited from class net.minecraft.client.gui.components.debugchart.AbstractDebugChart
drawChart, 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:
-
msptSupplier
-
-
Constructor Details
-
TpsDebugChart
-
-
Method Details
-
renderAdditionalLinesAndLabels
protected void renderAdditionalLinesAndLabels(GuiGraphics p_297354_, int p_298051_, int p_298343_, int p_299488_) - Overrides:
renderAdditionalLinesAndLabels
in classAbstractDebugChart
-
toDisplayString
- Specified by:
toDisplayString
in classAbstractDebugChart
-
getSampleHeight
protected int getSampleHeight(double p_299260_) - Specified by:
getSampleHeight
in classAbstractDebugChart
-
getSampleColor
protected int getSampleColor(long p_300761_) - Specified by:
getSampleColor
in classAbstractDebugChart
-
toMilliseconds
private static double toMilliseconds(double p_300655_)
-