Java Code Examples for net.minecraft.client.model.ModelRenderer#addChild()

The following examples show how to use net.minecraft.client.model.ModelRenderer#addChild() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DragonHeadRenderer.java    From Hyperium with GNU Lesser General Public License v3.0 5 votes vote down vote up
public DragonHeadRenderer(DragonCosmetic cosmetic) {
    dragonCosmetic = cosmetic;
    selectedLoc = new ResourceLocation("textures/entity/enderdragon/dragon.png");
    mc = Minecraft.getMinecraft();
    float f = -16.0F;
    textureWidth = 256;
    textureHeight = 256;
    setTextureOffset("body.body", 0, 0);
    setTextureOffset("wing.skin", -56, 88);
    setTextureOffset("wingtip.skin", -56, 144);
    setTextureOffset("rearleg.main", 0, 0);
    setTextureOffset("rearfoot.main", 112, 0);
    setTextureOffset("rearlegtip.main", 196, 0);
    setTextureOffset("head.upperhead", 112, 30);
    setTextureOffset("wing.bone", 112, 88);
    setTextureOffset("head.upperlip", 176, 44);
    setTextureOffset("jaw.jaw", 176, 65);
    setTextureOffset("frontleg.main", 112, 104);
    setTextureOffset("wingtip.bone", 112, 136);
    setTextureOffset("frontfoot.main", 144, 104);
    setTextureOffset("neck.box", 192, 104);
    setTextureOffset("frontlegtip.main", 226, 138);
    setTextureOffset("body.scale", 220, 53);
    setTextureOffset("head.scale", 0, 0);
    setTextureOffset("neck.scale", 48, 0);
    setTextureOffset("head.nostril", 112, 0);
    head = new ModelRenderer(this, "head");
    head.addBox("upperlip", -6.0F, -1.0F, -8.0F + f, 12, 5, 16);
    head.addBox("upperhead", -8.0F, -8.0F, 6.0F + f, 16, 16, 16);
    head.mirror = true;
    head.addBox("scale", -5.0F, -12.0F, 12.0F + f, 2, 4, 6);
    head.addBox("nostril", -5.0F, -3.0F, -6.0F + f, 2, 2, 4);
    head.mirror = false;
    head.addBox("scale", 3.0F, -12.0F, 12.0F + f, 2, 4, 6);
    head.addBox("nostril", 3.0F, -3.0F, -6.0F + f, 2, 2, 4);
    jaw = new ModelRenderer(this, "jaw");
    jaw.setRotationPoint(0.0F, 4.0F, 8.0F + f);
    jaw.addBox("jaw", -6.0F, 0.0F, -16.0F, 12, 4, 16);
    head.addChild(jaw);
}
 
Example 2
Source File: ModelToro.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
protected void createHead() {
	head = new ModelRenderer(this, 0, 0);
	head.setTextureSize(TEX_WIDTH, TEX_HEIGHT);
	head.addBox(-5.0F, -5.0F, -8.0F, 10, 10, 8, 0.0F);
	head.setRotationPoint(0.0F, HEAD_HEIGHT, HEAD_DISTANCE);

	horns = new ModelRenderer(this, 0, 0);
	horns.setTextureSize(TEX_WIDTH, TEX_HEIGHT);
	head.addChild(horns);
	horns.setTextureOffset(36, 0).addBox(-6.0F, -16F, -3.0F, 1, 10, 1, 0.0F);
	horns.setTextureOffset(36, 0).addBox(5.0F, -16F, -3.0F, 1, 10, 1, 0.0F);
	horns.rotateAngleX = 0.5f;
}
 
Example 3
Source File: ModelRhino.java    From TFC2 with GNU General Public License v3.0 4 votes vote down vote up
public ModelRhino()
{
	textureWidth = 128;
	textureHeight = 64;
	setTextureOffset("Body.Body", 24, 12);
	setTextureOffset("Body.Tail", 30, 31);
	setTextureOffset("Body.Neck", 38, 0);
	setTextureOffset("Head.Head", 98, 0);
	setTextureOffset("Head.Snout", 0, 0);
	setTextureOffset("Head.EarRight", 0, 0);
	setTextureOffset("Head.EarLeft", 0, 0);
	setTextureOffset("Horns.HornFrontBase", 48, 43);
	setTextureOffset("Horns.HornFrontMid", 50, 38);
	setTextureOffset("Horns.HornFrontTip", 52, 35);
	setTextureOffset("Horns.HornBackBase", 40, 44);
	setTextureOffset("Horns.HornBackTip", 42, 41);
	setTextureOffset("LegRightRear.LegRtRearUpper", 0, 19);
	setTextureOffset("LegRightRear.LegRtRearLower", 0, 42);
	setTextureOffset("LegRightRear.LegRtRearFoot", 0, 55);
	setTextureOffset("LegRightFront.LegRtFrontUpper", 92, 25);
	setTextureOffset("LegRightFront.LegRtFntLower", 0, 42);
	setTextureOffset("LegRightFront.LegRtRearFoot", 0, 55);
	setTextureOffset("LegLeftFront.LegLftFrntUpper", 92, 25);
	setTextureOffset("LegLeftFront.LegLftFrntLower", 0, 42);
	setTextureOffset("LegLeftFront.LegLftFrntFoot", 0, 55);
	setTextureOffset("LegLeftRear.LegLftRearUpper", 0, 19);
	setTextureOffset("LegLeftRear.LegLftRearLower", 0, 42);
	setTextureOffset("LegLeftRear.LegLftRearFoot", 0, 55);

	Body = new ModelRenderer(this, "Body");
	Body.setRotationPoint(0F, 2F, 0F);
	setRotation(Body, 0F, 0F, 0F);
	Body.mirror = true;
	Body.addBox("Body", -8F, -7F, -15F, 16, 16, 36);
	Body.addBox("Tail", 0F, -5F, 21F, 1, 10, 1);
	Body.addBox("Neck", -3F, -5F, -20F, 6, 8, 5);
	Head = new ModelRenderer(this, "Head");
	Head.setRotationPoint(0F, 5F, -15F);
	setRotation(Head, 0.2617994F, 0F, 0F);
	Head.mirror = true;
	Head.addBox("Head", -4F, -9F, -7F, 8, 10, 7);
	Head.addBox("Snout", -4F, -7F, -18F, 8, 8, 11);
	Head.addBox("EarRight", -6F, -12F, -3F, 3, 4, 1);
	Head.addBox("EarLeft", 3F, -12F, -3F, 3, 4, 1);
	ModelRenderer Horns = new ModelRenderer(this, "Horns");
	Horns.setRotationPoint(0F, 1F, -3F);
	setRotation(Horns, 0F, 0F, 0F);
	Horns.mirror = true;
	Horns.addBox("HornFrontBase", -1.5F, -10F, -14.5F, 3, 2, 3);
	Horns.addBox("HornFrontMid", -1F, -13F, -14.3F, 2, 3, 2);
	Horns.addBox("HornFrontTip", -0.5F, -15F, -14.1F, 1, 2, 1);
	Horns.addBox("HornBackBase", -1F, -10F, -11F, 2, 2, 2);
	Horns.addBox("HornBackTip", -0.5F, -12F, -10.7F, 1, 2, 1);
	Head.addChild(Horns);
	LegRightRear = new ModelRenderer(this, "LegRightRear");
	LegRightRear.setRotationPoint(-6F, 3F, 15F);
	setRotation(LegRightRear, 0F, 0F, 0F);
	LegRightRear.mirror = true;
	LegRightRear.addBox("LegRtRearUpper", -4F, -4F, -5F, 6, 14, 9);
	LegRightRear.addBox("LegRtRearLower", -3F, 10F, -3F, 4, 8, 5);
	LegRightRear.addBox("LegRtRearFoot", -3.5F, 18F, -3.5F, 5, 3, 6);
	LegRightFront = new ModelRenderer(this, "LegRightFront");
	LegRightFront.setRotationPoint(-6F, 5F, -8F);
	setRotation(LegRightFront, 0F, 0F, 0F);
	LegRightFront.mirror = true;
	LegRightFront.addBox("LegRtFrontUpper", -4F, -6F, -5F, 6, 14, 9);
	LegRightFront.addBox("LegRtFntLower", -3F, 8F, -3F, 4, 8, 5);
	LegRightFront.addBox("LegRtRearFoot", -3.5F, 16F, -3.5F, 5, 3, 6);
	LegLeftFront = new ModelRenderer(this, "LegLeftFront");
	LegLeftFront.setRotationPoint(8F, 5F, -8F);
	setRotation(LegLeftFront, 0F, 0F, 0F);
	LegLeftFront.mirror = true;
	LegLeftFront.addBox("LegLftFrntUpper", -4F, -6F, -5F, 6, 14, 9);
	LegLeftFront.addBox("LegLftFrntLower", -3F, 8F, -3F, 4, 8, 5);
	LegLeftFront.addBox("LegLftFrntFoot", -3.5F, 16F, -3.5F, 5, 3, 6);
	LegLeftRear = new ModelRenderer(this, "LegLeftRear");
	LegLeftRear.setRotationPoint(8F, 3F, 15F);
	setRotation(LegLeftRear, 0F, 0F, 0F);
	LegLeftRear.mirror = true;
	LegLeftRear.addBox("LegLftRearUpper", -4F, -4F, -5F, 6, 14, 9);
	LegLeftRear.addBox("LegLftRearLower", -3F, 10F, -3F, 4, 8, 5);
	LegLeftRear.addBox("LegLftRearFoot", -3.5F, 18F, -3.5F, 5, 3, 6);
}
 
Example 4
Source File: ModelFoxDesert.java    From TFC2 with GNU General Public License v3.0 4 votes vote down vote up
public ModelFoxDesert()
{
	textureWidth = 64;
	textureHeight = 32;
	setTextureOffset("Head.Head", 0, 4);
	setTextureOffset("Head.Snout", 0, 14);
	setTextureOffset("Head.Jaw", 0, 19);
	setTextureOffset("EarRight.EarRightLeftEdge", 24, 19);
	setTextureOffset("EarRight.EarRightRightEdge", 20, 19);
	setTextureOffset("EarRight.EarRightLeftMidEdge", 24, 17);
	setTextureOffset("EarRight.EarRightRightMidEdge", 20, 17);
	setTextureOffset("EarRight.EarRightTip", 22, 15);
	setTextureOffset("EarRight.EarRightBack", 29, 19);
	setTextureOffset("EarRight.EarRightBackTip", 30, 17);
	setTextureOffset("EarLeft.EarLeftRightEdge", 24, 19);
	setTextureOffset("EarLeft.EarLeftLeftEdge", 20, 19);
	setTextureOffset("EarLeft.EarLeftRightMidEdge", 24, 17);
	setTextureOffset("EarLeft.EarLeftLeftMidEdge", 20, 17);
	setTextureOffset("EarLeft.EarLeftTip", 22, 15);
	setTextureOffset("EarLeft.EarLeftBack", 29, 19);
	setTextureOffset("EarLeft.EarLeftBackTip", 30, 17);
	setTextureOffset("Tail.TailBase", 54, 0);
	setTextureOffset("Tail.TailMiddle", 52, 4);
	setTextureOffset("Tail.TailTip", 54, 15);
	setTextureOffset("LegLeftRear.LegRearLeft", 10, 22);
	setTextureOffset("LegLeftFront.LegFrontRight", 10, 22);
	setTextureOffset("LegRightFront.LegFrontRight", 10, 22);
	setTextureOffset("LegRightRear.LegRearRight", 10, 22);

	Neck = new ModelRenderer(this, 20, 0);
	Neck.addBox(-2F, 0F, -2F, 4, 4, 5);
	Neck.setRotationPoint(0F, 9F, 1F);
	Neck.setTextureSize(64, 32);
	Neck.mirror = true;
	setRotation(Neck, -0.5235988F, 0F, 0F);
	Body = new ModelRenderer(this, 20, 9);
	Body.addBox(-3F, -3F, -13F, 6, 7, 16);
	Body.setRotationPoint(0F, 12F, 14F);
	Body.setTextureSize(64, 32);
	Body.mirror = true;
	setRotation(Body, 0F, 0F, 0F);
	Head = new ModelRenderer(this, "Head");
	Head.setRotationPoint(0F, 8F, 0F);
	setRotation(Head, 0.7853982F, 0F, 0F);
	Head.mirror = true;
	Head.addBox("Head", -3F, -2F, -4F, 6, 6, 4);
	Head.addBox("Snout", -1.5F, 0F, -7F, 3, 2, 3);
	Head.addBox("Jaw", -1F, 2F, -6F, 2, 1, 2);
	ModelRenderer EarRight = new ModelRenderer(this, "EarRight");
	EarRight.setRotationPoint(-3F, -2F, -1F);
	setRotation(EarRight, 0F, 0F, -0.7853982F);
	EarRight.mirror = true;
	EarRight.addBox("EarRightLeftEdge", 0.75F, -3F, -2F, 1, 5, 1);
	EarRight.addBox("EarRightRightEdge", -1.75F, -3F, -2F, 1, 5, 1);
	EarRight.addBox("EarRightLeftMidEdge", 0.25F, -4F, -2F, 1, 1, 1);
	EarRight.addBox("EarRightRightMidEdge", -1.25F, -4F, -2F, 1, 1, 1);
	EarRight.addBox("EarRightTip", -0.5F, -5F, -2F, 1, 1, 1);
	EarRight.addBox("EarRightBack", -1F, -3F, -1F, 2, 5, 1);
	EarRight.addBox("EarRightBackTip", -0.5F, -4F, -1F, 1, 1, 1);
	Head.addChild(EarRight);
	ModelRenderer EarLeft = new ModelRenderer(this, "EarLeft");
	EarLeft.setRotationPoint(3F, -2F, -1F);
	setRotation(EarLeft, 0F, 0F, 0.7853982F);
	EarLeft.mirror = true;
	EarLeft.addBox("EarLeftRightEdge", -1.75F, -3F, -2F, 1, 5, 1);
	EarLeft.addBox("EarLeftLeftEdge", 0.75F, -3F, -2F, 1, 5, 1);
	EarLeft.addBox("EarLeftRightMidEdge", -1.25F, -4F, -2F, 1, 1, 1);
	EarLeft.addBox("EarLeftLeftMidEdge", 0.25F, -4F, -2F, 1, 1, 1);
	EarLeft.addBox("EarLeftTip", -0.5F, -5F, -2F, 1, 1, 1);
	EarLeft.addBox("EarLeftBack", -1F, -3F, -1F, 2, 5, 1);
	EarLeft.addBox("EarLeftBackTip", -0.5F, -4F, -1F, 1, 1, 1);
	Head.addChild(EarLeft);
	Tail = new ModelRenderer(this, "Tail");
	Tail.setRotationPoint(0F, 10F, 17F);
	setRotation(Tail, 0.7853982F, 0F, 0F);
	Tail.mirror = true;
	Tail.addBox("TailBase", -1F, 0F, -1F, 2, 2, 2);
	Tail.addBox("TailMiddle", -1.5F, 2F, -1.5F, 3, 8, 3);
	Tail.addBox("TailTip", -1F, 10F, -1F, 2, 2, 2);
	LegLeftRear = new ModelRenderer(this, "LegLeftRear");
	LegLeftRear.setRotationPoint(2F, 16F, 15F);
	setRotation(LegLeftRear, 0F, 0F, 0F);
	LegLeftRear.mirror = true;
	LegLeftRear.addBox("LegRearLeft", -1F, 0F, -1F, 2, 8, 2);
	LegLeftFront = new ModelRenderer(this, "LegLeftFront");
	LegLeftFront.setRotationPoint(2F, 16F, 3F);
	setRotation(LegLeftFront, 0F, 0F, 0F);
	LegLeftFront.mirror = true;
	LegLeftFront.addBox("LegFrontRight", -1F, 0F, -1F, 2, 8, 2);
	LegRightFront = new ModelRenderer(this, "LegRightFront");
	LegRightFront.setRotationPoint(-2F, 16F, 3F);
	setRotation(LegRightFront, 0F, 0F, 0F);
	LegRightFront.mirror = true;
	LegRightFront.addBox("LegFrontRight", -1F, 0F, -1F, 2, 8, 2);
	LegRightRear = new ModelRenderer(this, "LegRightRear");
	LegRightRear.setRotationPoint(-2F, 16F, 15F);
	setRotation(LegRightRear, 0F, 0F, 0F);
	LegRightRear.mirror = true;
	LegRightRear.addBox("LegRearRight", -1F, 0F, -1F, 2, 8, 2);
}
 
Example 5
Source File: ModelHippo.java    From TFC2 with GNU General Public License v3.0 4 votes vote down vote up
public ModelHippo()
{
	textureWidth = 128;
	textureHeight = 64;
	setTextureOffset("Head.Jowls", 0, 13);
	setTextureOffset("Head.JawBridge", 36, 28);
	setTextureOffset("Head.JawEnd", 30, 36);
	setTextureOffset("Head.TuskRight", 54, 0);
	setTextureOffset("Head.TuskLeft", 54, 0);
	setTextureOffset("HeadUpper.SnoutEnd", 0, 27);
	setTextureOffset("HeadUpper.SnoutBridge", 30, 0);
	setTextureOffset("HeadUpper.Head", 0, 0);
	setTextureOffset("HeadUpper.EarRight", 23, 0);
	setTextureOffset("HeadUpper.EarLeft", 23, 0);
	setTextureOffset("LegRightRear.LegRtRearLower", 0, 42);
	setTextureOffset("LegRightRear.LegRtRearFoot", 0, 55);
	setTextureOffset("LegRightFront.LegRtFntLower", 0, 42);
	setTextureOffset("LegRightFront.LegRtRearFoot", 0, 55);
	setTextureOffset("LegLeftFront.LegLftFrntLower", 0, 42);
	setTextureOffset("LegLeftFront.LegLftFrntFoot", 0, 55);
	setTextureOffset("LegLeftRear.LegLftRearLower", 0, 42);
	setTextureOffset("LegLeftRear.LegLftRearFoot", 0, 55);

	Body = new ModelRenderer(this, 24, 12);
	Body.addBox(-9F, -7F, -15F, 18, 18, 34);
	Body.setRotationPoint(0F, 2F, 0F);
	Body.setTextureSize(128, 64);
	setRotation(Body, 0F, 0F, 0F);
	Tail = new ModelRenderer(this, 18, 42);
	Tail.addBox(-0.5F, 0F, 0F, 1, 12, 1);
	Tail.setRotationPoint(0F, -3F, 19F);
	Tail.setTextureSize(128, 64);
	setRotation(Tail, 0F, 0F, 0F);
	Neck = new ModelRenderer(this, 94, 0);
	Neck.addBox(-6.5F, -6.5F, 0F, 13, 13, 4);
	Neck.setRotationPoint(0F, 3F, -19F);
	Neck.setTextureSize(128, 64);
	setRotation(Neck, 0F, 0F, 0F);
	Head = new ModelRenderer(this, "Head");
	Head.setRotationPoint(0F, -2F, -19F);
	setRotation(Head, 0.2617994F, 0F, 0F);
	Head.addBox("Jowls", -5F, 5F, -8F, 10, 6, 8);
	Head.addBox("JawBridge", -3F, 5F, -12F, 6, 3, 4);
	Head.addBox("JawEnd", -4F, 5F, -18F, 8, 4, 6);
	Head.addBox("TuskRight", -3F, 2F, -17F, 1, 3, 1);
	Head.addBox("TuskLeft", 2F, 2F, -17F, 1, 3, 1);
	ModelRenderer HeadUpper = new ModelRenderer(this, "HeadUpper");
	HeadUpper.setRotationPoint(0F, 5F, 0F);
	setRotation(HeadUpper, 0F, 0F, 0F);
	HeadUpper.mirror = true;
	HeadUpper.addBox("SnoutEnd", -5F, -4F, -19F, 10, 4, 6);
	HeadUpper.addBox("SnoutBridge", -3F, -4F, -13F, 6, 4, 6);
	HeadUpper.addBox("Head", -4F, -6F, -7F, 8, 6, 7);
	HeadUpper.addBox("EarRight", -6F, -8F, -3F, 3, 3, 1);
	HeadUpper.addBox("EarLeft", 3F, -8F, -3F, 3, 3, 1);
	Head.addChild(HeadUpper);
	LegRightRear = new ModelRenderer(this, "LegRightRear");
	LegRightRear.setRotationPoint(-5F, 3F, 15F);
	setRotation(LegRightRear, 0F, 0F, 0F);
	//LegRightRear.mirror = true;
	LegRightRear.addBox("LegRtRearLower", -3F, 10F, -3F, 4, 8, 5);
	LegRightRear.addBox("LegRtRearFoot", -3.5F, 18F, -3.5F, 5, 3, 6);
	LegRightFront = new ModelRenderer(this, "LegRightFront");
	LegRightFront.setRotationPoint(-5F, 5F, -9F);
	setRotation(LegRightFront, 0F, 0F, 0F);
	//LegRightFront.mirror = true;
	LegRightFront.addBox("LegRtFntLower", -3F, 8F, -3F, 4, 8, 5);
	LegRightFront.addBox("LegRtRearFoot", -3.5F, 16F, -3.5F, 5, 3, 6);
	LegLeftFront = new ModelRenderer(this, "LegLeftFront");
	LegLeftFront.setRotationPoint(7F, 5F, -9F);
	setRotation(LegLeftFront, 0F, 0F, 0F);
	LegLeftFront.mirror = true;
	LegLeftFront.addBox("LegLftFrntLower", -3F, 8F, -3F, 4, 8, 5);
	LegLeftFront.addBox("LegLftFrntFoot", -3.5F, 16F, -3.5F, 5, 3, 6);
	LegLeftRear = new ModelRenderer(this, "LegLeftRear");
	LegLeftRear.setRotationPoint(7F, 3F, 15F);
	setRotation(LegLeftRear, 0F, 0F, 0F);
	LegLeftRear.mirror = true;
	LegLeftRear.addBox("LegLftRearLower", -3F, 10F, -3F, 4, 8, 5);
	LegLeftRear.addBox("LegLftRearFoot", -3.5F, 18F, -3.5F, 5, 3, 6);
}
 
