Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fiskfille.tf.model.transformer;
- import net.minecraft.client.model.ModelBase;
- import net.minecraft.client.model.ModelBiped;
- import net.minecraft.client.model.ModelRenderer;
- public class ModelChildBase
- {
- public static class Base extends ModelBase
- {
- public float pi = (float)Math.PI;
- protected void addChildTo(ModelRenderer child, ModelRenderer parent)
- {
- child.rotationPointX -= parent.rotationPointX;
- child.rotationPointY -= parent.rotationPointY;
- child.rotationPointZ -= parent.rotationPointZ;
- child.rotateAngleX -= parent.rotateAngleX;
- child.rotateAngleY -= parent.rotateAngleY;
- child.rotateAngleZ -= parent.rotateAngleZ;
- parent.addChild(child);
- }
- protected void addChildToWithoutPoint(ModelRenderer child, ModelRenderer parent)
- {
- child.rotateAngleX -= parent.rotateAngleX;
- child.rotateAngleY -= parent.rotateAngleY;
- child.rotateAngleZ -= parent.rotateAngleZ;
- parent.addChild(child);
- }
- }
- public static class Biped extends ModelBiped
- {
- public float pi = (float)Math.PI;
- protected void addChildTo(ModelRenderer child, ModelRenderer parent)
- {
- child.rotationPointX -= parent.rotationPointX;
- child.rotationPointY -= parent.rotationPointY;
- child.rotationPointZ -= parent.rotationPointZ;
- child.rotateAngleX -= parent.rotateAngleX;
- child.rotateAngleY -= parent.rotateAngleY;
- child.rotateAngleZ -= parent.rotateAngleZ;
- parent.addChild(child);
- }
- protected void addChildToWithoutPoint(ModelRenderer child, ModelRenderer parent)
- {
- child.rotateAngleX -= parent.rotateAngleX;
- child.rotateAngleY -= parent.rotateAngleY;
- child.rotateAngleZ -= parent.rotateAngleZ;
- parent.addChild(child);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement