Java Code Examples for net.minecraft.client.model.ModelRenderer#addBox()
The following examples show how to use
net.minecraft.client.model.ModelRenderer#addBox() .
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: ModelSafetyValve.java From PneumaticCraft with GNU General Public License v3.0 | 6 votes |
public ModelSafetyValve(){ textureWidth = 64; textureHeight = 32; Shape1 = new ModelRenderer(this, 0, 0); Shape1.addBox(0F, 0F, 0F, 3, 3, 2); Shape1.setRotationPoint(-1.5F, 14.5F, 2F); Shape1.setTextureSize(64, 32); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 0, 0); Shape2.addBox(0F, 0F, 0F, 2, 2, 3); Shape2.setRotationPoint(-1F, 15F, 4F); Shape2.setTextureSize(64, 32); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 1, 1, 3); Shape3.setRotationPoint(2F, 15.5F, 4F); Shape3.setTextureSize(64, 32); Shape3.mirror = true; setRotation(Shape3, 0F, -0.5934119F, 0F); }
Example 2
Source File: ModelGauge.java From PneumaticCraft with GNU General Public License v3.0 | 6 votes |
public ModelGauge(){ textureWidth = 64; textureHeight = 32; Shape1 = new ModelRenderer(this, 0, 0); Shape1.addBox(0F, 0F, 0F, 3, 3, 3); Shape1.setRotationPoint(-1.5F, 14.5F, 2F); Shape1.setTextureSize(64, 32); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 0, 6); Shape2.addBox(0F, 0F, 0F, 8, 8, 1); Shape2.setRotationPoint(-4F, 12F, 5F); Shape2.setTextureSize(64, 32); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); }
Example 3
Source File: MoCModelEgg.java From mocreaturesdev with GNU General Public License v3.0 | 6 votes |
public MoCModelEgg() { //textureWidth = 64; //textureHeight = 32; Egg1 = new ModelRenderer(this, 0, 0); Egg1.addBox(0F, 0F, 0F, 3, 3, 3); Egg1.setRotationPoint(0F, 20F, 0F); Egg2 = new ModelRenderer(this, 10, 0); Egg2.addBox(0F, 0F, 0F, 2, 1, 2); Egg2.setRotationPoint(0.5F, 19.5F, 0.5F); Egg3 = new ModelRenderer(this, 30, 0); Egg3.addBox(0F, 0F, 0F, 2, 1, 2); Egg3.setRotationPoint(0.5F, 22.5F, 0.5F); Egg4 = new ModelRenderer(this, 24, 0); Egg4.addBox(0F, 0F, 0F, 1, 2, 2); Egg4.setRotationPoint(-0.5F, 20.5F, 0.5F); Egg5 = new ModelRenderer(this, 18, 0); Egg5.addBox(0F, 0F, 0F, 1, 2, 2); Egg5.setRotationPoint(2.5F, 20.5F, 0.5F); }
Example 4
Source File: ModelCharging.java From PneumaticCraft with GNU General Public License v3.0 | 6 votes |
public ModelCharging(){ textureWidth = 64; textureHeight = 32; Shape1 = new ModelRenderer(this, 22, 0); Shape1.addBox(0F, 0F, 0F, 2, 2, 2); Shape1.setRotationPoint(1F, 15F, 8F); Shape1.setTextureSize(64, 32); Shape1.mirror = true; setRotation(Shape1, 0F, 3.141593F, 0F); Shape2 = new ModelRenderer(this, 12, 0); Shape2.addBox(0F, 0F, 0F, 3, 3, 2); Shape2.setRotationPoint(1.5F, 14.5F, 6F); Shape2.setTextureSize(64, 32); Shape2.mirror = true; setRotation(Shape2, 0F, 3.141593F, 0F); Shape3 = new ModelRenderer(this, 0, 0); Shape3.addBox(0F, 0F, 0F, 4, 4, 2); Shape3.setRotationPoint(2F, 14F, 4F); Shape3.setTextureSize(64, 32); Shape3.mirror = true; setRotation(Shape3, 0F, 3.141593F, 0F); }
Example 5
Source File: ModelBusFluidImport.java From ExtraCells1 with MIT License | 5 votes |
public ModelBusFluidImport() { textureWidth = 64; textureHeight = 64; Shape1 = new ModelRenderer(this, 0, 0); Shape1.addBox(0F, 0F, 0F, 10, 2, 10); Shape1.setRotationPoint(-5F, 22F, -5F); Shape1.setTextureSize(64, 64); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 0, 12); Shape2.addBox(0F, 0F, 0F, 9, 2, 9); Shape2.setRotationPoint(-4.5F, 20.5F, -4.5F); Shape2.setTextureSize(64, 64); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 23); Shape3.addBox(0F, 0F, 0F, 8, 2, 8); Shape3.setRotationPoint(-4F, 19.2F, -4F); Shape3.setTextureSize(64, 64); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape4 = new ModelRenderer(this, 0, 33); Shape4.addBox(0F, 0F, 0F, 6, 2, 6); Shape4.setRotationPoint(-3F, 18F, -3F); Shape4.setTextureSize(64, 64); Shape4.mirror = true; setRotation(Shape4, 0F, 0F, 0F); }
Example 6
Source File: MoCModelKittyBed.java From mocreaturesdev with GNU General Public License v3.0 | 5 votes |
public MoCModelKittyBed() { float f = 0.0F; TableL = new ModelRenderer(this, 30, 8); TableL.addBox(-8F, 0.0F, 7F, 16, 6, 1, f); TableL.setRotationPoint(0.0F, 18F, 0.0F); TableR = new ModelRenderer(this, 30, 8); TableR.addBox(-8F, 18F, -8F, 16, 6, 1, f); TableR.setRotationPoint(0.0F, 0.0F, 0.0F); Table_B = new ModelRenderer(this, 30, 0); Table_B.addBox(-8F, -3F, 0.0F, 16, 6, 1, f); Table_B.setRotationPoint(8F, 21F, 0.0F); Table_B.rotateAngleY = 1.5708F; FoodT = new ModelRenderer(this, 14, 0); FoodT.addBox(1.0F, 1.0F, 1.0F, 4, 1, 4, f); FoodT.setRotationPoint(-16F, 22F, 0.0F); FoodTraySide = new ModelRenderer(this, 0, 0); FoodTraySide.addBox(-16F, 21F, 5F, 5, 3, 1, f); FoodTraySide.setRotationPoint(0.0F, 0.0F, 0.0F); FoodTraySideB = new ModelRenderer(this, 0, 0); FoodTraySideB.addBox(-15F, 21F, 0.0F, 5, 3, 1, f); FoodTraySideB.setRotationPoint(0.0F, 0.0F, 0.0F); FoodTraySideC = new ModelRenderer(this, 0, 0); FoodTraySideC.addBox(-3F, -1F, 0.0F, 5, 3, 1, f); FoodTraySideC.setRotationPoint(-16F, 22F, 2.0F); FoodTraySideC.rotateAngleY = 1.5708F; FoodTraySideD = new ModelRenderer(this, 0, 0); FoodTraySideD.addBox(-3F, -1F, 0.0F, 5, 3, 1, f); FoodTraySideD.setRotationPoint(-11F, 22F, 3F); FoodTraySideD.rotateAngleY = 1.5708F; Milk = new ModelRenderer(this, 14, 9); Milk.addBox(0.0F, 0.0F, 0.0F, 4, 1, 4, f); Milk.setRotationPoint(-15F, 21F, 1.0F); PetFood = new ModelRenderer(this, 0, 9); PetFood.addBox(0.0F, 0.0F, 0.0F, 4, 1, 4, f); PetFood.setRotationPoint(-15F, 21F, 1.0F); Bottom = new ModelRenderer(this, 16, 15); Bottom.addBox(-10F, 0.0F, -7F, 16, 1, 14, f); Bottom.setRotationPoint(2.0F, 23F, 0.0F); }
Example 7
Source File: DragonHeadRenderer.java From Hyperium with GNU Lesser General Public License v3.0 | 5 votes |
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 8
Source File: ModelRefinery.java From PneumaticCraft with GNU General Public License v3.0 | 5 votes |
public ModelRefinery(){ textureWidth = 64; textureHeight = 128; outputTank = new ModelRenderer(this, 26, 0); outputTank.addBox(0F, 0F, 0F, 8, 16, 5); outputTank.setRotationPoint(-4F, 8F, -8F); outputTank.setTextureSize(64, 128); outputTank.mirror = true; setRotation(outputTank, 0F, 0F, 0F); inputTank = new ModelRenderer(this, 0, 0); inputTank.addBox(0F, 0F, 0F, 8, 16, 5); inputTank.setRotationPoint(-4F, 8F, 3F); inputTank.setTextureSize(64, 128); inputTank.mirror = true; setRotation(inputTank, 0F, 0F, 0F); machineLeft = new ModelRenderer(this, 0, 26); machineLeft.addBox(0F, 0F, 0F, 4, 16, 10); machineLeft.setRotationPoint(-8F, 8F, -5F); machineLeft.setTextureSize(64, 128); machineLeft.mirror = true; setRotation(machineLeft, 0F, 0F, 0F); machineRight = new ModelRenderer(this, 0, 52); machineRight.addBox(0F, 0F, 0F, 4, 16, 10); machineRight.setRotationPoint(4F, 8F, -5F); machineRight.setTextureSize(64, 128); machineRight.mirror = true; setRotation(machineRight, 0F, 0F, 0F); machineMiddle = new ModelRenderer(this, 28, 26); machineMiddle.addBox(0F, 0F, 0F, 8, 16, 6); machineMiddle.setRotationPoint(-4F, 8F, -3F); machineMiddle.setTextureSize(64, 128); machineMiddle.mirror = true; setRotation(machineMiddle, 0F, 0F, 0F); }
Example 9
Source File: ModelJetpack.java From SimplyJetpacks with MIT License | 4 votes |
public ModelJetpack() { super(1.0F, 0, 64, 64); this.bipedBody.showModel = true; this.bipedRightArm.showModel = true; this.bipedLeftArm.showModel = true; this.bipedHead.showModel = false; this.bipedHeadwear.showModel = false; this.bipedRightLeg.showModel = false; this.bipedLeftLeg.showModel = false; ModelRenderer middle = new ModelRenderer(this, 0, 54).setTextureSize(64, 64); middle.addBox(-2F, 3F, 3.6F, 4, 5, 2); middle.setRotationPoint(0F, 0F, 0F); middle.mirror = true; this.setRotation(middle, 0F, 0F, 0F); ModelRenderer leftCanister = new ModelRenderer(this, 0, 32).setTextureSize(64, 64); leftCanister.addBox(0.5F, 2F, 2.6F, 4, 7, 4); leftCanister.setRotationPoint(0F, 0F, 0F); leftCanister.mirror = true; this.setRotation(leftCanister, 0F, 0F, 0F); ModelRenderer rightCanister = new ModelRenderer(this, 17, 32).setTextureSize(64, 64); rightCanister.addBox(-4.5F, 2F, 2.6F, 4, 7, 4); rightCanister.setRotationPoint(0F, 0F, 0F); rightCanister.mirror = true; this.setRotation(rightCanister, 0F, 0F, 0F); ModelRenderer leftTip1 = new ModelRenderer(this, 0, 45).setTextureSize(64, 64); leftTip1.addBox(1F, 1F, 3.1F, 3, 1, 3); leftTip1.setRotationPoint(0F, 0F, 0F); leftTip1.mirror = true; this.setRotation(leftTip1, 0F, 0F, 0F); ModelRenderer leftTip2 = new ModelRenderer(this, 0, 49).setTextureSize(64, 64); leftTip2.addBox(1.5F, -1F, 3.6F, 2, 2, 2); leftTip2.setRotationPoint(0F, 0F, 0F); leftTip2.mirror = true; this.setRotation(leftTip2, 0F, 0F, 0F); ModelRenderer rightTip1 = new ModelRenderer(this, 17, 45).setTextureSize(64, 64); rightTip1.addBox(-4F, 1F, 3.1F, 3, 1, 3); rightTip1.setRotationPoint(0F, 0F, 0F); rightTip1.mirror = true; this.setRotation(rightTip1, 0F, 0F, 0F); ModelRenderer rightTip2 = new ModelRenderer(this, 17, 49).setTextureSize(64, 64); rightTip2.addBox(-3.5F, -1F, 3.6F, 2, 2, 2); rightTip2.setRotationPoint(0F, 0F, 0F); rightTip2.mirror = true; this.setRotation(rightTip2, 0F, 0F, 0F); ModelRenderer leftExhaust1 = new ModelRenderer(this, 35, 32).setTextureSize(64, 64); leftExhaust1.addBox(1F, 9F, 3.1F, 3, 1, 3); leftExhaust1.setRotationPoint(0F, 0F, 0F); leftExhaust1.mirror = true; this.setRotation(leftExhaust1, 0F, 0F, 0F); ModelRenderer leftExhaust2 = new ModelRenderer(this, 35, 37).setTextureSize(64, 64); leftExhaust2.addBox(0.5F, 10F, 2.6F, 4, 3, 4); leftExhaust2.setRotationPoint(0F, 0F, 0F); leftExhaust2.mirror = true; this.setRotation(leftExhaust2, 0F, 0F, 0F); ModelRenderer rightExhaust1 = new ModelRenderer(this, 48, 32).setTextureSize(64, 64); rightExhaust1.addBox(-4F, 9F, 3.1F, 3, 1, 3); rightExhaust1.setRotationPoint(0F, 0F, 0F); rightExhaust1.mirror = true; this.setRotation(rightExhaust1, 0F, 0F, 0F); ModelRenderer rightExhaust2 = new ModelRenderer(this, 35, 45).setTextureSize(64, 64); rightExhaust2.addBox(-4.5F, 10F, 2.6F, 4, 3, 4); rightExhaust2.setRotationPoint(0F, 0F, 0F); rightExhaust2.mirror = true; this.setRotation(rightExhaust2, 0F, 0F, 0F); this.bipedBody.addChild(middle); this.bipedBody.addChild(leftCanister); this.bipedBody.addChild(rightCanister); this.bipedBody.addChild(leftTip1); this.bipedBody.addChild(leftTip2); this.bipedBody.addChild(rightTip1); this.bipedBody.addChild(rightTip2); this.bipedBody.addChild(leftExhaust1); this.bipedBody.addChild(leftExhaust2); this.bipedBody.addChild(rightExhaust1); this.bipedBody.addChild(rightExhaust2); }
Example 10
Source File: ModelOmnidirectionalHopper.java From PneumaticCraft with GNU General Public License v3.0 | 4 votes |
public ModelOmnidirectionalHopper(ResourceLocation texture){ this.texture = texture; textureWidth = 64; textureHeight = 64; Wall1 = new ModelRenderer(this, 48, 0); Wall1.addBox(0F, 0F, 0F, 2, 16, 5); Wall1.setRotationPoint(-8F, 8F, -8F); Wall1.setTextureSize(64, 64); Wall1.mirror = true; setRotation(Wall1, 0F, 0F, 0F); Wall2 = new ModelRenderer(this, 34, 0); Wall2.addBox(0F, 0F, 0F, 2, 16, 5); Wall2.setRotationPoint(6F, 8F, -8F); Wall2.setTextureSize(64, 64); Wall2.mirror = true; setRotation(Wall2, 0F, 0F, 0F); Wall3 = new ModelRenderer(this, 0, 24); Wall3.addBox(0F, 0F, 0F, 12, 2, 5); Wall3.setRotationPoint(-6F, 8F, -8F); Wall3.setTextureSize(64, 64); Wall3.mirror = true; setRotation(Wall3, 0F, 0F, 0F); Wall4 = new ModelRenderer(this, 0, 17); Wall4.addBox(0F, 0F, 0F, 12, 2, 5); Wall4.setRotationPoint(-6F, 22F, -8F); Wall4.setTextureSize(64, 64); Wall4.mirror = true; setRotation(Wall4, 0F, 0F, 0F); Funnel = new ModelRenderer(this, 0, 0); Funnel.addBox(0F, 0F, 0F, 16, 16, 1); Funnel.setRotationPoint(-8F, 8F, -3F); Funnel.setTextureSize(64, 64); Funnel.mirror = true; setRotation(Funnel, 0F, 0F, 0F); Funnel2 = new ModelRenderer(this, 0, 31); Funnel2.addBox(0F, 0F, 0F, 8, 8, 6); Funnel2.setRotationPoint(-4F, 12F, -2F); Funnel2.setTextureSize(64, 64); Funnel2.mirror = true; setRotation(Funnel2, 0F, 0F, 0F); InserterBottom = new ModelRenderer(this, 34, 29); InserterBottom.addBox(0F, 0F, 0F, 4, 4, 4); InserterBottom.setRotationPoint(-2F, 14F, 4F); InserterBottom.setTextureSize(64, 64); InserterBottom.mirror = true; setRotation(InserterBottom, 0F, 0F, 0F); }
Example 11
Source File: MoCModelRat.java From mocreaturesdev with GNU General Public License v3.0 | 4 votes |
public MoCModelRat() { Head = new ModelRenderer(this, 0, 0); Head.addBox(-1.5F, -1F, -6F, 3, 4, 6, 0.0F); Head.setRotationPoint(0.0F, 18F, -9F); EarR = new ModelRenderer(this, 16, 26); EarR.addBox(-3.5F, -3F, -2F, 3, 3, 1, 0.0F); EarR.setRotationPoint(0.0F, 18F, -9F); EarL = new ModelRenderer(this, 24, 26); EarL.addBox(0.5F, -3F, -2F, 3, 3, 1, 0.0F); EarL.setRotationPoint(0.0F, 18F, -9F); WhiskerR = new ModelRenderer(this, 24, 16); WhiskerR.addBox(-4.5F, -1F, -6F, 3, 3, 1, 0.0F); WhiskerR.setRotationPoint(0.0F, 18F, -9F); WhiskerL = new ModelRenderer(this, 24, 20); WhiskerL.addBox(1.5F, -1F, -6F, 3, 3, 1, 0.0F); WhiskerL.setRotationPoint(0.0F, 18F, -9F); Body = new ModelRenderer(this, 24, 0); Body.addBox(-4F, -3F, -3F, 8, 8, 8, 0.0F); Body.setRotationPoint(0.0F, 19F, 0.0F); Body.rotateAngleX = 1.570796F; Tail = new ModelRenderer(this, 56, 0); Tail.addBox(-1F, 0.0F, -1F, 2, 18, 2, 0.0F); Tail.setRotationPoint(0.0F, 19F, 5F); Tail.rotateAngleX = 1.570796F; FrontL = new ModelRenderer(this, 0, 18); FrontL.addBox(-2F, 0.0F, -3F, 2, 1, 4, 0.0F); FrontL.setRotationPoint(3F, 22F, -7F); FrontR = new ModelRenderer(this, 0, 18); FrontR.addBox(0.0F, 0.0F, -3F, 2, 1, 4, 0.0F); FrontR.setRotationPoint(-3F, 22F, -7F); RearL = new ModelRenderer(this, 0, 24); RearL.addBox(-2F, 0.0F, -4F, 2, 1, 5, 0.0F); RearL.setRotationPoint(4F, 22F, 2.0F); RearR = new ModelRenderer(this, 0, 24); RearR.addBox(0.0F, 0.0F, -4F, 2, 1, 5, 0.0F); RearR.setRotationPoint(-4F, 22F, 2.0F); BodyF = new ModelRenderer(this, 32, 16); BodyF.addBox(-3F, -3F, -7F, 6, 6, 6, 0.0F); BodyF.setRotationPoint(0.0F, 19F, -2F); }
Example 12
Source File: ModelDroneMinigun.java From PneumaticCraft with GNU General Public License v3.0 | 4 votes |
public ModelDroneMinigun(){ textureWidth = 64; textureHeight = 32; barrel = new ModelRenderer(this, 30, 15); barrel.addBox(-0.5F, 1.5F, 0F, 1, 1, 16); barrel.setRotationPoint(0F, 20.96667F, -8F); barrel.setTextureSize(64, 32); barrel.mirror = true; setRotation(barrel, 0F, 0F, 0F); support1 = new ModelRenderer(this, 0, 0); support1.addBox(-1.5F, -1.5F, 0F, 3, 3, 1); support1.setRotationPoint(0F, 21F, -6F); support1.setTextureSize(64, 32); support1.mirror = true; setRotation(support1, 0F, 0F, 0F); support2 = new ModelRenderer(this, 0, 4); support2.addBox(-1F, 1.5F, 0F, 2, 1, 1); support2.setRotationPoint(0F, 21F, -6F); support2.setTextureSize(64, 32); support2.mirror = true; setRotation(support2, 0F, 0F, 0F); support3 = new ModelRenderer(this, 0, 6); support3.addBox(-1F, -2.5F, 0F, 2, 1, 1); support3.setRotationPoint(0F, 21F, -6F); support3.setTextureSize(64, 32); support3.mirror = true; setRotation(support3, 0F, 0F, 0F); support4 = new ModelRenderer(this, 0, 8); support4.addBox(1.5F, -1F, 0F, 1, 2, 1); support4.setRotationPoint(0F, 21F, -6F); support4.setTextureSize(64, 32); support4.mirror = true; setRotation(support4, 0F, 0F, 0F); support5 = new ModelRenderer(this, 0, 11); support5.addBox(-2.5F, -1F, 0F, 1, 2, 1); support5.setRotationPoint(0F, 21F, -6F); support5.setTextureSize(64, 32); support5.mirror = true; setRotation(support5, 0F, 0F, 0F); main = new ModelRenderer(this, 36, 0); main.addBox(0F, 0F, 0F, 6, 6, 8); main.setRotationPoint(-3F, 18F, 8F); main.setTextureSize(64, 32); main.mirror = true; setRotation(main, 0F, 0F, 0F); magazine = new ModelRenderer(this, 0, 14); magazine.addBox(0F, 0F, 0F, 2, 3, 6); magazine.setRotationPoint(3F, 22F, 9F); magazine.setTextureSize(64, 32); magazine.mirror = true; setRotation(magazine, 0F, 0F, 0F); mount = new ModelRenderer(this, 0, 23); mount.addBox(0F, 0F, 0F, 2, 4, 2); mount.setRotationPoint(-1F, 15F, 11F); mount.setTextureSize(64, 32); mount.mirror = true; setRotation(mount, 0F, 0F, 0F); magazineColor = new ModelRenderer(this, 8, 0); magazineColor.addBox(0F, 0F, 0F, 1, 2, 4); magazineColor.setRotationPoint(4.3F, 22.5F, 10F); magazineColor.setTextureSize(64, 32); magazineColor.mirror = true; setRotation(magazineColor, 0F, 0F, 0F); }
Example 13
Source File: ModelMage.java From ToroQuest with GNU General Public License v3.0 | 4 votes |
protected void guideGrid(ModelRenderer space) { space.addBox(0F, 0F, 0F, 20, 1, 1, 0F); space.addBox(0F, 0F, 0F, 1, 15, 1, 0F); space.addBox(0F, 0F, 0F, 1, 1, 10, 0F); }
Example 14
Source File: MoCModelDragonfly.java From mocreaturesdev with GNU General Public License v3.0 | 4 votes |
public MoCModelDragonfly() { textureWidth = 32; textureHeight = 32; Head = new ModelRenderer(this, 0, 4); Head.addBox(-1F, 0F, -1F, 2, 1, 2); Head.setRotationPoint(0F, 21F, -2F); setRotation(Head, -2.171231F, 0F, 0F); RAntenna = new ModelRenderer(this, 0, 7); RAntenna.addBox(-0.5F, 0F, -1F, 1, 0, 1); RAntenna.setRotationPoint(-0.5F, 19.7F, -2.3F); setRotation(RAntenna, -1.041001F, 0.7853982F, 0F); LAntenna = new ModelRenderer(this, 4, 7); LAntenna.addBox(-0.5F, 0F, -1F, 1, 0, 1); LAntenna.setRotationPoint(0.5F, 19.7F, -2.3F); setRotation(LAntenna, -1.041001F, -0.7853982F, 0F); Mouth = new ModelRenderer(this, 0, 11); Mouth.addBox(-0.5F, 0F, 0F, 1, 1, 1); Mouth.setRotationPoint(0F, 21.1F, -2.3F); setRotation(Mouth, -2.171231F, 0F, 0F); Thorax = new ModelRenderer(this, 0, 0); Thorax.addBox(-1F, 0F, -1F, 2, 2, 2); Thorax.setRotationPoint(0F, 20F, -1F); Abdomen = new ModelRenderer(this, 8, 0); Abdomen.addBox(-0.5F, 0F, -1F, 1, 7, 1); Abdomen.setRotationPoint(0F, 20.5F, 0F); setRotation(Abdomen, 1.427659F, 0F, 0F); FrontLegs = new ModelRenderer(this, 0, 8); FrontLegs.addBox(-1F, 0F, 0F, 2, 3, 0); FrontLegs.setRotationPoint(0F, 21.5F, -1.8F); setRotation(FrontLegs, 0.1487144F, 0F, 0F); MidLegs = new ModelRenderer(this, 4, 8); MidLegs.addBox(-1F, 0F, 0F, 2, 3, 0); MidLegs.setRotationPoint(0F, 22F, -1.2F); setRotation(MidLegs, 0.5948578F, 0F, 0F); RearLegs = new ModelRenderer(this, 8, 8); RearLegs.addBox(-1F, 0F, 0F, 2, 3, 0); RearLegs.setRotationPoint(0F, 22F, -0.4F); setRotation(RearLegs, 1.070744F, 0F, 0F); WingFrontRight = new ModelRenderer(this, 0, 28); WingFrontRight.addBox(-7F, 0F, -1F, 7, 0, 2); WingFrontRight.setRotationPoint(-1F, 20F, -1F); setRotation(WingFrontRight, 0F, -0.1396263F, 0.0872665F); WingFrontLeft = new ModelRenderer(this, 0, 30); WingFrontLeft.addBox(0F, 0F, -1F, 7, 0, 2); WingFrontLeft.setRotationPoint(1F, 20F, -1F); setRotation(WingFrontLeft, 0F, 0.1396263F, -0.0872665F); WingRearRight = new ModelRenderer(this, 0, 24); WingRearRight.addBox(-7F, 0F, -1F, 7, 0, 2); WingRearRight.setRotationPoint(-1F, 20F, -1F); setRotation(WingRearRight, 0F, 0.3490659F, -0.0872665F); WingRearLeft = new ModelRenderer(this, 0, 26); WingRearLeft.addBox(0F, 0F, -1F, 7, 0, 2); WingRearLeft.setRotationPoint(1F, 20F, -1F); setRotation(WingRearLeft, 0F, -0.3490659F, 0.0872665F); }
Example 15
Source File: ModelPlasticMixer.java From PneumaticCraft with GNU General Public License v3.0 | 4 votes |
public ModelPlasticMixer(){ textureWidth = 128; textureHeight = 128; Shape2 = new ModelRenderer(this, 0, 0); Shape2.addBox(0F, 0F, 0F, 12, 14, 12); Shape2.setRotationPoint(-6F, 8F, -6F); Shape2.setTextureSize(128, 128); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3b = new ModelRenderer(this, 0, 38); Shape3b.addBox(0F, 0F, 0F, 14, 8, 1); Shape3b.setRotationPoint(-7F, 14F, 6F); Shape3b.setTextureSize(128, 128); Shape3b.mirror = true; setRotation(Shape3b, 0F, 0F, 0F); Shape1 = new ModelRenderer(this, 50, 0); Shape1.addBox(0F, 0F, 0F, 14, 2, 14); Shape1.setRotationPoint(-7F, 22F, -7F); Shape1.setTextureSize(128, 128); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 27); Shape3.addBox(0F, 0F, 0F, 14, 8, 1); Shape3.setRotationPoint(-7F, 14F, -7F); Shape3.setTextureSize(128, 128); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape4b = new ModelRenderer(this, 0, 70); Shape4b.addBox(0F, 0F, 0F, 1, 8, 12); Shape4b.setRotationPoint(-7F, 14F, -6F); Shape4b.setTextureSize(128, 128); Shape4b.mirror = true; setRotation(Shape4b, 0F, 0F, 0F); Shape4 = new ModelRenderer(this, 0, 48); Shape4.addBox(0F, 0F, 0F, 1, 8, 12); Shape4.setRotationPoint(6F, 14F, -6F); Shape4.setTextureSize(128, 128); Shape4.mirror = true; setRotation(Shape4, 0F, 0F, 0F); }
Example 16
Source File: ModelBear.java From TFC2 with GNU General Public License v3.0 | 4 votes |
public ModelBear() { textureWidth = 64; textureHeight = 32; setTextureOffset("Head.EarRight", 0, 9); setTextureOffset("Head.EarLeft", 0, 9); setTextureOffset("Head.Head", 0, 23); setTextureOffset("Head.Snout", 0, 12); setTextureOffset("Head.Jaw", 0, 17); setTextureOffset("Body.Torso", 16, 8); setTextureOffset("Body.Tail", 0, 0); setTextureOffset("Body.Hunch", 29, 18); setTextureOffset("LegLeftFront.LegFrontLeftUpper", 14, 0); setTextureOffset("LegLeftFront.LegFrontLeftLower", 32, 0); setTextureOffset("LegLeftFront.LegFrontLeftPaw", 44, 0); setTextureOffset("LegLeftRear.LegRearLeftUpper", 14, 0); setTextureOffset("LegLeftRear.LegRearLeftLower", 32, 0); setTextureOffset("LegLeftRear.LegRearLeftPaw", 44, 0); setTextureOffset("LegRightFront.LegFrontRightUpper", 14, 0); setTextureOffset("LegRightFront.LegFrontRightLower", 32, 0); setTextureOffset("LegRightFront.LegFrontRightPaw", 44, 0); setTextureOffset("LegRightRear.LegRearRightUpper", 14, 0); setTextureOffset("LegRightRear.LegRearRightLower", 32, 0); setTextureOffset("LegRightRear.LegRearRightPaw", 44, 0); Head = new ModelRenderer(this, "Head"); Head.setRotationPoint(0F, 10F, -3F); setRotation(Head, 0F, 0F, 0F); Head.mirror = true; Head.addBox("EarRight", 2F, -3F, -2F, 2, 2, 1); Head.addBox("EarLeft", -4F, -3F, -2F, 2, 2, 1); Head.addBox("Head", -3F, -2F, -4F, 6, 5, 4); Head.addBox("Snout", -1.5F, -1F, -7F, 3, 2, 3); Head.addBox("Jaw", -1.5F, 1F, -7F, 3, 1, 3); Body = new ModelRenderer(this, "Body"); Body.setRotationPoint(0F, 12F, 13F); setRotation(Body, 0F, 0F, 0F); Body.mirror = true; Body.addBox("Torso", -4F, -4F, -13F, 8, 8, 16); Body.addBox("Tail", -1F, -3F, 3F, 2, 3, 2); Body.addBox("Hunch", -2.5F, -5F, -16F, 5, 8, 6); LegLeftFront = new ModelRenderer(this, "LegLeftFront"); LegLeftFront.setRotationPoint(4F, 10F, 3F); setRotation(LegLeftFront, 0F, 0F, 0F); LegLeftFront.mirror = true; LegLeftFront.addBox("LegFrontLeftUpper", -2.5F, -1F, -2.5F, 4, 9, 5); LegLeftFront.addBox("LegFrontLeftLower", -2F, 8F, -2F, 3, 5, 3); LegLeftFront.addBox("LegFrontLeftPaw", -2F, 13F, -3F, 3, 1, 3); LegLeftRear = new ModelRenderer(this, "LegLeftRear"); LegLeftRear.setRotationPoint(4F, 10F, 14F); setRotation(LegLeftRear, 0F, 0F, 0F); LegLeftRear.mirror = true; LegLeftRear.addBox("LegRearLeftUpper", -2.5F, -1F, -2.5F, 4, 9, 5); LegLeftRear.addBox("LegRearLeftLower", -2F, 8F, -1F, 3, 5, 3); LegLeftRear.addBox("LegRearLeftPaw", -2F, 13F, -2F, 3, 1, 3); LegRightFront = new ModelRenderer(this, "LegRightFront"); LegRightFront.setRotationPoint(-4F, 10F, 3F); setRotation(LegRightFront, 0F, 0F, 0F); LegRightFront.mirror = true; LegRightFront.addBox("LegFrontRightUpper", -1.5F, -1F, -2.5F, 4, 9, 5); LegRightFront.addBox("LegFrontRightLower", -1F, 8F, -2F, 3, 5, 3); LegRightFront.addBox("LegFrontRightPaw", -1F, 13F, -3F, 3, 1, 3); LegRightRear = new ModelRenderer(this, "LegRightRear"); LegRightRear.setRotationPoint(-4F, 10F, 14F); setRotation(LegRightRear, 0F, 0F, 0F); LegRightRear.mirror = true; LegRightRear.addBox("LegRearRightUpper", -1.5F, -1F, -2.5F, 4, 9, 5); LegRightRear.addBox("LegRearRightLower", -1F, 8F, -1F, 3, 5, 3); LegRightRear.addBox("LegRearRightPaw", -1F, 13F, -2F, 3, 1, 3); }
Example 17
Source File: SpikesModel.java From Artifacts with MIT License | 4 votes |
public SpikesModel() { textureWidth = 64; textureHeight = 32; Base = new ModelRenderer(this, 0, 0); Base.addBox(0F, 0F, 0F, 16, 1, 16); Base.setRotationPoint(-8F, 8F, -8F); Base.setTextureSize(64, 32); Base.mirror = true; setRotation(Base, 0F, 0F, 0F); SpikeLower2 = new ModelRenderer(this, 32, 17); SpikeUpper2 = new ModelRenderer(this, 24, 17); SpikeLower2.addBox(-2F, 0F, -2F, 4, 5, 4); SpikeLower2.setRotationPoint(-4F, 14F, 4F); SpikeLower2.setTextureSize(64, 32); SpikeLower2.mirror = true; setRotation(SpikeLower2, 0F, 0F, 0F); SpikeUpper2.addBox(-1F, 0F, -1F, 2, 8, 2); SpikeUpper2.setRotationPoint(-4F, 22F, 4F); SpikeUpper2.setTextureSize(64, 32); SpikeUpper2.mirror = true; setRotation(SpikeUpper2, 0F, 0F, 0F); SpikeLower4 = new ModelRenderer(this, 0, 17); SpikeLower4.addBox(0F, 0F, 0F, 4, 5, 4); SpikeLower4.setRotationPoint(2F, 14F, -2F); SpikeLower4.setTextureSize(64, 32); SpikeLower4.mirror = true; setRotation(SpikeLower4, 0F, 0F, 0F); SpikeUpper4 = new ModelRenderer(this, 16, 17); SpikeUpper4.addBox(0F, 0F, 0F, 2, 8, 2); SpikeUpper4.setRotationPoint(3F, 22F, -3F); SpikeUpper4.setTextureSize(64, 32); SpikeUpper4.mirror = true; setRotation(SpikeUpper4, 0F, 0F, 0F); SpikeLower1 = new ModelRenderer(this, 0, 17); SpikeLower1.addBox(-2F, 0F, -2F, 4, 5, 4); SpikeLower1.setRotationPoint(-4F, 14F, -4F); SpikeLower1.setTextureSize(64, 32); SpikeLower1.mirror = true; setRotation(SpikeLower1, 0F, 0F, 0F); SpikeUpper1 = new ModelRenderer(this, 16, 17); SpikeUpper1.addBox(-1F, 0F, -1F, 2, 8, 2); SpikeUpper1.setRotationPoint(-4F, 22F, -4F); SpikeUpper1.setTextureSize(64, 32); SpikeUpper1.mirror = true; setRotation(SpikeUpper1, 0F, 0F, 0F); SpikeLower3 = new ModelRenderer(this, 0, 17); SpikeLower3.addBox(-2F, 0F, -2F, 4, 5, 4); SpikeLower3.setRotationPoint(4F, 14F, 4F); SpikeLower3.setTextureSize(64, 32); SpikeLower3.mirror = true; setRotation(SpikeLower3, 0F, 0F, 0F); SpikeUpper3 = new ModelRenderer(this, 16, 17); SpikeUpper3.addBox(-1F, 0F, -1F, 2, 8, 2); SpikeUpper3.setRotationPoint(4F, 22F, 4F); SpikeUpper3.setTextureSize(64, 32); SpikeUpper3.mirror = true; setRotation(SpikeUpper3, 0F, 0F, 0F); }
Example 18
Source File: ModelGnome.java From CommunityMod with GNU Lesser General Public License v2.1 | 4 votes |
public ModelGnome() { textureWidth = 64; textureHeight = 32; this.leftArmPose = ModelBiped.ArmPose.EMPTY; this.rightArmPose = ModelBiped.ArmPose.EMPTY; bipedHead = new ModelRenderer(this, 0, 0); bipedHead.addBox(-4F, -7F, -4F, 8, 7, 8); bipedHead.setRotationPoint(0F, 16F, 0F); bipedHead.setTextureSize(64, 32); bipedHead.mirror = true; setRotation(bipedHead, 0F, 0F, 0F); bipedBody = new ModelRenderer(this, 16, 16); bipedBody.addBox(-3F, 0F, -3F, 6, 5, 6); bipedBody.setRotationPoint(0F, 16F, 0F); bipedBody.setTextureSize(64, 32); bipedBody.mirror = true; setRotation(bipedBody, 0F, 0F, 0F); bipedRightArm = new ModelRenderer(this, 40, 13); bipedRightArm.addBox(-3F, -2F, -2F, 4, 5, 4); bipedRightArm.setRotationPoint(-4F, 18F, 0F); bipedRightArm.setTextureSize(64, 32); bipedRightArm.mirror = true; setRotation(bipedRightArm, 0F, 0F, 0F); bipedLeftArm = new ModelRenderer(this, 40, 22); bipedLeftArm.addBox(-1F, -2F, -2F, 4, 5, 4); bipedLeftArm.setRotationPoint(4F, 18F, 0F); bipedLeftArm.setTextureSize(64, 32); bipedLeftArm.mirror = true; setRotation(bipedLeftArm, 0F, 0F, 0F); bipedRightLeg = new ModelRenderer(this, 0, 16); bipedRightLeg.addBox(-2F, 0F, -2F, 4, 3, 4); bipedRightLeg.setRotationPoint(-2F, 21F, 0F); bipedRightLeg.setTextureSize(64, 32); bipedRightLeg.mirror = true; setRotation(bipedRightLeg, 0F, 0F, 0F); bipedLeftLeg = new ModelRenderer(this, 36, 6); bipedLeftLeg.addBox(-2F, 0F, -2F, 4, 3, 4); bipedLeftLeg.setRotationPoint(2F, 21F, 0F); bipedLeftLeg.setTextureSize(64, 32); bipedLeftLeg.mirror = true; setRotation(bipedLeftLeg, 0F, 0F, 0F); beard1 = new ModelRenderer(this, 45, 0); beard1.addBox(-2.5F, 0F, -4F, 5, 3, 1); beard1.setRotationPoint(0F, 16F, 0F); beard1.setTextureSize(64, 32); beard1.mirror = true; setRotation(beard1, -0.4363323F, 0F, 0F); nose = new ModelRenderer(this, 34, 0); nose.addBox(-1.5F, -4.5F, -6F, 3, 2, 2); nose.setRotationPoint(0F, 16F, 0F); nose.setTextureSize(64, 32); nose.mirror = true; setRotation(nose, 0F, 0F, 0F); }
Example 19
Source File: ModelComputer.java From PneumaticCraft with GNU General Public License v3.0 | 4 votes |
public ModelComputer(ResourceLocation texture){ this.texture = texture; textureWidth = 64; textureHeight = 32; Leg1 = new ModelRenderer(this, 0, 0); Leg1.addBox(0F, 0F, 0F, 2, 8, 2); Leg1.setRotationPoint(-7F, 16F, -7F); Leg1.setTextureSize(64, 32); Leg1.mirror = true; setRotation(Leg1, 0F, 0F, 0F); Leg2 = new ModelRenderer(this, 0, 0); Leg2.addBox(0F, 0F, 0F, 2, 8, 2); Leg2.setRotationPoint(5F, 16F, -7F); Leg2.setTextureSize(64, 32); Leg2.mirror = true; setRotation(Leg2, 0F, 0F, 0F); Leg3 = new ModelRenderer(this, 0, 0); Leg3.addBox(0F, 0F, 0F, 2, 8, 2); Leg3.setRotationPoint(-7F, 16F, 5F); Leg3.setTextureSize(64, 32); Leg3.mirror = true; setRotation(Leg3, 0F, 0F, 0F); Leg4 = new ModelRenderer(this, 0, 0); Leg4.addBox(0F, 0F, 0F, 2, 8, 2); Leg4.setRotationPoint(5F, 16F, 5F); Leg4.setTextureSize(64, 32); Leg4.mirror = true; setRotation(Leg4, 0F, 0F, 0F); Table = new ModelRenderer(this, 0, 0); Table.addBox(0F, 0F, 0F, 14, 3, 14); Table.setRotationPoint(-7F, 13F, -7F); Table.setTextureSize(64, 32); Table.mirror = true; setRotation(Table, 0F, 0F, 0F); Screen = new ModelRenderer(this, 0, 18); Screen.addBox(0F, 0F, 0F, 12, 3, 11); Screen.setRotationPoint(-6F, 13F, -6F); Screen.setTextureSize(64, 32); Screen.mirror = true; setRotation(Screen, 0.2617994F, 0F, 0F); }
Example 20
Source File: ModelBlockProtector.java From Gadomancy with GNU Lesser General Public License v3.0 | 4 votes |
public ModelBlockProtector() { textureWidth = 64; textureHeight = 64; Shape1 = new ModelRenderer(this, 0, 0); Shape1.addBox(0F, 0F, 0F, 16, 3, 16); Shape1.setRotationPoint(-8F, 21F, -8F); Shape1.setTextureSize(64, 64); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 0, 20); Shape2.addBox(0F, 0F, 0F, 4, 1, 1); Shape2.setRotationPoint(-2F, 20F, -8F); Shape2.setTextureSize(64, 64); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 11, 20); Shape3.addBox(0F, 0F, 0F, 4, 1, 3); Shape3.setRotationPoint(-2F, 20F, -7F); Shape3.setTextureSize(64, 64); Shape3.mirror = true; setRotation(Shape3, -0.3490659F, 0F, 0F); Shape4 = new ModelRenderer(this, 27, 20); Shape4.addBox(0F, 0F, 0F, 4, 1, 1); Shape4.setRotationPoint(-2F, 20F, 7F); Shape4.setTextureSize(64, 64); Shape4.mirror = true; setRotation(Shape4, 0F, 0F, 0F); Shape5 = new ModelRenderer(this, 38, 20); Shape5.addBox(0F, 0F, -3F, 4, 1, 3); Shape5.setRotationPoint(-2F, 20F, 7F); Shape5.setTextureSize(64, 64); Shape5.mirror = true; setRotation(Shape5, 0.3490659F, 0F, 0F); Shape6 = new ModelRenderer(this, 0, 25); Shape6.addBox(0F, 0F, 0F, 1, 1, 4); Shape6.setRotationPoint(-8F, 20F, -2F); Shape6.setTextureSize(64, 64); Shape6.mirror = true; setRotation(Shape6, 0F, 0F, 0F); Shape7 = new ModelRenderer(this, 11, 25); Shape7.addBox(0F, 0F, 0F, 3, 1, 4); Shape7.setRotationPoint(-7F, 20F, -2F); Shape7.setTextureSize(64, 64); Shape7.mirror = true; setRotation(Shape7, 0F, 0F, 0.3490659F); Shape8 = new ModelRenderer(this, 38, 25); Shape8.addBox(-3F, 0F, 0F, 3, 1, 4); Shape8.setRotationPoint(7F, 20F, -2F); Shape8.setTextureSize(64, 64); Shape8.mirror = true; setRotation(Shape8, 0F, 0F, -0.3490659F); Shape9 = new ModelRenderer(this, 27, 25); Shape9.addBox(0F, 0F, 0F, 1, 1, 4); Shape9.setRotationPoint(7F, 20F, -2F); Shape9.setTextureSize(64, 64); Shape9.mirror = true; setRotation(Shape9, 0F, 0F, 0F); Shape10 = new ModelRenderer(this, 0, 31); Shape10.addBox(0F, -7F, 0F, 2, 8, 2); Shape10.setRotationPoint(3F, 22F, 3F); Shape10.setTextureSize(64, 64); Shape10.mirror = true; setRotation(Shape10, 0.3490659F, 0F, -0.3490659F); Shape11 = new ModelRenderer(this, 10, 31); Shape11.addBox(-2F, -7F, -2F, 2, 8, 2); Shape11.setRotationPoint(-3F, 22F, -3F); Shape11.setTextureSize(64, 64); Shape11.mirror = true; setRotation(Shape11, -0.3490659F, 0F, 0.3490659F); Shape12 = new ModelRenderer(this, 20, 31); Shape12.addBox(0F, -7F, -2F, 2, 8, 2); Shape12.setRotationPoint(3F, 22F, -3F); Shape12.setTextureSize(64, 64); Shape12.mirror = true; setRotation(Shape12, -0.3490659F, 0F, -0.3490659F); Shape13 = new ModelRenderer(this, 30, 31); Shape13.addBox(-2F, -7F, 0F, 2, 8, 2); Shape13.setRotationPoint(-3F, 22F, 3F); Shape13.setTextureSize(64, 64); Shape13.mirror = true; setRotation(Shape13, 0.3490659F, 0F, 0.3490659F); }