public class ModelBook extends ModelBase
Modifier and Type | Field and Description |
---|---|
ModelRenderer |
bookSpine
The renderer of spine of the book
|
ModelRenderer |
coverLeft
Left cover renderer (when facing the book)
|
ModelRenderer |
coverRight
Right cover renderer (when facing the book)
|
ModelRenderer |
flippingPageLeft
Right cover renderer (when facing the book)
|
ModelRenderer |
flippingPageRight
Right cover renderer (when facing the book)
|
ModelRenderer |
pagesLeft
The left pages renderer (when facing the book)
|
ModelRenderer |
pagesRight
The right pages renderer (when facing the book)
|
boxList, isChild, isRiding, swingProgress, textureHeight, textureWidth
Constructor and Description |
---|
ModelBook() |
Modifier and Type | Method and Description |
---|---|
void |
render(Entity entityIn,
float limbSwing,
float limbSwingAmount,
float ageInTicks,
float netHeadYaw,
float headPitch,
float scale)
Sets the models various rotation angles then renders the model.
|
void |
setRotationAngles(float limbSwing,
float limbSwingAmount,
float ageInTicks,
float netHeadYaw,
float headPitch,
float scaleFactor,
Entity entityIn)
Sets the model's various rotation angles.
|
copyModelAngles, getRandomModelBox, getTextureOffset, setLivingAnimations, setModelAttributes, setTextureOffset
public ModelRenderer coverRight
public ModelRenderer coverLeft
public ModelRenderer pagesRight
public ModelRenderer pagesLeft
public ModelRenderer flippingPageRight
public ModelRenderer flippingPageLeft
public ModelRenderer bookSpine
public void render(Entity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale)
public void setRotationAngles(float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor, Entity entityIn)
setRotationAngles
in class ModelBase