Example 6
Source File: ModelCart.java    From TFC2 with GNU General Public License v3.0 4 votes vote down vote up
public ModelCart()
{
	textureWidth = 128;
	textureHeight = 64;
	setTextureOffset("CartBox.Bottom", 60, 0);
	setTextureOffset("CartBox.RightWall", 0, 36);
	setTextureOffset("CartBox.LeftWall", 0, 36);
	setTextureOffset("CartBox.FrontWall", 30, 0);
	setTextureOffset("CartBox.HandleRight", 45, 22);
	setTextureOffset("CartBox.HandleLeft", 45, 22);
	setTextureOffset("CartBox.HandleFront", 45, 19);
	setTextureOffset("RightWheel.R4", 40, 26);
	setTextureOffset("RightWheel.R3", 36, 25);
	setTextureOffset("RightWheel.R2", 32, 24);
	setTextureOffset("RightWheel.R1", 28, 23);
	setTextureOffset("RightWheel.Mid", 16, 18);
	setTextureOffset("RightWheel.L1", 12, 23);
	setTextureOffset("RightWheel.L2", 8, 24);
	setTextureOffset("RightWheel.L3", 4, 25);
	setTextureOffset("RightWheel.L4", 0, 26);
	setTextureOffset("LeftWheel.R1", 28, 23);
	setTextureOffset("LeftWheel.R2", 32, 24);
	setTextureOffset("LeftWheel.R3", 36, 25);
	setTextureOffset("LeftWheel.R4", 40, 26);
	setTextureOffset("LeftWheel.Mid", 16, 18);
	setTextureOffset("LeftWheel.L1", 12, 23);
	setTextureOffset("LeftWheel.L2", 8, 24);
	setTextureOffset("LeftWheel.L3", 4, 25);
	setTextureOffset("LeftWheel.L4", 0, 26);

	Cart = new ModelRenderer(this, "Cart");
	Cart.setRotationPoint(0F, 0F, 0F);
	setRotation(Cart, 0F, 0F, 0F);
	Cart.mirror = true;
	CartBox = new ModelRenderer(this, "CartBox");
	CartBox.setRotationPoint(0F, 17F, 0F);
	setRotation(CartBox, 0F, 0F, 0F);
	CartBox.mirror = true;
	CartBox.addBox("Bottom", -8F, 0F, -9F, 16, 1, 18);
	CartBox.addBox("RightWall", -8F, -6F, -9F, 1, 6, 18);
	CartBox.addBox("LeftWall", 7F, -6F, -9F, 1, 6, 18);
	CartBox.addBox("FrontWall", -7F, -6F, -9F, 14, 6, 1);
	CartBox.addBox("HandleRight", -6F, 0F, -19F, 1, 1, 10);
	CartBox.addBox("HandleLeft", 5F, 0F, -19F, 1, 1, 10);
	CartBox.addBox("HandleFront", -5F, 0F, -19F, 10, 1, 1);
	Cart.addChild(CartBox);
	RightWheel = new ModelRenderer(this, "RightWheel");
	RightWheel.setRotationPoint(-9F, 17.5F, 0F);
	setRotation(RightWheel, 0F, 0F, 0F);
	RightWheel.mirror = true;
	RightWheel.addBox("R4", 0F, -2.5F, 5.5F, 1, 5, 1);
	RightWheel.addBox("R3", 0F, -3.5F, 4.5F, 1, 7, 1);
	RightWheel.addBox("R2", 0F, -4.5F, 3.5F, 1, 9, 1);
	RightWheel.addBox("R1", 0F, -5.5F, 2.5F, 1, 11, 1);
	RightWheel.addBox("Mid", 0F, -6.5F, -2.5F, 1, 13, 5);
	RightWheel.addBox("L1", 0F, -5.5F, -3.5F, 1, 11, 1);
	RightWheel.addBox("L2", 0F, -4.5F, -4.5F, 1, 9, 1);
	RightWheel.addBox("L3", 0F, -3.5F, -5.5F, 1, 7, 1);
	RightWheel.addBox("L4", 0F, -2.5F, -6.5F, 1, 5, 1);
	Cart.addChild(RightWheel);
	LeftWheel = new ModelRenderer(this, "LeftWheel");
	LeftWheel.setRotationPoint(8F, 17.5F, 0F);
	setRotation(LeftWheel, 0F, 0F, 0F);
	LeftWheel.mirror = true;
	LeftWheel.addBox("R4", 0F, -2.5F, 5.5F, 1, 5, 1);
	LeftWheel.addBox("R1", 0F, -5.5F, 2.5F, 1, 11, 1);
	LeftWheel.addBox("Mid", 0F, -6.5F, -2.5F, 1, 13, 5);
	LeftWheel.addBox("R3", 0F, -3.5F, 4.5F, 1, 7, 1);
	LeftWheel.addBox("R2", 0F, -4.5F, 3.5F, 1, 9, 1);
	LeftWheel.addBox("L1", 0F, -5.5F, -3.5F, 1, 11, 1);
	LeftWheel.addBox("L2", 0F, -4.5F, -4.5F, 1, 9, 1);
	LeftWheel.addBox("L3", 0F, -3.5F, -5.5F, 1, 7, 1);
	LeftWheel.addBox("L4", 0F, -2.5F, -6.5F, 1, 5, 1);
	Cart.addChild(LeftWheel);
}
 
