Package net.minecraft.client.gui.overlay
Class DebugOverlayGui
- java.lang.Object
-
- net.minecraft.client.gui.AbstractGui
-
- net.minecraft.client.gui.overlay.DebugOverlayGui
-
- Direct Known Subclasses:
ForgeIngameGui.GuiOverlayDebugForge
public class DebugOverlayGui extends AbstractGui
-
-
Field Summary
Fields Modifier and Type Field Description protected RayTraceResult
block
private Chunk
clientChunk
private FontRenderer
font
private static java.util.Map<Heightmap.Type,java.lang.String>
HEIGHTMAP_NAMES
private ChunkPos
lastPos
protected RayTraceResult
liquid
private Minecraft
minecraft
private java.util.concurrent.CompletableFuture<Chunk>
serverChunk
-
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
-
Constructor Summary
Constructors Constructor Description DebugOverlayGui(Minecraft p_i45543_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static long
bytesToMegabytes(long p_175240_0_)
void
clearChunkCache()
private int
colorLerp(int p_181553_1_, int p_181553_2_, float p_181553_3_)
private void
drawChart(MatrixStack p_238509_1_, FrameTimer p_238509_2_, int p_238509_3_, int p_238509_4_, boolean p_238509_5_)
protected void
drawGameInformation(MatrixStack p_230024_1_)
protected void
drawSystemInformation(MatrixStack p_230025_1_)
private Chunk
getClientChunk()
protected java.util.List<java.lang.String>
getGameInformation()
private World
getLevel()
private java.lang.String
getPropertyValueString(java.util.Map.Entry<Property<?>,java.lang.Comparable<?>> p_211534_1_)
private int
getSampleColor(int p_181552_1_, int p_181552_2_, int p_181552_3_, int p_181552_4_)
private Chunk
getServerChunk()
private java.lang.String
getServerChunkStats()
private ServerWorld
getServerLevel()
protected java.util.List<java.lang.String>
getSystemInformation()
void
render(MatrixStack p_194818_1_)
-
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
-
-
-
Field Detail
-
HEIGHTMAP_NAMES
private static final java.util.Map<Heightmap.Type,java.lang.String> HEIGHTMAP_NAMES
-
minecraft
private final Minecraft minecraft
-
font
private final FontRenderer font
-
block
protected RayTraceResult block
-
liquid
protected RayTraceResult liquid
-
lastPos
@Nullable private ChunkPos lastPos
-
clientChunk
@Nullable private Chunk clientChunk
-
serverChunk
@Nullable private java.util.concurrent.CompletableFuture<Chunk> serverChunk
-
-
Constructor Detail
-
DebugOverlayGui
public DebugOverlayGui(Minecraft p_i45543_1_)
-
-
Method Detail
-
clearChunkCache
public void clearChunkCache()
-
render
public void render(MatrixStack p_194818_1_)
-
drawGameInformation
protected void drawGameInformation(MatrixStack p_230024_1_)
-
drawSystemInformation
protected void drawSystemInformation(MatrixStack p_230025_1_)
-
getGameInformation
protected java.util.List<java.lang.String> getGameInformation()
-
getServerLevel
@Nullable private ServerWorld getServerLevel()
-
getServerChunkStats
@Nullable private java.lang.String getServerChunkStats()
-
getLevel
private World getLevel()
-
getServerChunk
@Nullable private Chunk getServerChunk()
-
getClientChunk
private Chunk getClientChunk()
-
getSystemInformation
protected java.util.List<java.lang.String> getSystemInformation()
-
getPropertyValueString
private java.lang.String getPropertyValueString(java.util.Map.Entry<Property<?>,java.lang.Comparable<?>> p_211534_1_)
-
drawChart
private void drawChart(MatrixStack p_238509_1_, FrameTimer p_238509_2_, int p_238509_3_, int p_238509_4_, boolean p_238509_5_)
-
getSampleColor
private int getSampleColor(int p_181552_1_, int p_181552_2_, int p_181552_3_, int p_181552_4_)
-
colorLerp
private int colorLerp(int p_181553_1_, int p_181553_2_, float p_181553_3_)
-
bytesToMegabytes
private static long bytesToMegabytes(long p_175240_0_)
-
-