@Environment(value=CLIENT)
public final class Scissors
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Scissors.Frame
A single scissor frame in the stack.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
pop()
Pops the topmost scissor frame and refreshes the scissored area.
|
static Scissors.Frame |
push(int x,
int y,
int width,
int height)
Pushes a new scissor frame onto the stack and refreshes the scissored area.
|
public static Scissors.Frame push(int x, int y, int width, int height)
x - the frame's X coordinatey - the frame's Y coordinatewidth - the frame's width in pixelsheight - the frame's height in pixelspublic static void pop()
java.lang.IllegalStateException - if there are no scissor frames on the stack