Example 7
Source File: ModelTiger.java    From TFC2 with GNU General Public License v3.0 4 votes vote down vote up
public ModelTiger()
{
	textureWidth = 64;
	textureHeight = 32;
	setTextureOffset("HEAD.EarLeft", 0, 0);
	setTextureOffset("HEAD.EarRight", 0, 0);
	setTextureOffset("HEAD.LionMane", 6, 0);
	setTextureOffset("HEAD.Head", 0, 24);
	setTextureOffset("HEAD.Snout", 0, 11);
	setTextureOffset("HEAD.Jaw", 0, 15);
	setTextureOffset("BODY.Tail", 49, 0);
	setTextureOffset("BODY.Torso", 20, 9);
	setTextureOffset("Neck.Neck", 18, 16);
	setTextureOffset("LegLEFTREAR.LegRearLeftUpper", 53, 0);
	setTextureOffset("LegLEFTREAR.LegRearLeftLower", 54, 10);
	setTextureOffset("LegLEFTREAR.LegRearLeftPaw", 52, 18);
	setTextureOffset("LegLEFTFRONT.LegFrontLeftUpper", 53, 0);
	setTextureOffset("LegLEFTFRONT.LegFrontLeftLower", 54, 10);
	setTextureOffset("LegLEFTFRONT.LegFrontLeftPaw", 52, 18);
	setTextureOffset("LegRIGHTFRONT.LegFrontRightUpper", 53, 0);
	setTextureOffset("LegRIGHTFRONT.LegFrontRightLower", 54, 10);
	setTextureOffset("LegRIGHTFRONT.LegFrontRightPaw", 52, 18);
	setTextureOffset("LegRIGHTREAR.LegRearRightUpper", 53, 0);
	setTextureOffset("LegRIGHTREAR.LegRearRightLower", 54, 10);
	setTextureOffset("LegRIGHTREAR.LegRearRightPaw", 52, 18);

	HEAD = new ModelRenderer(this, "HEAD");
	HEAD.setRotationPoint(0F, 9F, 0F);
	setRotation(HEAD, 0F, 0F, 0F);
	HEAD.mirror = true;
	HEAD.addBox("EarLeft", 1.5F, -3F, -2F, 2, 2, 1);
	HEAD.addBox("EarRight", -3.5F, -3F, -2F, 2, 2, 1);
	HEAD.addBox("LionMane", -3.5F, -1F, -3F, 7, 5, 2);
	HEAD.addBox("Head", -2.5F, -2F, -4F, 5, 4, 4);
	HEAD.addBox("Snout", -1.5F, -0.5F, -6F, 3, 2, 2);
	HEAD.addBox("Jaw", -1F, 1.5F, -6F, 2, 1, 3);

	ModelRenderer Neck = new ModelRenderer(this, "Neck");
	Neck.setRotationPoint(0F, 0F, 0F);
	setRotation(Neck, -0.5235988F, 0F, 0F);
	Neck.mirror = true;
	Neck.addBox("Neck", -1.5F, 0.0F, -3F, 3, 3, 5);
	HEAD.addChild(Neck);

	BODY = new ModelRenderer(this, "BODY");
	BODY.setRotationPoint(0F, 12F, 14F);
	setRotation(BODY, 0F, 0F, 0F);
	BODY.mirror = true;
	BODY.addBox("Tail", -0.5F, -2F, 3F, 1, 12, 1);
	BODY.addBox("Torso", -3F, -3F, -13F, 6, 7, 16);

	LegLEFTREAR = new ModelRenderer(this, "LegLEFTREAR");
	LegLEFTREAR.setRotationPoint(2F, 11F, 15F);
	setRotation(LegLEFTREAR, 0F, 0F, 0F);
	LegLEFTREAR.mirror = true;
	LegLEFTREAR.addBox("LegRearLeftUpper", 0F, -1F, -1.5F, 2, 7, 3);
	LegLEFTREAR.addBox("LegRearLeftLower", 0F, 6F, -0.5F, 2, 6, 2);
	LegLEFTREAR.addBox("LegRearLeftPaw", -0.5F, 12F, -1.5F, 3, 1, 3);

	LegLEFTFRONT = new ModelRenderer(this, "LegLEFTFRONT");
	LegLEFTFRONT.setRotationPoint(2.5F, 11F, 3F);
	setRotation(LegLEFTFRONT, 0F, 0F, 0F);
	LegLEFTFRONT.mirror = true;
	LegLEFTFRONT.addBox("LegFrontLeftUpper", 0F, -1F, -1.5F, 2, 7, 3);
	LegLEFTFRONT.addBox("LegFrontLeftLower", 0F, 6F, -1F, 2, 6, 2);
	LegLEFTFRONT.addBox("LegFrontLeftPaw", -0.5F, 12F, -2F, 3, 1, 3);

	LegRIGHTFRONT = new ModelRenderer(this, "LegRIGHTFRONT");
	LegRIGHTFRONT.setRotationPoint(-2.5F, 11F, 3F);
	setRotation(LegRIGHTFRONT, 0F, 0F, 0F);
	LegRIGHTFRONT.addBox("LegFrontRightUpper", -2F, -1F, -1.5F, 2, 7, 3);
	LegRIGHTFRONT.addBox("LegFrontRightLower", -2F, 6F, -1F, 2, 6, 2);
	LegRIGHTFRONT.addBox("LegFrontRightPaw", -2.5F, 12F, -2F, 3, 1, 3);

	LegRIGHTREAR = new ModelRenderer(this, "LegRIGHTREAR");
	LegRIGHTREAR.setRotationPoint(-2F, 11F, 15F);
	setRotation(LegRIGHTREAR, 0F, 0F, 0F);
	LegRIGHTREAR.addBox("LegRearRightUpper", -2F, -1F, -1.5F, 2, 7, 3);
	LegRIGHTREAR.addBox("LegRearRightLower", -2F, 6F, -0.5F, 2, 6, 2);
	LegRIGHTREAR.addBox("LegRearRightPaw", -2.5F, 12F, -1.5F, 3, 1, 3);

}
 
