/* * Decompiled with CFR 0.152. * * Could not load the following classes: * org.jspecify.annotations.Nullable */ package net.minecraft.client.renderer; import com.mojang.blaze3d.platform.DisplayData; import com.mojang.blaze3d.platform.Monitor; import com.mojang.blaze3d.platform.ScreenManager; import com.mojang.blaze3d.platform.Window; import net.minecraft.client.Minecraft; import org.jspecify.annotations.Nullable; public final class VirtualScreen implements AutoCloseable { private final Minecraft minecraft; private final ScreenManager screenManager; public VirtualScreen(Minecraft minecraft) { this.minecraft = minecraft; this.screenManager = new ScreenManager(Monitor::new); } public Window newWindow(DisplayData displayData, @Nullable String fullscreenVideoModeString, String title) { return new Window(this.minecraft, this.screenManager, displayData, fullscreenVideoModeString, title); } @Override public void close() { this.screenManager.shutdown(); } }