minecraft-src/com/mojang/blaze3d/systems/ScissorState.java
2025-09-18 12:27:44 +00:00

45 lines
708 B
Java

package com.mojang.blaze3d.systems;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
@Environment(EnvType.CLIENT)
public class ScissorState {
private boolean enabled;
private int x;
private int y;
private int width;
private int height;
public void enable(int x, int y, int width, int height) {
this.enabled = true;
this.x = x;
this.y = y;
this.width = width;
this.height = height;
}
public void disable() {
this.enabled = false;
}
public boolean enabled() {
return this.enabled;
}
public int x() {
return this.x;
}
public int y() {
return this.y;
}
public int width() {
return this.width;
}
public int height() {
return this.height;
}
}