package com.mojang.blaze3d.systems; import com.mojang.blaze3d.DontObfuscate; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; @Environment(EnvType.CLIENT) @DontObfuscate public class ScissorState { private boolean enabled; private int x; private int y; private int width; private int height; public void enable(int i, int j, int k, int l) { this.enabled = true; this.x = i; this.y = j; this.width = k; this.height = l; } public void disable() { this.enabled = false; } public boolean isEnabled() { return this.enabled; } public int getX() { return this.x; } public int getY() { return this.y; } public int getWidth() { return this.width; } public int getHeight() { return this.height; } public void copyFrom(ScissorState scissorState) { this.enabled = scissorState.enabled; this.x = scissorState.x; this.y = scissorState.y; this.width = scissorState.width; this.height = scissorState.height; } }