Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * This document is Copyright ©(2018) of MaxIsHot (hereafter referred to as "The Owner") and is the intellectual property of The Owner.
- * It may be not be reproduced under any circumstances except for personal, private use as long as it remains in its unaltered, unedited form.
- * Use of this mod on any other website or as a part of any public display is strictly prohibited, and a violation of copyright.
- */
- package net.arsenalnetwork.arsenalmod.client.model;
- import net.arsenalnetwork.arsenalmod.client.tmt.ModelRendererTurbo;
- import net.minecraft.client.model.ModelRenderer;
- import net.minecraft.entity.Entity;
- public class ModelCombatKnife extends TmtModel
- {
- public ModelCombatKnife()
- {
- int textureX = 16;
- int textureY = 8;
- model = new ModelRendererTurbo[3];
- model[0] = new ModelRendererTurbo(this, 0, 0, textureX, textureY);
- model[0].addBox(-4F, -1F, -0.7F, 3, 2, 1.4F);
- model[1] = new ModelRendererTurbo(this, 10, 0, textureX, textureY);
- model[1].addBox(-1F, -1.5F, -1F, 1, 3, 2);
- model[2] = new ModelRendererTurbo(this, 0, 5, textureX, textureY);
- model[2].addShapeBox(0F, -1F, -0.5F, 5, 2, 1, 0F, /* 0 */ 0F, 0F, 0F, /* 1 */ -1F, 0F, 0F, /* 2 */ -1F, 0F, 0F, /* 3 */ 0F, 0F, 0F, /* 4 */ 0F, 0F, 0F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ 0F, 0F, 0F);
- for(int i = 0; i < 3; i++)
- model[i].setRotationPoint(4F, 0F, 0F);
- }
- @Override
- public void render(Entity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale)
- {
- super.render(entityIn, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale);
- setRotationAngles(limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale, entityIn);
- model[0].render(scale);
- model[1].render(scale);
- model[2].render(scale);
- }
- @Override
- public void setRotationAngles(float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor, Entity entityIn)
- {
- super.setRotationAngles(limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scaleFactor, entityIn);
- }
- private void setRotation(ModelRenderer model, float x, float y, float z) {
- model.rotateAngleX = x;
- model.rotateAngleY = y;
- model.rotateAngleZ = z;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment