PictureInPictureRenderState.java
net.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState
信息
- 全限定名:net.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState
- 类型:public interface
- 包:net.minecraft.client.renderer.state.gui.pip
- 源码路径:src/main/java/net/minecraft/client/renderer/state/gui/pip/PictureInPictureRenderState.java
- 起始行号:L11
- 继承:ScreenArea
- 职责:
TODO
字段/常量
IDENTITY_POSE- 类型:
Matrix3x2f - 修饰符:
package-private - 源码定位:
L12 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
int x0() @ L14
- 方法名:x0
- 源码定位:L14
- 返回类型:int
- 修饰符:package-private
参数:
- 无
说明:
TODO
int x1() @ L16
- 方法名:x1
- 源码定位:L16
- 返回类型:int
- 修饰符:package-private
参数:
- 无
说明:
TODO
int y0() @ L18
- 方法名:y0
- 源码定位:L18
- 返回类型:int
- 修饰符:package-private
参数:
- 无
说明:
TODO
int y1() @ L20
- 方法名:y1
- 源码定位:L20
- 返回类型:int
- 修饰符:package-private
参数:
- 无
说明:
TODO
float scale() @ L22
- 方法名:scale
- 源码定位:L22
- 返回类型:float
- 修饰符:package-private
参数:
- 无
说明:
TODO
default Matrix3x2f pose() @ L24
- 方法名:pose
- 源码定位:L24
- 返回类型:Matrix3x2f
- 修饰符:default
参数:
- 无
说明:
TODO
ScreenRectangle scissorArea() @ L28
- 方法名:scissorArea
- 源码定位:L28
- 返回类型:ScreenRectangle
- 修饰符:package-private
参数:
- 无
说明:
TODO
static ScreenRectangle getBounds(int x0, int y0, int x1, int y1, ScreenRectangle scissorArea) @ L30
- 方法名:getBounds
- 源码定位:L30
- 返回类型:ScreenRectangle
- 修饰符:static
参数:
- x0: int
- y0: int
- x1: int
- y1: int
- scissorArea: ScreenRectangle
说明:
TODO
代码
@OnlyIn(Dist.CLIENT)
public interface PictureInPictureRenderState extends ScreenArea {
Matrix3x2f IDENTITY_POSE = new Matrix3x2f();
int x0();
int x1();
int y0();
int y1();
float scale();
default Matrix3x2f pose() {
return IDENTITY_POSE;
}
@Nullable ScreenRectangle scissorArea();
static @Nullable ScreenRectangle getBounds(int x0, int y0, int x1, int y1, @Nullable ScreenRectangle scissorArea) {
ScreenRectangle bounds = new ScreenRectangle(x0, y0, x1 - x0, y1 - y0);
return scissorArea != null ? scissorArea.intersection(bounds) : bounds;
}
}引用的其他类
-
- 引用位置:
参数/构造调用/返回值 - 关联成员:
ScreenRectangle()
- 引用位置:
-
- 引用位置:
继承
- 引用位置: