GuiBookModelRenderState.java

net.minecraft.client.renderer.state.gui.pip.GuiBookModelRenderState

信息

  • 全限定名:net.minecraft.client.renderer.state.gui.pip.GuiBookModelRenderState
  • 类型:public record
  • 包:net.minecraft.client.renderer.state.gui.pip
  • 源码路径:src/main/java/net/minecraft/client/renderer/state/gui/pip/GuiBookModelRenderState.java
  • 起始行号:L11
  • 实现:PictureInPictureRenderState
  • 职责:

    TODO

字段/常量

内部类/嵌套类型

构造器

public GuiBookModelRenderState(BookModel bookModel, Identifier texture, float open, float flip, int x0, int y0, int x1, int y1, float scale, ScreenRectangle scissorArea) @ L24

  • 构造器名:GuiBookModelRenderState
  • 源码定位:L24
  • 修饰符:public

参数:

  • bookModel: BookModel
  • texture: Identifier
  • open: float
  • flip: float
  • x0: int
  • y0: int
  • x1: int
  • y1: int
  • scale: float
  • scissorArea: ScreenRectangle

说明:

TODO

方法

下面的方法块按源码顺序生成。

代码

@OnlyIn(Dist.CLIENT)
public record GuiBookModelRenderState(
    BookModel bookModel,
    Identifier texture,
    float open,
    float flip,
    int x0,
    int y0,
    int x1,
    int y1,
    float scale,
    @Nullable ScreenRectangle scissorArea,
    @Nullable ScreenRectangle bounds
) implements PictureInPictureRenderState {
    public GuiBookModelRenderState(
        BookModel bookModel, Identifier texture, float open, float flip, int x0, int y0, int x1, int y1, float scale, @Nullable ScreenRectangle scissorArea
    ) {
        this(bookModel, texture, open, flip, x0, y0, x1, y1, scale, scissorArea, PictureInPictureRenderState.getBounds(x0, y0, x1, y1, scissorArea));
    }
}

引用的其他类