Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class hat extends EntityModel<Entity> {
- private final ModelRenderer Head;
- public hat() {
- textureWidth = 64;
- textureHeight = 64;
- Head = new ModelRenderer(this);
- Head.setRotationPoint(0.0F, 0.0F, 0.0F);
- Head.setTextureOffset(0, 0).addBox(-5.0F, -10.0F, -6.0F, 10.0F, 2.0F, 10.0F, 0.0F, false);
- }
- @Override
- public void setRotationAngles(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch){
- //previously the render function, render code was moved to a method below
- }
- @Override
- public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha){
- Head.render(matrixStack, buffer, packedLight, packedOverlay, red, green, blue, alpha);
- }
- public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
- modelRenderer.rotateAngleX = x;
- modelRenderer.rotateAngleY = y;
- modelRenderer.rotateAngleZ = z;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement