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
- Mappings:
Namespace Name official dsb
intermediary net/minecraft/class_340
named net/minecraft/client/gui/hud/DebugHud
-
Field Summary
Fields Modifier and Type Field Description private HitResult
blockHit
private WorldChunk
chunk
private CompletableFuture<WorldChunk>
chunkFuture
private MinecraftClient
client
private HitResult
fluidHit
private TextRenderer
fontRenderer
private static Map<Heightmap.Type,String>
HEIGHT_MAP_TYPES
private ChunkPos
pos
Fields 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 void
drawMetricsData(MatrixStack matrices, MetricsData metricsData, int x, int width, boolean showFps)
private WorldChunk
getChunk()
private WorldChunk
getClientChunk()
protected List<String>
getLeftText()
private int
getMetricsLineColor(int value, int greenValue, int yellowValue, int redValue)
protected List<String>
getRightText()
private ServerWorld
getServerWorld()
private String
getServerWorldDebugString()
private World
getWorld()
private int
interpolateColor(int color1, int color2, float dt)
private String
propertyToString(Map.Entry<Property<?>,Comparable<?>> propEntry)
void
render(MatrixStack matrices)
protected void
renderLeftText(MatrixStack matrices)
protected void
renderRightText(MatrixStack matrices)
void
resetChunk()
private static long
toMiB(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
- Mappings:
Namespace Name Mixin selector official a
Ldsb;a:Ljava/util/Map;
intermediary field_19274
Lnet/minecraft/class_340;field_19274:Ljava/util/Map;
named HEIGHT_MAP_TYPES
Lnet/minecraft/client/gui/hud/DebugHud;HEIGHT_MAP_TYPES:Ljava/util/Map;
-
client
- Mappings:
Namespace Name Mixin selector official b
Ldsb;b:Ldqk;
intermediary field_2079
Lnet/minecraft/class_340;field_2079:Lnet/minecraft/class_310;
named client
Lnet/minecraft/client/gui/hud/DebugHud;client:Lnet/minecraft/client/MinecraftClient;
-
fontRenderer
- Mappings:
Namespace Name Mixin selector official c
Ldsb;c:Ldrf;
intermediary field_2081
Lnet/minecraft/class_340;field_2081:Lnet/minecraft/class_327;
named fontRenderer
Lnet/minecraft/client/gui/hud/DebugHud;fontRenderer:Lnet/minecraft/client/font/TextRenderer;
-
blockHit
- Mappings:
Namespace Name Mixin selector official d
Ldsb;d:Ldis;
intermediary field_2082
Lnet/minecraft/class_340;field_2082:Lnet/minecraft/class_239;
named blockHit
Lnet/minecraft/client/gui/hud/DebugHud;blockHit:Lnet/minecraft/util/hit/HitResult;
-
fluidHit
- Mappings:
Namespace Name Mixin selector official e
Ldsb;e:Ldis;
intermediary field_2083
Lnet/minecraft/class_340;field_2083:Lnet/minecraft/class_239;
named fluidHit
Lnet/minecraft/client/gui/hud/DebugHud;fluidHit:Lnet/minecraft/util/hit/HitResult;
-
pos
- Mappings:
Namespace Name Mixin selector official i
Ldsb;i:Lbta;
intermediary field_2085
Lnet/minecraft/class_340;field_2085:Lnet/minecraft/class_1923;
named pos
Lnet/minecraft/client/gui/hud/DebugHud;pos:Lnet/minecraft/util/math/ChunkPos;
-
chunk
- Mappings:
Namespace Name Mixin selector official j
Ldsb;j:Lcjw;
intermediary field_2084
Lnet/minecraft/class_340;field_2084:Lnet/minecraft/class_2818;
named chunk
Lnet/minecraft/client/gui/hud/DebugHud;chunk:Lnet/minecraft/world/chunk/WorldChunk;
-
chunkFuture
- Mappings:
Namespace Name Mixin selector official k
Ldsb;k:Ljava/util/concurrent/CompletableFuture;
intermediary field_2080
Lnet/minecraft/class_340;field_2080:Ljava/util/concurrent/CompletableFuture;
named chunkFuture
Lnet/minecraft/client/gui/hud/DebugHud;chunkFuture:Ljava/util/concurrent/CompletableFuture;
-
-
Constructor Details
-
DebugHud
- Mappings:
Namespace Name Mixin selector official <init>
Ldsb;<init>(Ldqk;)V
intermediary <init>
Lnet/minecraft/class_340;<init>(Lnet/minecraft/class_310;)V
named <init>
Lnet/minecraft/client/gui/hud/DebugHud;<init>(Lnet/minecraft/client/MinecraftClient;)V
-
-
Method Details
-
resetChunk
public void resetChunk()- Mappings:
Namespace Name Mixin selector official a
Ldsb;a()V
intermediary method_1842
Lnet/minecraft/class_340;method_1842()V
named resetChunk
Lnet/minecraft/client/gui/hud/DebugHud;resetChunk()V
-
render
- Mappings:
Namespace Name Mixin selector official a
Ldsb;a(Ldlr;)V
intermediary method_1846
Lnet/minecraft/class_340;method_1846(Lnet/minecraft/class_4587;)V
named render
Lnet/minecraft/client/gui/hud/DebugHud;render(Lnet/minecraft/client/util/math/MatrixStack;)V
-
renderLeftText
- Mappings:
Namespace Name Mixin selector official b
Ldsb;b(Ldlr;)V
intermediary method_1847
Lnet/minecraft/class_340;method_1847(Lnet/minecraft/class_4587;)V
named renderLeftText
Lnet/minecraft/client/gui/hud/DebugHud;renderLeftText(Lnet/minecraft/client/util/math/MatrixStack;)V
-
renderRightText
- Mappings:
Namespace Name Mixin selector official c
Ldsb;c(Ldlr;)V
intermediary method_1848
Lnet/minecraft/class_340;method_1848(Lnet/minecraft/class_4587;)V
named renderRightText
Lnet/minecraft/client/gui/hud/DebugHud;renderRightText(Lnet/minecraft/client/util/math/MatrixStack;)V
-
getLeftText
- Mappings:
Namespace Name Mixin selector official b
Ldsb;b()Ljava/util/List;
intermediary method_1835
Lnet/minecraft/class_340;method_1835()Ljava/util/List;
named getLeftText
Lnet/minecraft/client/gui/hud/DebugHud;getLeftText()Ljava/util/List;
-
getServerWorld
- Mappings:
Namespace Name Mixin selector official d
Ldsb;d()Laav;
intermediary method_20603
Lnet/minecraft/class_340;method_20603()Lnet/minecraft/class_3218;
named getServerWorld
Lnet/minecraft/client/gui/hud/DebugHud;getServerWorld()Lnet/minecraft/server/world/ServerWorld;
-
getServerWorldDebugString
- Mappings:
Namespace Name Mixin selector official e
Ldsb;e()Ljava/lang/String;
intermediary method_27871
Lnet/minecraft/class_340;method_27871()Ljava/lang/String;
named getServerWorldDebugString
Lnet/minecraft/client/gui/hud/DebugHud;getServerWorldDebugString()Ljava/lang/String;
-
getWorld
- Mappings:
Namespace Name Mixin selector official f
Ldsb;f()Lbtv;
intermediary method_1840
Lnet/minecraft/class_340;method_1840()Lnet/minecraft/class_1937;
named getWorld
Lnet/minecraft/client/gui/hud/DebugHud;getWorld()Lnet/minecraft/world/World;
-
getChunk
- Mappings:
Namespace Name Mixin selector official g
Ldsb;g()Lcjw;
intermediary method_1834
Lnet/minecraft/class_340;method_1834()Lnet/minecraft/class_2818;
named getChunk
Lnet/minecraft/client/gui/hud/DebugHud;getChunk()Lnet/minecraft/world/chunk/WorldChunk;
-
getClientChunk
- Mappings:
Namespace Name Mixin selector official h
Ldsb;h()Lcjw;
intermediary method_1836
Lnet/minecraft/class_340;method_1836()Lnet/minecraft/class_2818;
named getClientChunk
Lnet/minecraft/client/gui/hud/DebugHud;getClientChunk()Lnet/minecraft/world/chunk/WorldChunk;
-
getRightText
- Mappings:
Namespace Name Mixin selector official c
Ldsb;c()Ljava/util/List;
intermediary method_1839
Lnet/minecraft/class_340;method_1839()Ljava/util/List;
named getRightText
Lnet/minecraft/client/gui/hud/DebugHud;getRightText()Ljava/util/List;
-
propertyToString
- Mappings:
Namespace Name Mixin selector official a
Ldsb;a(Ljava/util/Map$Entry;)Ljava/lang/String;
intermediary method_1845
Lnet/minecraft/class_340;method_1845(Ljava/util/Map$Entry;)Ljava/lang/String;
named propertyToString
Lnet/minecraft/client/gui/hud/DebugHud;propertyToString(Ljava/util/Map$Entry;)Ljava/lang/String;
-
drawMetricsData
private void drawMetricsData(MatrixStack matrices, MetricsData metricsData, int x, int width, boolean showFps)- Mappings:
Namespace Name Mixin selector official a
Ldsb;a(Ldlr;Lafu;IIZ)V
intermediary method_15870
Lnet/minecraft/class_340;method_15870(Lnet/minecraft/class_4587;Lnet/minecraft/class_3517;IIZ)V
named drawMetricsData
Lnet/minecraft/client/gui/hud/DebugHud;drawMetricsData(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/util/MetricsData;IIZ)V
-
getMetricsLineColor
private int getMetricsLineColor(int value, int greenValue, int yellowValue, int redValue)- Mappings:
Namespace Name Mixin selector official a
Ldsb;a(IIII)I
intermediary method_1833
Lnet/minecraft/class_340;method_1833(IIII)I
named getMetricsLineColor
Lnet/minecraft/client/gui/hud/DebugHud;getMetricsLineColor(IIII)I
-
interpolateColor
private int interpolateColor(int color1, int color2, float dt)- Mappings:
Namespace Name Mixin selector official a
Ldsb;a(IIF)I
intermediary method_1843
Lnet/minecraft/class_340;method_1843(IIF)I
named interpolateColor
Lnet/minecraft/client/gui/hud/DebugHud;interpolateColor(IIF)I
-
toMiB
private static long toMiB(long bytes)- Mappings:
Namespace Name Mixin selector official a
Ldsb;a(J)J
intermediary method_1838
Lnet/minecraft/class_340;method_1838(J)J
named toMiB
Lnet/minecraft/client/gui/hud/DebugHud;toMiB(J)J
-