Example 8
Source File: ModelBison.java    From TFC2 with GNU General Public License v3.0 4 votes vote down vote up
public ModelBison()
{
	textureWidth = 128;
	textureHeight = 64;
	setTextureOffset("Body.BodyFront", 68, 11);
	setTextureOffset("Body.BodyBack", 25, 25);
	setTextureOffset("Body.Tail", 0, 43);
	setTextureOffset("Body.BodyFringe", 76, 45);
	setTextureOffset("Head.HeadTop", 0, 51);
	setTextureOffset("Head.HeadMain", 3, 1);
	setTextureOffset("Head.EarRight", 52, 60);
	setTextureOffset("Head.EarLeft", 52, 60);
	setTextureOffset("Head.Beard", 61, 0);
	setTextureOffset("Head.Jaw", 55, 17);
	setTextureOffset("Horns.HornLeftBase", 60, 60);
	setTextureOffset("Horns.HornLeftTip", 72, 60);
	setTextureOffset("Horns.HornRightBase", 60, 60);
	setTextureOffset("Horns.HornRightTip", 72, 60);
	setTextureOffset("LegRightRear.LegRtRearUpper", 0, 20);
	setTextureOffset("LegRightRear.LegRtRearLower", 84, 0);
	setTextureOffset("LegRightRear.LegRtRearFoot", 21, 21);
	setTextureOffset("LegRightFront.LegRtFrontUpper", 31, 0);
	setTextureOffset("LegRightFront.LegRtFntLower", 84, 0);
	setTextureOffset("LegRightFront.LegRtRearFoot", 21, 21);
	setTextureOffset("LegLeftFront.LegLftFrntUpper", 31, 0);
	setTextureOffset("LegLeftFront.LegLftFrntLower", 84, 0);
	setTextureOffset("LegLeftFront.LegLftFrntFoot", 21, 21);
	setTextureOffset("LegLeftRear.LegLftRearUpper", 0, 20);
	setTextureOffset("LegLeftRear.LegLftRearLower", 84, 0);
	setTextureOffset("LegLeftRear.LegLftRearFoot", 21, 21);

	Body = new ModelRenderer(this, "Body");
	Body.setRotationPoint(0F, 2F, 0F);
	setRotation(Body, 0F, 0F, 0F);
	Body.mirror = true;
	Body.addBox("BodyFront", -7F, -7F, -15F, 14, 17, 16);
	Body.addBox("BodyBack", -6F, -5F, 1F, 12, 15, 19);
	Body.addBox("Tail", -0.5F, -2F, 20F, 1, 10, 1);
	Body.addBox("BodyFringe", -6F, 10F, -14F, 12, 5, 14);
	Head = new ModelRenderer(this, "Head");
	Head.setRotationPoint(0F, 1F, -15F);
	setRotation(Head, 0F, 0F, 0F);
	Head.mirror = true;
	Head.addBox("HeadTop", -4F, -4F, -8.5F, 8, 4, 9);
	Head.addBox("HeadMain", -3F, 0F, -8F, 6, 11, 8);
	Head.addBox("EarRight", -6F, 1F, -3F, 3, 3, 1);
	Head.addBox("EarLeft", 3F, 1F, -3F, 3, 3, 1);
	Head.addBox("Beard", -2F, 13F, -6F, 4, 6, 5);
	Head.addBox("Jaw", -2F, 11F, -7F, 4, 2, 6);
	ModelRenderer  Horns = new ModelRenderer(this, "Horns");
	Horns.setRotationPoint(0F, 1F, -3F);
	setRotation(Horns, 0F, 0F, 0F);
	Horns.mirror = true;
	Horns.addBox("HornLeftBase", 3F, -2F, -3F, 4, 2, 2);
	Horns.addBox("HornLeftTip", 6F, -5F, -2.5F, 1, 3, 1);
	Horns.addBox("HornRightBase", -7F, -2F, -3F, 4, 2, 2);
	Horns.addBox("HornRightTip", -7F, -5F, -2.5F, 1, 3, 1);
	Head.addChild(Horns);
	LegRightRear = new ModelRenderer(this, "LegRightRear");
	LegRightRear.setRotationPoint(-4F, 3F, 15F);
	setRotation(LegRightRear, 0F, 0F, 0F);
	LegRightRear.mirror = true;
	LegRightRear.addBox("LegRtRearUpper", -4F, -4F, -5F, 6, 14, 9);
	LegRightRear.addBox("LegRtRearLower", -3F, 10F, -3F, 4, 6, 5);
	LegRightRear.addBox("LegRtRearFoot", -2.5F, 16F, -2.5F, 3, 5, 3);
	LegRightFront = new ModelRenderer(this, "LegRightFront");
	LegRightFront.setRotationPoint(-5F, 5F, -8F);
	setRotation(LegRightFront, 0F, 0F, 0F);
	LegRightFront.mirror = true;
	LegRightFront.addBox("LegRtFrontUpper", -4F, -6F, -5F, 6, 14, 9);
	LegRightFront.addBox("LegRtFntLower", -3F, 8F, -3F, 4, 6, 5);
	LegRightFront.addBox("LegRtRearFoot", -2.5F, 14F, -2.5F, 3, 5, 3);
	LegLeftFront = new ModelRenderer(this, "LegLeftFront");
	LegLeftFront.setRotationPoint(7F, 5F, -8F);
	setRotation(LegLeftFront, 0F, 0F, 0F);
	LegLeftFront.mirror = true;
	LegLeftFront.addBox("LegLftFrntUpper", -4F, -6F, -5F, 6, 14, 9);
	LegLeftFront.addBox("LegLftFrntLower", -3F, 8F, -3F, 4, 6, 5);
	LegLeftFront.addBox("LegLftFrntFoot", -2.5F, 14F, -2.5F, 3, 5, 3);
	LegLeftRear = new ModelRenderer(this, "LegLeftRear");
	LegLeftRear.setRotationPoint(6F, 3F, 15F);
	setRotation(LegLeftRear, 0F, 0F, 0F);
	LegLeftRear.mirror = true;
	LegLeftRear.addBox("LegLftRearUpper", -4F, -4F, -5F, 6, 14, 9);
	LegLeftRear.addBox("LegLftRearLower", -3F, 10F, -3F, 4, 6, 5);
	LegLeftRear.addBox("LegLftRearFoot", -2.5F, 16F, -2.5F, 3, 5, 3);
}
 
