package net.minecraft.client.gui.components.debug; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.minecraft.world.level.Level; import net.minecraft.world.level.chunk.LevelChunk; import org.jspecify.annotations.Nullable; @Environment(EnvType.CLIENT) public interface DebugScreenEntry { void display(DebugScreenDisplayer displayer, @Nullable Level serverOrClientLevel, @Nullable LevelChunk clientChunk, @Nullable LevelChunk serverChunk); default boolean isAllowed(final boolean reducedDebugInfo) { return !reducedDebugInfo; } default DebugEntryCategory category() { return DebugEntryCategory.SCREEN_TEXT; } }