/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.google.common.collect.ImmutableList * com.google.common.collect.Lists * it.unimi.dsi.fastutil.floats.FloatComparators * org.jspecify.annotations.Nullable */ package net.minecraft.client.gui.screens.debug; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; import it.unimi.dsi.fastutil.floats.FloatComparators; import java.util.ArrayList; import java.util.Comparator; import java.util.List; import java.util.Map; import net.minecraft.ChatFormatting; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiGraphics; import net.minecraft.client.gui.components.AbstractWidget; import net.minecraft.client.gui.components.Button; import net.minecraft.client.gui.components.ContainerObjectSelectionList; import net.minecraft.client.gui.components.CycleButton; import net.minecraft.client.gui.components.EditBox; import net.minecraft.client.gui.components.MultiLineTextWidget; import net.minecraft.client.gui.components.StringWidget; import net.minecraft.client.gui.components.debug.DebugEntryCategory; import net.minecraft.client.gui.components.debug.DebugScreenEntries; import net.minecraft.client.gui.components.debug.DebugScreenEntry; import net.minecraft.client.gui.components.debug.DebugScreenEntryStatus; import net.minecraft.client.gui.components.debug.DebugScreenProfile; import net.minecraft.client.gui.components.events.GuiEventListener; import net.minecraft.client.gui.layouts.HeaderAndFooterLayout; import net.minecraft.client.gui.layouts.LayoutSettings; import net.minecraft.client.gui.layouts.LinearLayout; import net.minecraft.client.gui.layouts.SpacerElement; import net.minecraft.client.gui.narration.NarratableEntry; import net.minecraft.client.gui.narration.NarratedElementType; import net.minecraft.client.gui.narration.NarrationElementOutput; import net.minecraft.client.gui.screens.Screen; import net.minecraft.network.chat.CommonComponents; import net.minecraft.network.chat.Component; import net.minecraft.network.chat.MutableComponent; import net.minecraft.resources.Identifier; import org.jspecify.annotations.Nullable; public class DebugOptionsScreen extends Screen { private static final Component TITLE = Component.translatable("debug.options.title"); private static final Component SUBTITLE = Component.translatable("debug.options.warning").withColor(-2142128); private static final Component ENABLED_TEXT = Component.translatable("debug.entry.always"); private static final Component IN_OVERLAY_TEXT = Component.translatable("debug.entry.overlay"); private static final Component DISABLED_TEXT = CommonComponents.OPTION_OFF; private static final Component NOT_ALLOWED_TOOLTIP = Component.translatable("debug.options.notAllowed.tooltip"); private static final Component SEARCH = Component.translatable("debug.options.search").withStyle(EditBox.SEARCH_HINT_STYLE); private final HeaderAndFooterLayout layout = new HeaderAndFooterLayout(this, 61, 33); private @Nullable OptionList optionList; private EditBox searchBox; private final List