Class BookModel
java.lang.Object
net.minecraft.client.model.Model
net.minecraft.client.render.entity.model.BookModel
Represents the model of the enchanting table's book.
Part Name | Parent | Corresponding Field |
---|---|---|
"left_lid" | Root part | leftCover |
"right_lid" | Root part | rightCover |
seam | Root part | |
"left_pages" | Root part | leftPages |
"right_pages" | Root part | rightPages |
"flip_page1" | Root part | leftFlippingPage |
"flip_page2" | Root part | rightFlippingPage |
- Mappings:
Namespace Name named net/minecraft/client/render/entity/model/BookModel
intermediary net/minecraft/class_557
official fum
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final String
The key of the left flipping page model part, whose value is "flip_page1".private static final String
The key of the right flipping page model part, whose value is "flip_page2".private static final String
The key of the left pages model part, whose value is "left_pages".private final ModelPart
private final ModelPart
private final ModelPart
private static final String
The key of the right pages model part, whose value is "right_pages".private final ModelPart
private final ModelPart
private final ModelPart
private final ModelPart
Fields inherited from class net.minecraft.client.model.Model
layerFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TexturedModelData
void
render
(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, int int2) Renders the model.void
renderBook
(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, int int2) void
setPageAngles
(float pageTurnAmount, float leftFlipAmount, float rightFlipAmount, float pageTurnSpeed) Methods inherited from class net.minecraft.client.model.Model
getLayer, method_60879
-
Field Details
-
LEFT_PAGES
The key of the left pages model part, whose value is "left_pages".- See Also:
- Mappings:
Namespace Name Mixin selector named LEFT_PAGES
Lnet/minecraft/client/render/entity/model/BookModel;LEFT_PAGES:Ljava/lang/String;
intermediary field_32466
Lnet/minecraft/class_557;field_32466:Ljava/lang/String;
official a
Lfum;a:Ljava/lang/String;
-
RIGHT_PAGES
The key of the right pages model part, whose value is "right_pages".- See Also:
- Mappings:
Namespace Name Mixin selector named RIGHT_PAGES
Lnet/minecraft/client/render/entity/model/BookModel;RIGHT_PAGES:Ljava/lang/String;
intermediary field_32467
Lnet/minecraft/class_557;field_32467:Ljava/lang/String;
official b
Lfum;b:Ljava/lang/String;
-
FLIP_PAGE1
The key of the left flipping page model part, whose value is "flip_page1".- See Also:
- Mappings:
Namespace Name Mixin selector named FLIP_PAGE1
Lnet/minecraft/client/render/entity/model/BookModel;FLIP_PAGE1:Ljava/lang/String;
intermediary field_32468
Lnet/minecraft/class_557;field_32468:Ljava/lang/String;
official c
Lfum;c:Ljava/lang/String;
-
FLIP_PAGE2
The key of the right flipping page model part, whose value is "flip_page2".- See Also:
- Mappings:
Namespace Name Mixin selector named FLIP_PAGE2
Lnet/minecraft/client/render/entity/model/BookModel;FLIP_PAGE2:Ljava/lang/String;
intermediary field_32469
Lnet/minecraft/class_557;field_32469:Ljava/lang/String;
official d
Lfum;d:Ljava/lang/String;
-
root
- Mappings:
Namespace Name Mixin selector named root
Lnet/minecraft/client/render/entity/model/BookModel;root:Lnet/minecraft/client/model/ModelPart;
intermediary field_27398
Lnet/minecraft/class_557;field_27398:Lnet/minecraft/class_630;
official e
Lfum;e:Lfye;
-
leftCover
- Mappings:
Namespace Name Mixin selector named leftCover
Lnet/minecraft/client/render/entity/model/BookModel;leftCover:Lnet/minecraft/client/model/ModelPart;
intermediary field_3336
Lnet/minecraft/class_557;field_3336:Lnet/minecraft/class_630;
official f
Lfum;f:Lfye;
-
rightCover
- Mappings:
Namespace Name Mixin selector named rightCover
Lnet/minecraft/client/render/entity/model/BookModel;rightCover:Lnet/minecraft/client/model/ModelPart;
intermediary field_3338
Lnet/minecraft/class_557;field_3338:Lnet/minecraft/class_630;
official g
Lfum;g:Lfye;
-
leftPages
- Mappings:
Namespace Name Mixin selector named leftPages
Lnet/minecraft/client/render/entity/model/BookModel;leftPages:Lnet/minecraft/client/model/ModelPart;
intermediary field_3337
Lnet/minecraft/class_557;field_3337:Lnet/minecraft/class_630;
official h
Lfum;h:Lfye;
-
rightPages
- Mappings:
Namespace Name Mixin selector named rightPages
Lnet/minecraft/client/render/entity/model/BookModel;rightPages:Lnet/minecraft/client/model/ModelPart;
intermediary field_3335
Lnet/minecraft/class_557;field_3335:Lnet/minecraft/class_630;
official i
Lfum;i:Lfye;
-
leftFlippingPage
- Mappings:
Namespace Name Mixin selector named leftFlippingPage
Lnet/minecraft/client/render/entity/model/BookModel;leftFlippingPage:Lnet/minecraft/client/model/ModelPart;
intermediary field_3334
Lnet/minecraft/class_557;field_3334:Lnet/minecraft/class_630;
official j
Lfum;j:Lfye;
-
rightFlippingPage
- Mappings:
Namespace Name Mixin selector named rightFlippingPage
Lnet/minecraft/client/render/entity/model/BookModel;rightFlippingPage:Lnet/minecraft/client/model/ModelPart;
intermediary field_3339
Lnet/minecraft/class_557;field_3339:Lnet/minecraft/class_630;
official k
Lfum;k:Lfye;
-
-
Constructor Details
-
BookModel
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/render/entity/model/BookModel;<init>(Lnet/minecraft/client/model/ModelPart;)V
intermediary <init>
Lnet/minecraft/class_557;<init>(Lnet/minecraft/class_630;)V
official <init>
Lfum;<init>(Lfye;)V
-
-
Method Details
-
getTexturedModelData
- Mappings:
Namespace Name Mixin selector named getTexturedModelData
Lnet/minecraft/client/render/entity/model/BookModel;getTexturedModelData()Lnet/minecraft/client/model/TexturedModelData;
intermediary method_31986
Lnet/minecraft/class_557;method_31986()Lnet/minecraft/class_5607;
official a
Lfum;a()Lfyk;
-
render
Renders the model.- Specified by:
render
in classModel
- Parameters:
light
- the lightmap coordinates used for this model rendering- Mappings:
Namespace Name Mixin selector named render
Lnet/minecraft/client/model/Model;render(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;III)V
intermediary method_2828
Lnet/minecraft/class_3879;method_2828(Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;III)V
official a
Lfwa;a(Lfbc;Lfbg;III)V
-
renderBook
public void renderBook(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, int int2) - Mappings:
Namespace Name Mixin selector named renderBook
Lnet/minecraft/client/render/entity/model/BookModel;renderBook(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;III)V
intermediary method_24184
Lnet/minecraft/class_557;method_24184(Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;III)V
official b
Lfum;b(Lfbc;Lfbg;III)V
-
setPageAngles
public void setPageAngles(float pageTurnAmount, float leftFlipAmount, float rightFlipAmount, float pageTurnSpeed) - Mappings:
Namespace Name Mixin selector named setPageAngles
Lnet/minecraft/client/render/entity/model/BookModel;setPageAngles(FFFF)V
intermediary method_17073
Lnet/minecraft/class_557;method_17073(FFFF)V
official a
Lfum;a(FFFF)V
-