Example 9
Source File: ModelOwl.java    From EnderZoo with Creative Commons Zero v1.0 Universal 4 votes vote down vote up
public ModelOwl() {

    textureWidth = 64;
    textureHeight = 32;
    wingR = new ModelRenderer(this, 23, 0);
    wingR.setRotationPoint(-3.0F, 0.0F, 0.0F);
    wingR.addBox(-1.0F, 0.0F, -3.0F, 1, 5, 5, 0.0F);
    legL = new ModelRenderer(this, 23, 11);
    legL.setRotationPoint(1.5F, 7.0F, 0.0F);
    legL.addBox(-0.5F, 0.0F, -0.5F, 1, 1, 1, 0.0F);
    tail1 = new ModelRenderer(this, 58, 5);
    tail1.setRotationPoint(0.0F, 0.0F, 0.0F);
    tail1.addBox(0.0F, 2.0F, -1.7F, 2, 3, 1, 0.0F);
    setRotateAngle(tail1, 0.0F, 0.0F, 0.9599310885968813F);
    if (useEars) {
      earR = new ModelRenderer(this, 27, 29);
      earR.setRotationPoint(0.0F, 0.0F, 0.0F);
      earR.addBox(-5.0F, -8.0F, -3.0F, 3, 2, 1, 0.0F);
    }
    tailBase = new ModelRenderer(this, 56, 0);
    tailBase.setRotationPoint(0.0F, 3.5F, 2.2F);
    tailBase.addBox(-1.5F, 1.0F, -1.8F, 3, 3, 1, 0.0F);
    setRotateAngle(tailBase, 0.6373942428283291F, 0.0F, 0.0F);
    footR = new ModelRenderer(this, 28, 11);
    footR.setRotationPoint(0.0F, 1.0F, 0.0F);
    footR.addBox(-1.0F, 0.0F, -2.0F, 2, 1, 3, 0.0F);
    wingL = new ModelRenderer(this, 23, 0);
    wingL.mirror = true;
    wingL.setRotationPoint(3.0F, 0.0F, -0.5F);
    wingL.addBox(0.0F, 0.0F, -2.5F, 1, 5, 5, 0.0F);
    head = new ModelRenderer(this, 0, 20);
    head.setRotationPoint(0.0F, 15.0F, -0.5F);
    head.addBox(-3.5F, -6.0F, -3.0F, 7, 6, 6, 0.0F);
    setRotateAngle(head, 0.0F, 0.045553093477052F, 0.0F);
    tail2 = new ModelRenderer(this, 58, 5);
    tail2.mirror = true;
    tail2.setRotationPoint(0.0F, 0.0F, 0.0F);
    tail2.addBox(-2.0F, 2.0F, -1.7F, 2, 3, 1, 0.0F);
    setRotateAngle(tail2, 0.0F, 0.0F, -0.9599310885968813F);
    tail3 = new ModelRenderer(this, 58, 5);
    tail3.setRotationPoint(0.0F, 0.0F, 0.0F);
    tail3.addBox(-1.0F, 2.0F, -1.7F, 2, 3, 1, 0.0F);
    legR = new ModelRenderer(this, 23, 11);
    legR.setRotationPoint(-1.5F, 7.0F, 0.0F);
    legR.addBox(-0.5F, 0.0F, -0.5F, 1, 1, 1, 0.0F);
    footL = new ModelRenderer(this, 28, 11);
    footL.setRotationPoint(0.0F, 1.0F, 0.0F);
    footL.addBox(-1.0F, 0.0F, -2.0F, 2, 1, 3, 0.0F);
    if (useEars) {
      earL = new ModelRenderer(this, 27, 29);
      earL.mirror = true;
      earL.setRotationPoint(0.0F, 0.0F, 0.0F);
      earL.addBox(2.0F, -8.0F, -3.0F, 3, 2, 1, 0.0F);
    }
    beak = new ModelRenderer(this, 36, 29);
    beak.setRotationPoint(-0.5F, -2.3F, -0.4F);
    beak.addBox(0.0F, -0.8F, -4.0F, 1, 1, 2, 0.0F);
    setRotateAngle(beak, 0.36425021489121656F, 0.0F, 0.0F);
    body = new ModelRenderer(this, 0, 0);
    body.setRotationPoint(0.0F, 15.0F, 0.0F);
    body.addBox(-3.0F, 0.0F, -3.0F, 6, 7, 5, 0.0F);
    body.addChild(wingR);
    body.addChild(legL);
    tailBase.addChild(tail1);
    if (useEars) {
      head.addChild(earR);
      head.addChild(earL);
    }
    body.addChild(tailBase);
    legR.addChild(footR);
    body.addChild(wingL);
    tailBase.addChild(tail2);
    tailBase.addChild(tail3);
    body.addChild(legR);
    legL.addChild(footL);

    head.addChild(beak);
  }