ScissorState.java
com.mojang.blaze3d.systems.ScissorState
信息
- 全限定名:com.mojang.blaze3d.systems.ScissorState
- 类型:public class
- 包:com.mojang.blaze3d.systems
- 源码路径:src/main/java/com/mojang/blaze3d/systems/ScissorState.java
- 起始行号:L7
- 职责:
TODO
字段/常量
-
enabled- 类型:
boolean - 修饰符:
private - 源码定位:
L8 - 说明:
TODO
- 类型:
-
x- 类型:
int - 修饰符:
private - 源码定位:
L9 - 说明:
TODO
- 类型:
-
y- 类型:
int - 修饰符:
private - 源码定位:
L10 - 说明:
TODO
- 类型:
-
width- 类型:
int - 修饰符:
private - 源码定位:
L11 - 说明:
TODO
- 类型:
-
height- 类型:
int - 修饰符:
private - 源码定位:
L12 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
public void enable(int x, int y, int width, int height) @ L14
- 方法名:enable
- 源码定位:L14
- 返回类型:void
- 修饰符:public
参数:
- x: int
- y: int
- width: int
- height: int
说明:
TODO
public void disable() @ L22
- 方法名:disable
- 源码定位:L22
- 返回类型:void
- 修饰符:public
参数:
- 无
说明:
TODO
public boolean enabled() @ L26
- 方法名:enabled
- 源码定位:L26
- 返回类型:boolean
- 修饰符:public
参数:
- 无
说明:
TODO
public int x() @ L30
- 方法名:x
- 源码定位:L30
- 返回类型:int
- 修饰符:public
参数:
- 无
说明:
TODO
public int y() @ L34
- 方法名:y
- 源码定位:L34
- 返回类型:int
- 修饰符:public
参数:
- 无
说明:
TODO
public int width() @ L38
- 方法名:width
- 源码定位:L38
- 返回类型:int
- 修饰符:public
参数:
- 无
说明:
TODO
public int height() @ L42
- 方法名:height
- 源码定位:L42
- 返回类型:int
- 修饰符:public
参数:
- 无
说明:
TODO
代码
@OnlyIn(Dist.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;
}
}引用的其他类
- 无