Class TpsDebugChart
java.lang.Object
net.minecraft.client.gui.components.debugchart.AbstractDebugChart
net.minecraft.client.gui.components.debugchart.TpsDebugChart
-
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
ConstructorsConstructorDescriptionTpsDebugChart
(Font pFont, SampleStorage pSampleStorage, Supplier<Float> pMsptSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
drawAdditionalDimensions
(GuiGraphics pGuiGraphics, int pHeight, int pX, int pIndex) protected int
getSampleColor
(long pValue) protected int
getSampleHeight
(double pValue) protected long
getValueForAggregation
(int pIndex) protected void
renderAdditionalLinesAndLabels
(GuiGraphics pGuiGraphics, int pX, int pWidth, int pHeight) protected String
toDisplayString
(double pValue) private static double
toMilliseconds
(double pValue) 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 pGuiGraphics, int pX, int pWidth, int pHeight) - Overrides:
renderAdditionalLinesAndLabels
in classAbstractDebugChart
-
drawAdditionalDimensions
- Overrides:
drawAdditionalDimensions
in classAbstractDebugChart
-
getValueForAggregation
protected long getValueForAggregation(int pIndex) - Overrides:
getValueForAggregation
in classAbstractDebugChart
-
toDisplayString
- Specified by:
toDisplayString
in classAbstractDebugChart
-
getSampleHeight
protected int getSampleHeight(double pValue) - Specified by:
getSampleHeight
in classAbstractDebugChart
-
getSampleColor
protected int getSampleColor(long pValue) - Specified by:
getSampleColor
in classAbstractDebugChart
-
toMilliseconds
private static double toMilliseconds(double pValue)
-