public class DebugOverlayGui extends AbstractGui
Modifier and Type | Field and Description |
---|---|
private Chunk |
chunk |
private ChunkPos |
chunkPos |
private FontRenderer |
fontRenderer |
private java.util.concurrent.CompletableFuture<Chunk> |
futureChunk |
private static java.util.Map<Heightmap.Type,java.lang.String> |
HEIGHTMAP_NAMES |
private Minecraft |
mc |
protected RayTraceResult |
rayTraceBlock |
protected RayTraceResult |
rayTraceFluid |
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
DebugOverlayGui(Minecraft mc) |
Modifier and Type | Method and Description |
---|---|
private int |
blendColors(int col1,
int col2,
float factor) |
private static long |
bytesToMb(long bytes) |
private Chunk |
getChunk() |
protected java.util.List<java.lang.String> |
getDebugInfoLeft() |
protected java.util.List<java.lang.String> |
getDebugInfoRight() |
private int |
getFrameColor(int height,
int heightMin,
int heightMid,
int heightMax) |
private java.lang.String |
getPropertyString(java.util.Map.Entry<IProperty<?>,java.lang.Comparable<?>> entryIn) |
private Chunk |
getServerChunk() |
private java.lang.String |
getServerChunkStats() |
private World |
getWorld() |
void |
render() |
protected void |
renderDebugInfoLeft() |
protected void |
renderDebugInfoRight() |
private void |
renderLagometer(FrameTimer frameTimerIn,
int xIn,
int widthIn,
boolean fpsIn) |
void |
resetChunk() |
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
private static final java.util.Map<Heightmap.Type,java.lang.String> HEIGHTMAP_NAMES
private final Minecraft mc
private final FontRenderer fontRenderer
protected RayTraceResult rayTraceBlock
protected RayTraceResult rayTraceFluid
@Nullable private ChunkPos chunkPos
@Nullable private Chunk chunk
@Nullable private java.util.concurrent.CompletableFuture<Chunk> futureChunk
public DebugOverlayGui(Minecraft mc)
public void resetChunk()
public void render()
protected void renderDebugInfoLeft()
protected void renderDebugInfoRight()
protected java.util.List<java.lang.String> getDebugInfoLeft()
@Nullable private java.lang.String getServerChunkStats()
private World getWorld()
@Nullable private Chunk getServerChunk()
private Chunk getChunk()
protected java.util.List<java.lang.String> getDebugInfoRight()
private java.lang.String getPropertyString(java.util.Map.Entry<IProperty<?>,java.lang.Comparable<?>> entryIn)
private void renderLagometer(FrameTimer frameTimerIn, int xIn, int widthIn, boolean fpsIn)
private int getFrameColor(int height, int heightMin, int heightMid, int heightMax)
private int blendColors(int col1, int col2, float factor)
private static long bytesToMb(long bytes)