2025-11-24 22:52:51 +03:00

18 lines
600 B
Java

/*
* Decompiled with CFR 0.152.
*/
package com.mojang.blaze3d.platform;
import java.util.OptionalInt;
public record DisplayData(int width, int height, OptionalInt fullscreenWidth, OptionalInt fullscreenHeight, boolean isFullscreen) {
public DisplayData withSize(int width, int height) {
return new DisplayData(width, height, this.fullscreenWidth, this.fullscreenHeight, this.isFullscreen);
}
public DisplayData withFullscreen(boolean isFullscreen) {
return new DisplayData(this.width, this.height, this.fullscreenWidth, this.fullscreenHeight, isFullscreen);
}
}