Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.tsarhydrantine.tsbase.tsItems.tsToolAndArmor.FrostburniteArmor;
- import net.minecraft.client.renderer.entity.model.BipedModel;
- import net.minecraft.client.renderer.model.ModelRenderer;
- import net.minecraft.entity.LivingEntity;
- import net.minecraft.util.math.MathHelper;
- public class FrostburniteArmorModel extends BipedModel<LivingEntity>{
- private final ModelRenderer FrostBurnShield1;
- private final ModelRenderer FrostBurnShield2;
- public FrostburniteArmorModel(float size) {
- super(size, 0.0F, 64, 64);
- FrostBurnShield1 = new ModelRenderer(this, 0, 54); //Texture Offset X and Y
- FrostBurnShield1.addBox(-2.5F, 0.0F, -8.0F, 5.0F, 8.0F, 2.0F);
- bipedBody.addChild(FrostBurnShield1);
- FrostBurnShield2 = new ModelRenderer(this, 0, 54); //Texture Offset X and Y
- FrostBurnShield2.addBox(-2.5F, 0.0F, 8.0F, 5.0F, 8.0F, 2.0F);
- bipedBody.addChild(FrostBurnShield2);
- }
- @Override
- public void setRotationAngles(LivingEntity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {
- super.setRotationAngles(entityIn, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch);
- float f = ageInTicks * (float) Math.PI * -0.1F;
- setRotationPoints(this.FrostBurnShield1, -2.0F + MathHelper.cos(((float) (4) + ageInTicks) * 0.25F), MathHelper.cos(f) * 9.0F, MathHelper.sin(f) * 9.0F);
- setRotationPoints(this.FrostBurnShield2, -2.0F + MathHelper.cos(((float) (8) + ageInTicks) * 0.25F), MathHelper.cos(f) * 9.0F, MathHelper.sin(f) * 9.0F);
- ++f;
- }
- @Override
- public void setModelAttributes(BipedModel<LivingEntity> modelIn) {
- super.setModelAttributes(modelIn);
- }
- public void setRotationPoints(ModelRenderer renderer, float x, float y, float z) {
- renderer.rotationPointX = x;
- renderer.rotationPointY = y;
- renderer.rotationPointZ = z;
- }
- 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