/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.google.common.collect.Lists * it.unimi.dsi.fastutil.booleans.BooleanConsumer * org.jspecify.annotations.Nullable */ package net.minecraft.client.gui.screens; import com.google.common.collect.Lists; import it.unimi.dsi.fastutil.booleans.BooleanConsumer; import java.util.List; import net.minecraft.ChatFormatting; import net.minecraft.client.gui.ActiveTextCollector; import net.minecraft.client.gui.GuiGraphics; import net.minecraft.client.gui.TextAlignment; import net.minecraft.client.gui.components.Button; import net.minecraft.client.gui.screens.ConfirmScreen; import net.minecraft.client.gui.screens.Screen; import net.minecraft.client.gui.screens.TitleScreen; import net.minecraft.client.input.MouseButtonEvent; import net.minecraft.client.multiplayer.ClientLevel; import net.minecraft.client.player.LocalPlayer; import net.minecraft.client.renderer.RenderPipelines; import net.minecraft.network.chat.ClickEvent; import net.minecraft.network.chat.CommonComponents; import net.minecraft.network.chat.Component; import net.minecraft.network.chat.MutableComponent; import net.minecraft.network.chat.Style; import net.minecraft.resources.Identifier; import org.jspecify.annotations.Nullable; public class DeathScreen extends Screen { private static final int TITLE_SCALE = 2; private static final Identifier DRAFT_REPORT_SPRITE = Identifier.withDefaultNamespace("icon/draft_report"); private int delayTicker; private final @Nullable Component causeOfDeath; private final boolean hardcore; private final LocalPlayer player; private final Component deathScore; private final List