Class DebugScreenOverlay
java.lang.Object
net.minecraft.client.gui.components.DebugScreenOverlay
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DebugScreenOverlay.AllocationRateCalculator
private final BandwidthDebugChart
private final LocalSampleLogger
private HitResult
private LevelChunk
private static final int
private final Font
private final FpsDebugChart
private final LocalSampleLogger
private static final Map
<Heightmap.Types, String> private ChunkPos
private HitResult
private static final int
private static final int
private static final int
private final Minecraft
private final PingDebugChart
private final LocalSampleLogger
private final Map
<RemoteDebugSampleType, LocalSampleLogger> private boolean
private boolean
private boolean
private boolean
private CompletableFuture
<LevelChunk> private final LocalSampleLogger
private final TpsDebugChart
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static long
bytesToMegabytes
(long bytes) void
Neo: Extracted body ofdrawGameInformation(net.minecraft.client.gui.GuiGraphics)
to return game information without drawing forCustomizeGuiOverlayEvent.DebugText
to modifyNeo: Extracted body ofdrawSystemInformation(net.minecraft.client.gui.GuiGraphics)
to return system information without drawing forCustomizeGuiOverlayEvent.DebugText
to modifyprotected void
drawGameInformation
(GuiGraphics guiGraphics) protected void
drawSystemInformation
(GuiGraphics guiGraphics) private LevelChunk
private Level
getLevel()
private String
getPropertyValueString
(Map.Entry<Property<?>, Comparable<?>> entry) private LevelChunk
private String
private ServerLevel
void
logFrameDuration
(long frameDuration) void
logRemoteSample
(long[] sample, RemoteDebugSampleType sampleType) private static String
printBiome
(Holder<Biome> biomeHolder) void
render
(GuiGraphics guiGraphics) private void
renderLines
(GuiGraphics guiGraphics, List<String> lines, boolean leftSide) void
reset()
boolean
boolean
boolean
boolean
void
void
void
void
-
Field Details
-
COLOR_GREY
private static final int COLOR_GREY- See Also:
-
MARGIN_RIGHT
private static final int MARGIN_RIGHT- See Also:
-
MARGIN_LEFT
private static final int MARGIN_LEFT- See Also:
-
MARGIN_TOP
private static final int MARGIN_TOP- See Also:
-
HEIGHTMAP_NAMES
-
minecraft
-
allocationRateCalculator
-
font
-
block
-
liquid
-
lastPos
-
clientChunk
-
serverChunk
-
renderDebug
private boolean renderDebug -
renderProfilerChart
private boolean renderProfilerChart -
renderFpsCharts
private boolean renderFpsCharts -
renderNetworkCharts
private boolean renderNetworkCharts -
frameTimeLogger
-
tickTimeLogger
-
pingLogger
-
bandwidthLogger
-
remoteSupportingLoggers
-
fpsChart
-
tpsChart
-
pingChart
-
bandwidthChart
-
-
Constructor Details
-
DebugScreenOverlay
-
-
Method Details
-
clearChunkCache
public void clearChunkCache() -
render
-
collectGameInformationText
Neo: Extracted body ofdrawGameInformation(net.minecraft.client.gui.GuiGraphics)
to return game information without drawing forCustomizeGuiOverlayEvent.DebugText
to modify -
drawGameInformation
-
collectSystemInformationText
Neo: Extracted body ofdrawSystemInformation(net.minecraft.client.gui.GuiGraphics)
to return system information without drawing forCustomizeGuiOverlayEvent.DebugText
to modify -
drawSystemInformation
-
renderLines
-
getGameInformation
-
printBiome
-
getServerLevel
-
getServerChunkStats
-
getLevel
-
getServerChunk
-
getClientChunk
-
getSystemInformation
-
getPropertyValueString
-
bytesToMegabytes
private static long bytesToMegabytes(long bytes) -
showDebugScreen
public boolean showDebugScreen() -
showProfilerChart
public boolean showProfilerChart() -
showNetworkCharts
public boolean showNetworkCharts() -
showFpsCharts
public boolean showFpsCharts() -
toggleOverlay
public void toggleOverlay() -
toggleNetworkCharts
public void toggleNetworkCharts() -
toggleFpsCharts
public void toggleFpsCharts() -
toggleProfilerChart
public void toggleProfilerChart() -
logFrameDuration
public void logFrameDuration(long frameDuration) -
getTickTimeLogger
-
getPingLogger
-
getBandwidthLogger
-
logRemoteSample
-
reset
public void reset()
-