Package net.minecraft.client.gui.hud
Class DebugHud
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.hud.DebugHud
@Environment(CLIENT) public class DebugHud extends DrawableHelper
-
Field Summary
Fields Modifier and Type Field Description private HitResultblockHitprivate WorldChunkchunkprivate CompletableFuture<WorldChunk>chunkFutureprivate MinecraftClientclientprivate HitResultfluidHitprivate TextRendererfontRendererprivate static Map<Heightmap.Type,String>HEIGHT_MAP_TYPESprivate ChunkPosposFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description DebugHud(MinecraftClient client) -
Method Summary
Modifier and Type Method Description private voiddrawMetricsData(MatrixStack matrices, MetricsData metricsData, int x, int width, boolean showFps)private WorldChunkgetChunk()private WorldChunkgetClientChunk()protected List<String>getLeftText()private intgetMetricsLineColor(int value, int greenValue, int yellowValue, int redValue)protected List<String>getRightText()private ServerWorldgetServerWorld()private StringgetServerWorldDebugString()private WorldgetWorld()private intinterpolateColor(int color1, int color2, float dt)private StringpropertyToString(Map.Entry<Property<?>,Comparable<?>> propEntry)voidrender(MatrixStack matrices)protected voidrenderLeftText(MatrixStack matrices)protected voidrenderRightText(MatrixStack matrices)voidresetChunk()private static longtoMiB(long bytes)Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
-
Field Details
-
HEIGHT_MAP_TYPES
-
client
-
fontRenderer
-
blockHit
-
fluidHit
-
pos
-
chunk
-
chunkFuture
-
-
Constructor Details
-
DebugHud
-
-
Method Details
-
resetChunk
public void resetChunk() -
render
-
renderLeftText
-
renderRightText
-
getLeftText
-
getServerWorld
-
getServerWorldDebugString
-
getWorld
-
getChunk
-
getClientChunk
-
getRightText
-
propertyToString
-
drawMetricsData
private void drawMetricsData(MatrixStack matrices, MetricsData metricsData, int x, int width, boolean showFps) -
getMetricsLineColor
private int getMetricsLineColor(int value, int greenValue, int yellowValue, int redValue) -
interpolateColor
private int interpolateColor(int color1, int color2, float dt) -
toMiB
private static long toMiB(long bytes)
-