/* * Decompiled with CFR 0.152. * * Could not load the following classes: * org.jspecify.annotations.Nullable */ package net.minecraft.client.gui.components.debug; import net.minecraft.client.gui.components.debug.DebugEntryCategory; import net.minecraft.client.gui.components.debug.DebugScreenDisplayer; import net.minecraft.client.gui.components.debug.DebugScreenEntry; import net.minecraft.world.level.Level; import net.minecraft.world.level.chunk.LevelChunk; import org.jspecify.annotations.Nullable; public class DebugEntryNoop implements DebugScreenEntry { private final boolean isAllowedWithReducedDebugInfo; public DebugEntryNoop() { this(false); } public DebugEntryNoop(boolean isAllowedWithReducedDebugInfo) { this.isAllowedWithReducedDebugInfo = isAllowedWithReducedDebugInfo; } @Override public void display(DebugScreenDisplayer displayer, @Nullable Level serverOrClientLevel, @Nullable LevelChunk clientChunk, @Nullable LevelChunk serverChunk) { } @Override public boolean isAllowed(boolean reducedDebugInfo) { return this.isAllowedWithReducedDebugInfo || !reducedDebugInfo; } @Override public DebugEntryCategory category() { return DebugEntryCategory.RENDERER; } }