Java Code Examples for net.minecraft.client.model.ModelRenderer#setRotationPoint()
The following examples show how to use
net.minecraft.client.model.ModelRenderer#setRotationPoint() .
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: ModelCable.java From ExtraCells1 with MIT License | 6 votes |
public ModelCable() { textureWidth = 64; textureHeight = 32; CableExtend = new ModelRenderer(this, 0, 4); CableExtend.addBox(0F, 0F, 0F, 4, 6, 4); CableExtend.setRotationPoint(-2F, 18F, -2F); CableExtend.setTextureSize(64, 32); CableExtend.mirror = true; setRotation(CableExtend, 0F, 0F, 0F); CableBase = new ModelRenderer(this, 0, 0); CableBase.addBox(0F, 0F, 0F, 4, 4, 4); CableBase.setRotationPoint(-2F, 14F, -2F); CableBase.setTextureSize(64, 32); CableBase.mirror = true; setRotation(CableBase, 0F, 0F, 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: ModelPressureRegulator.java From PneumaticCraft with GNU General Public License v3.0 | 6 votes |
public ModelPressureRegulator(){ textureWidth = 64; textureHeight = 32; Shape1 = new ModelRenderer(this, 0, 0); Shape1.addBox(0F, 0F, 0F, 7, 7, 7); Shape1.setRotationPoint(-3.5F, 12.5F, -3.5F); Shape1.setTextureSize(64, 32); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); Valve = new ModelRenderer(this, 0, 20); Valve.addBox(0F, 0F, 0F, 3, 8, 4); Valve.setRotationPoint(-1.5F, 12F, 0F); Valve.setTextureSize(64, 32); Valve.mirror = true; setRotation(Valve, 0F, 0F, 0F); }
Example 4
Source File: MoCModelDolphin.java From mocreaturesdev with GNU General Public License v3.0 | 5 votes |
public MoCModelDolphin() { Body = new ModelRenderer(this, 4, 6); Body.addBox(0.0F, 0.0F, 0.0F, 6, 8, 18, 0.0F); Body.setRotationPoint(-4F, 17F, -10F); UHead = new ModelRenderer(this, 0, 0); UHead.addBox(0.0F, 0.0F, 0.0F, 5, 7, 8, 0.0F); UHead.setRotationPoint(-3.5F, 18F, -16.5F); DHead = new ModelRenderer(this, 50, 0); DHead.addBox(0.0F, 0.0F, 0.0F, 3, 3, 4, 0.0F); DHead.setRotationPoint(-2.5F, 21.5F, -20.5F); PTail = new ModelRenderer(this, 34, 9); PTail.addBox(0.0F, 0.0F, 0.0F, 5, 5, 10, 0.0F); PTail.setRotationPoint(-3.5F, 19F, 8F); UpperFin = new ModelRenderer(this, 4, 12); UpperFin.addBox(0.0F, 0.0F, 0.0F, 1, 4, 8, 0.0F); UpperFin.setRotationPoint(-1.5F, 18F, -4F); UpperFin.rotateAngleX = 0.7853981F; LTailFin = new ModelRenderer(this, 34, 0); LTailFin.addBox(0.0F, 0.0F, 0.0F, 4, 1, 8, 0.3F); LTailFin.setRotationPoint(-2F, 21.5F, 18F); LTailFin.rotateAngleY = 0.7853981F; RTailFin = new ModelRenderer(this, 34, 0); RTailFin.addBox(0.0F, 0.0F, 0.0F, 4, 1, 8, 0.3F); RTailFin.setRotationPoint(-3F, 21.5F, 15F); RTailFin.rotateAngleY = -0.7853981F; LeftFin = new ModelRenderer(this, 14, 0); LeftFin.addBox(0.0F, 0.0F, 0.0F, 8, 1, 4, 0.0F); LeftFin.setRotationPoint(2.0F, 24F, -7F); LeftFin.rotateAngleY = -0.5235988F; LeftFin.rotateAngleZ = 0.5235988F; RightFin = new ModelRenderer(this, 14, 0); RightFin.addBox(0.0F, 0.0F, 0.0F, 8, 1, 4, 0.0F); RightFin.setRotationPoint(-10F, 27.5F, -3F); RightFin.rotateAngleY = 0.5235988F; RightFin.rotateAngleZ = -0.5235988F; }
Example 5
Source File: ModelParachute.java From archimedes-ships with MIT License | 5 votes |
public ModelParachute() { textureWidth = 128; textureHeight = 64; side0 = new ModelRenderer(this, 0, 0); side0.addBox(-16F, -16F, 0F, 32, 32, 1); side0.setRotationPoint(0F, 0F, 16F); side0.setTextureSize(128, 64); side0.mirror = true; setRotation(side0, 0F, 0F, 0F); side1 = new ModelRenderer(this, 0, 0); side1.addBox(-16F, -15F, 0F, 32, 31, 1); side1.setRotationPoint(0F, 0F, -16F); side1.setTextureSize(128, 64); side1.mirror = true; setRotation(side1, 0F, 0F, 0F); roof = new ModelRenderer(this, 0, 0); roof.addBox(-16F, 0F, -16F, 32, 1, 32); roof.setRotationPoint(0F, -16F, 0F); roof.setTextureSize(128, 64); roof.mirror = true; setRotation(roof, 0F, 0F, 0F); side2 = new ModelRenderer(this, 0, 0); side2.addBox(0F, -16F, -16F, 1, 32, 33); side2.setRotationPoint(16F, 0F, 0F); side2.setTextureSize(128, 64); side2.mirror = true; setRotation(side2, 0F, 0F, 0F); side3 = new ModelRenderer(this, 0, 0); side3.addBox(0F, -15F, -15F, 1, 31, 31); side3.setRotationPoint(-16F, 0F, 0F); side3.setTextureSize(128, 64); side3.mirror = true; setRotation(side3, 0F, 0F, 0F); }
Example 6
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 7
Source File: ModelSentryTurret.java From PneumaticCraft with GNU General Public License v3.0 | 5 votes |
public ModelSentryTurret(){ textureWidth = 64; textureHeight = 32; tripot1 = new ModelRenderer(this, 0, 0); tripot1.addBox(0F, 0F, 0F, 1, 7, 1); tripot1.setRotationPoint(-0.5F, 18F, -1F); tripot1.setTextureSize(64, 32); tripot1.mirror = true; setRotation(tripot1, -0.6981317F, 0F, 0F); tripot2 = new ModelRenderer(this, 4, 0); tripot2.addBox(0F, 0F, 0F, 1, 7, 1); tripot2.setRotationPoint(1F, 18F, 0F); tripot2.setTextureSize(64, 32); tripot2.mirror = true; setRotation(tripot2, -0.6981317F, -2.094395F, 0F); tripot3 = new ModelRenderer(this, 8, 0); tripot3.addBox(0F, 0F, 0F, 1, 7, 1); tripot3.setRotationPoint(-0.5F, 18F, 1F); tripot3.setTextureSize(64, 32); tripot3.mirror = true; setRotation(tripot3, -0.6981317F, 2.094395F, 0F); main = new ModelRenderer(this, 12, 0); main.addBox(0F, 0F, 0F, 2, 1, 2); main.setRotationPoint(-1F, 17.5F, -1F); main.setTextureSize(64, 32); main.mirror = true; setRotation(main, 0F, 0F, 0F); main2 = new ModelRenderer(this, 12, 3); main2.addBox(0F, 0F, 0F, 1, 2, 1); main2.setRotationPoint(-0.5F, 16F, -0.5F); main2.setTextureSize(64, 32); main2.mirror = true; setRotation(main2, 0F, 0F, 0F); }
Example 8
Source File: ModelHoodHelmet.java From HexxitGear with GNU General Public License v3.0 | 5 votes |
public ModelHoodHelmet() { textureWidth = 64; textureHeight = 64; head = new ModelRenderer(this, 0, 0); head.addBox(-4F, -7.5F, -4F, 8, 8, 8); head.setRotationPoint(0F, 0F, 0F); head.setTextureSize(64, 64); head.mirror = true; setRotation(head, 0F, 0F, 0F); Shape1 = new ModelRenderer(this, 48, 0); Shape1.addBox(-3.5F, -8.8F, 5F, 7, 5, 1); Shape1.setRotationPoint(0F, 0F, 0F); Shape1.setTextureSize(64, 64); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 48, 6); Shape2.addBox(-3F, -8.6F, 6F, 6, 3, 1); Shape2.setRotationPoint(0F, 0F, 0F); Shape2.setTextureSize(64, 64); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 48, 11); Shape3.addBox(-1.333333F, -8.5F, 7F, 3, 1, 1); Shape3.setRotationPoint(0F, 0F, 0F); Shape3.setTextureSize(64, 64); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape4 = new ModelRenderer(this, 0, 33); Shape4.addBox(-5F, -9F, -5F, 10, 9, 10); Shape4.setRotationPoint(0F, 0F, 0F); Shape4.setTextureSize(64, 64); Shape4.mirror = true; setRotation(Shape4, 0F, 0F, 0F); }
Example 9
Source File: ModelToro.java From ToroQuest with GNU General Public License v3.0 | 5 votes |
protected void createBody() { body = new ModelRenderer(this, 0, 0); body.setTextureSize(TEX_WIDTH, TEX_HEIGHT); body.setTextureOffset(0, 18).addBox(-7.0F, -15.0F, -12.0F, 14, 15, 16, 0); body.setTextureOffset(0, 49).addBox(-6.0F, 0.0F, -12.0F, 12, 24, 15, 0); body.setRotationPoint(0, BODY_HEIGHT, 0); body.setTextureOffset(52, 0); }
Example 10
Source File: ModelThermopneumaticProcessingPlant.java From PneumaticCraft with GNU General Public License v3.0 | 4 votes |
public ModelThermopneumaticProcessingPlant(){ textureWidth = 64; textureHeight = 64; itemPart = new ModelRenderer(this, 0, 23); itemPart.addBox(0F, 0F, 0F, 6, 8, 6); itemPart.setRotationPoint(-3F, 16F, -8F); itemPart.setTextureSize(64, 64); itemPart.mirror = true; setRotation(itemPart, 0F, 0F, 0F); inputTank = new ModelRenderer(this, 0, 0); inputTank.addBox(0F, 0F, 0F, 7, 12, 7); inputTank.setRotationPoint(-8F, 12F, 1F); inputTank.setTextureSize(64, 64); inputTank.mirror = true; setRotation(inputTank, 0F, 0F, 0F); outputTank = new ModelRenderer(this, 0, 0); outputTank.addBox(0F, 0F, 0F, 7, 12, 7); outputTank.setRotationPoint(1F, 12F, 1F); outputTank.setTextureSize(64, 64); outputTank.mirror = true; setRotation(outputTank, 0F, 0F, 0F); pipe1 = new ModelRenderer(this, 28, 8); pipe1.addBox(0F, 0F, 0F, 1, 1, 1); pipe1.setRotationPoint(-4F, 19F, -6F); pipe1.setTextureSize(64, 64); pipe1.mirror = true; setRotation(pipe1, 0F, 0F, 0F); pipe2 = new ModelRenderer(this, 28, 0); pipe2.addBox(0F, 0F, 0F, 1, 1, 7); pipe2.setRotationPoint(-5F, 19F, -6F); pipe2.setTextureSize(64, 64); pipe2.mirror = true; setRotation(pipe2, 0F, 0F, 0F); pipe3 = new ModelRenderer(this, 28, 0); pipe3.addBox(0F, 0F, 0F, 1, 1, 7); pipe3.setRotationPoint(4F, 19F, -6F); pipe3.setTextureSize(64, 64); pipe3.mirror = true; setRotation(pipe3, 0F, 0F, 0F); pipe4 = new ModelRenderer(this, 28, 8); pipe4.addBox(0F, 0F, 0F, 1, 1, 1); pipe4.setRotationPoint(3F, 19F, -6F); pipe4.setTextureSize(64, 64); pipe4.mirror = true; setRotation(pipe4, 0F, 0F, 0F); airBottom = new ModelRenderer(this, 44, 0); airBottom.addBox(0F, 0F, 0F, 4, 1, 4); airBottom.setRotationPoint(-2F, 23F, -2F); airBottom.setTextureSize(64, 64); airBottom.mirror = true; setRotation(airBottom, 0F, 0F, 0F); airBack = new ModelRenderer(this, 45, 5); airBack.addBox(0F, 0F, 0F, 2, 4, 1); airBack.setRotationPoint(-1F, 14F, 7F); airBack.setTextureSize(64, 64); airBack.mirror = true; setRotation(airBack, 0F, 0F, 0F); airLeft = new ModelRenderer(this, 44, 10); airLeft.addBox(0F, 0F, 0F, 1, 4, 3); airLeft.setRotationPoint(-8F, 14F, -2F); airLeft.setTextureSize(64, 64); airLeft.mirror = true; setRotation(airLeft, 0F, 0F, 0F); airRight = new ModelRenderer(this, 44, 17); airRight.addBox(0F, 0F, 0F, 1, 4, 3); airRight.setRotationPoint(7F, 14F, -2F); airRight.setTextureSize(64, 64); airRight.mirror = true; setRotation(airRight, 0F, 0F, 0F); }
Example 11
Source File: ModelAssemblyPlatform.java From PneumaticCraft with GNU General Public License v3.0 | 4 votes |
public ModelAssemblyPlatform(){ // EE3 snippet, to initialize an EntityItem which doesn't bob. customRenderItem = new RenderItem(){ @Override public boolean shouldBob(){ return false; }; }; customRenderItem.setRenderManager(RenderManager.instance); textureWidth = 64; textureHeight = 32; Base = new ModelRenderer(this, 0, 15); Base.addBox(0F, 0F, 0F, 16, 1, 16); Base.setRotationPoint(-8F, 23F, -8F); Base.setTextureSize(64, 32); Base.mirror = true; setRotation(Base, 0F, 0F, 0F); Platform = new ModelRenderer(this, 0, 6); Platform.addBox(0F, 0F, 0F, 8, 1, 8); Platform.setRotationPoint(-4F, 18F, -4F); Platform.setTextureSize(64, 32); Platform.mirror = true; setRotation(Platform, 0F, 0F, 0F); Leg1 = new ModelRenderer(this, 34, 0); Leg1.addBox(0F, 0F, 0F, 1, 6, 1); Leg1.setRotationPoint(2.3F, 18F, -3F); Leg1.setTextureSize(64, 32); Leg1.mirror = true; setRotation(Leg1, -0.5585054F, -0.7853982F, 0F); Leg2 = new ModelRenderer(this, 34, 0); Leg2.addBox(0F, 0F, 0F, 1, 6, 1); Leg2.setRotationPoint(-3F, 18F, -2.3F); Leg2.setTextureSize(64, 32); Leg2.mirror = true; setRotation(Leg2, -0.5585054F, 0.7853982F, 0F); Leg3 = new ModelRenderer(this, 34, 0); Leg3.addBox(0F, 0F, 0F, 1, 6, 1); Leg3.setRotationPoint(3F, 18F, 2.3F); Leg3.setTextureSize(64, 32); Leg3.mirror = true; setRotation(Leg3, -0.5585054F, -2.356194F, 0F); Leg4 = new ModelRenderer(this, 34, 0); Leg4.addBox(0F, 0F, 0F, 1, 6, 1); Leg4.setRotationPoint(-2.3F, 18F, 3F); Leg4.setTextureSize(64, 32); Leg4.mirror = true; setRotation(Leg4, -0.5585054F, 2.356194F, 0F); Claw1 = new ModelRenderer(this, 0, 0); Claw1.addBox(0F, 0F, 0F, 2, 1, 1); Claw1.setRotationPoint(-1F, 17F, 0F); Claw1.setTextureSize(64, 32); Claw1.mirror = true; setRotation(Claw1, 0F, 0F, 0F); Claw2 = new ModelRenderer(this, 0, 0); Claw2.addBox(0F, 0F, 0F, 2, 1, 1); Claw2.setRotationPoint(-1F, 17F, -1F); Claw2.setTextureSize(64, 32); Claw2.mirror = true; setRotation(Claw2, 0F, 0F, 0F); }
Example 12
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 13
Source File: MoCModelTurtle.java From mocreaturesdev with GNU General Public License v3.0 | 4 votes |
public MoCModelTurtle() { Shell = new ModelRenderer(this, 28, 0); Shell.addBox(0F, 0F, 0F, 9, 1, 9); Shell.setRotationPoint(-4.5F, 19F, -4.5F); ShellUp = new ModelRenderer(this, 0, 22); ShellUp.addBox(0F, 0F, 0F, 8, 2, 8); ShellUp.setRotationPoint(-4F, 17F, -4F); ShellTop = new ModelRenderer(this, 40, 10); ShellTop.addBox(0F, 0F, 0F, 6, 1, 6); ShellTop.setRotationPoint(-3F, 16F, -3F); Belly = new ModelRenderer(this, 0, 12); Belly.addBox(0F, 0F, 0F, 8, 1, 8); Belly.setRotationPoint(-4F, 20F, -4F); Leg1 = new ModelRenderer(this, 0, 0); Leg1.addBox(-1F, 0F, -1F, 2, 3, 2); Leg1.setRotationPoint(3.5F, 20F, -3.5F); Leg2 = new ModelRenderer(this, 0, 9); Leg2.addBox(-1F, 0F, -1F, 2, 3, 2); Leg2.setRotationPoint(-3.5F, 20F, -3.5F); Leg3 = new ModelRenderer(this, 0, 0); Leg3.addBox(-1F, 0F, -1F, 2, 3, 2); Leg3.setRotationPoint(3.5F, 20F, 3.5F); Leg4 = new ModelRenderer(this, 0, 9); Leg4.addBox(-1F, 0F, -1F, 2, 3, 2); Leg4.setRotationPoint(-3.5F, 20F, 3.5F); Head = new ModelRenderer(this, 10, 0); Head.addBox(-1.5F, -1F, -4F, 3, 2, 4); Head.setRotationPoint(0F, 20F, -4.5F); Tail = new ModelRenderer(this, 0, 5); Tail.addBox(-1F, -1F, 0F, 2, 1, 3); Tail.setRotationPoint(0F, 21F, 4F); }
Example 14
Source File: MoCModelKitty.java From mocreaturesdev with GNU General Public License v3.0 | 4 votes |
public MoCModelKitty(float f, float f1) { super(f, f1, 64, 32); bipedHead = new ModelRenderer(this, 1, 1); bipedHead.addBox(-2.5F, -3F, -4F, 5, 4, 4, f); bipedHead.setRotationPoint(0.0F, 0.0F + f1, -2F); bipedHeadwear = new ModelRenderer(this, 0, 0); bipedHeadwear.addBox(-4F, -3F, -4F, 1, 1, 1, f + 0.5F); bipedHeadwear.setRotationPoint(0.0F, 0.0F + f1, -2F); bipedHeadParts = new ModelRenderer[9]; bipedHeadParts[0] = new ModelRenderer(this, 16, 0); bipedHeadParts[0].addBox(-2F, -5F, -3F, 1, 1, 1, f); bipedHeadParts[0].setRotationPoint(0.0F, 0.0F + f1, -2F); bipedHeadParts[1] = new ModelRenderer(this, 16, 0); bipedHeadParts[1].mirror = true; bipedHeadParts[1].addBox(1.0F, -5F, -3F, 1, 1, 1, f); bipedHeadParts[1].setRotationPoint(0.0F, 0.0F + f1, -2F); bipedHeadParts[2] = new ModelRenderer(this, 20, 0); bipedHeadParts[2].addBox(-2.5F, -4F, -3F, 2, 1, 1, f); bipedHeadParts[2].setRotationPoint(0.0F, 0.0F + f1, -2F); bipedHeadParts[3] = new ModelRenderer(this, 20, 0); bipedHeadParts[3].mirror = true; bipedHeadParts[3].addBox(0.5F, -4F, -3F, 2, 1, 1, f); bipedHeadParts[3].setRotationPoint(0.0F, 0.0F + f1, -2F); bipedHeadParts[4] = new ModelRenderer(this, 40, 0); bipedHeadParts[4].addBox(-4F, -1.5F, -5F, 3, 3, 1, f); bipedHeadParts[4].setRotationPoint(0.0F, 0.0F + f1, -2F); bipedHeadParts[5] = new ModelRenderer(this, 40, 0); bipedHeadParts[5].mirror = true; bipedHeadParts[5].addBox(1.0F, -1.5F, -5F, 3, 3, 1, f); bipedHeadParts[5].setRotationPoint(0.0F, 0.0F + f1, -2F); bipedHeadParts[6] = new ModelRenderer(this, 21, 6); bipedHeadParts[6].addBox(-1F, -1F, -5F, 2, 2, 1, f); bipedHeadParts[6].setRotationPoint(0.0F, 0.0F + f1, -2F); bipedHeadParts[7] = new ModelRenderer(this, 50, 0); bipedHeadParts[7].addBox(-2.5F, 0.5F, -1F, 5, 4, 1, f); bipedHeadParts[7].setRotationPoint(0.0F, 0.0F + f1, -2F); bipedHeadParts[8] = new ModelRenderer(this, 60, 0); bipedHeadParts[8].addBox(-1.5F, -2F, -4.1F, 3, 1, 1, f); bipedHeadParts[8].setRotationPoint(0.0F, 0.0F + f1, -2F); bipedBody = new ModelRenderer(this, 20, 0); bipedBody.addBox(-2.5F, -2F, -0F, 5, 5, 10, f); bipedBody.setRotationPoint(0.0F, 0.0F + f1, -2F); bipedRightArm = new ModelRenderer(this, 0, 9); bipedRightArm.addBox(-1F, 0.0F, -1F, 2, 6, 2, f); bipedRightArm.setRotationPoint(-1.5F, 3F + f1, -1F); bipedLeftArm = new ModelRenderer(this, 0, 9); bipedLeftArm.mirror = true; bipedLeftArm.addBox(-1F, 0.0F, -1F, 2, 6, 2, f); bipedLeftArm.setRotationPoint(1.5F, 3F + f1, -1F); bipedRightLeg = new ModelRenderer(this, 8, 9); bipedRightLeg.addBox(-1F, 0.0F, -1F, 2, 6, 2, f); bipedRightLeg.setRotationPoint(-1.5F, 3F + f1, 7F); bipedLeftLeg = new ModelRenderer(this, 8, 9); bipedLeftLeg.mirror = true; bipedLeftLeg.addBox(-1F, 0.0F, -1F, 2, 6, 2, f); bipedLeftLeg.setRotationPoint(1.5F, 3F + f1, 7F); bipedTail = new ModelRenderer(this, 16, 9); bipedTail.mirror = true; bipedTail.addBox(-0.5F, -8F, -1F, 1, 8, 1, f); bipedTail.setRotationPoint(0.0F, -0.5F + f1, 7.5F); }
Example 15
Source File: ModelAssemblyLaser.java From PneumaticCraft with GNU General Public License v3.0 | 4 votes |
public ModelAssemblyLaser(){ textureWidth = 64; textureHeight = 64; Base = new ModelRenderer(this, 0, 0); Base.addBox(0F, 0F, 1F, 16, 1, 16); Base.setRotationPoint(-8F, 23F, -9F); Base.setTextureSize(64, 32); Base.mirror = true; setRotation(Base, 0F, 0F, 0F); BaseTurn = new ModelRenderer(this, 0, 17); BaseTurn.addBox(0F, 0F, 0F, 7, 1, 7); BaseTurn.setRotationPoint(-3.5F, 22F, -3.5F); BaseTurn.setTextureSize(64, 32); BaseTurn.mirror = true; setRotation(BaseTurn, 0F, 0F, 0F); BaseTurn2 = new ModelRenderer(this, 28, 17); BaseTurn2.addBox(0F, 0F, 0F, 4, 5, 4); BaseTurn2.setRotationPoint(-2F, 17F, -2F); BaseTurn2.setTextureSize(64, 32); BaseTurn2.mirror = true; setRotation(BaseTurn2, 0F, 0F, 0F); ArmBase1 = new ModelRenderer(this, 0, 25); ArmBase1.addBox(0F, 0F, 0F, 1, 2, 8); ArmBase1.setRotationPoint(2F, 17F, -1F); ArmBase1.setTextureSize(64, 32); ArmBase1.mirror = true; setRotation(ArmBase1, 0F, 0F, 0F); ArmBase2 = new ModelRenderer(this, 0, 25); ArmBase2.addBox(0F, 0F, 0F, 1, 2, 8); ArmBase2.setRotationPoint(-3F, 17F, -1F); ArmBase2.setTextureSize(64, 32); ArmBase2.mirror = true; setRotation(ArmBase2, 0F, 0F, 0F); SupportMiddle = new ModelRenderer(this, 0, 57); SupportMiddle.addBox(0F, 0F, 0F, 2, 1, 1); SupportMiddle.setRotationPoint(-1F, 17.5F, 5.5F); SupportMiddle.setTextureSize(64, 32); SupportMiddle.mirror = true; setRotation(SupportMiddle, 0F, 0F, 0F); ArmMiddle1 = new ModelRenderer(this, 0, 35); ArmMiddle1.addBox(0F, 0F, 0F, 1, 17, 2); ArmMiddle1.setRotationPoint(-2F, 2F, 5F); ArmMiddle1.setTextureSize(64, 32); ArmMiddle1.mirror = true; setRotation(ArmMiddle1, 0F, 0F, 0F); ArmMiddle2 = new ModelRenderer(this, 0, 35); ArmMiddle2.addBox(0F, 0F, 0F, 1, 17, 2); ArmMiddle2.setRotationPoint(1F, 2F, 5F); ArmMiddle2.setTextureSize(64, 32); ArmMiddle2.mirror = true; setRotation(ArmMiddle2, 0F, 0F, 0F); LaserBase = new ModelRenderer(this, 8, 38); LaserBase.addBox(0F, 0F, 0F, 2, 2, 3); LaserBase.setRotationPoint(-1F, 2F, 4.5F); LaserBase.setTextureSize(64, 32); LaserBase.mirror = true; setRotation(LaserBase, 0F, 0F, 0F); Laser = new ModelRenderer(this, 54, 59); Laser.addBox(0F, 0F, 0F, 1, 1, 32); Laser.setRotationPoint(-0.5F, 2.5F, 1F); Laser.setTextureSize(64, 32); Laser.mirror = true; setRotation(Laser, 0F, 0F, 0F); }
Example 16
Source File: ModelHeatSink.java From PneumaticCraft with GNU General Public License v3.0 | 4 votes |
public ModelHeatSink(){ textureWidth = 64; textureHeight = 64; Shape1 = new ModelRenderer(this, 0, 0); Shape1.addBox(0F, 0F, 0F, 16, 1, 16); Shape1.setRotationPoint(-8F, 23F, -8F); Shape1.setTextureSize(64, 64); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 0, 17); Shape2.addBox(0F, 0F, 0F, 1, 7, 16); Shape2.setRotationPoint(7F, 16F, -8F); Shape2.setTextureSize(64, 64); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 0, 17); Shape3.addBox(0F, 0F, 0F, 1, 7, 16); Shape3.setRotationPoint(-5F, 16F, -8F); Shape3.setTextureSize(64, 64); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape4 = new ModelRenderer(this, 0, 17); Shape4.addBox(0F, 0F, 0F, 1, 7, 16); Shape4.setRotationPoint(-8F, 16F, -8F); Shape4.setTextureSize(64, 64); Shape4.mirror = true; setRotation(Shape4, 0F, 0F, 0F); Shape5 = new ModelRenderer(this, 0, 17); Shape5.addBox(0F, 0F, 0F, 1, 7, 16); Shape5.setRotationPoint(-2F, 16F, -8F); Shape5.setTextureSize(64, 64); Shape5.mirror = true; setRotation(Shape5, 0F, 0F, 0F); Shape6 = new ModelRenderer(this, 0, 17); Shape6.addBox(0F, 0F, 0F, 1, 7, 16); Shape6.setRotationPoint(1F, 16F, -8F); Shape6.setTextureSize(64, 64); Shape6.mirror = true; setRotation(Shape6, 0F, 0F, 0F); Shape7 = new ModelRenderer(this, 0, 17); Shape7.addBox(0F, 0F, 0F, 1, 7, 16); Shape7.setRotationPoint(4F, 16F, -8F); Shape7.setTextureSize(64, 64); Shape7.mirror = true; setRotation(Shape7, 0F, 0F, 0F); Shape8 = new ModelRenderer(this, 0, 49); Shape8.addBox(0F, 0F, 0F, 14, 5, 2); Shape8.setRotationPoint(-7F, 18F, -1F); Shape8.setTextureSize(64, 64); Shape8.mirror = true; setRotation(Shape8, 0F, 0F, 0F); Shape9 = new ModelRenderer(this, 0, 40); Shape9.addBox(0F, 0F, 0F, 14, 3, 1); Shape9.setRotationPoint(-7F, 20F, -7F); Shape9.setTextureSize(64, 64); Shape9.mirror = true; setRotation(Shape9, 0F, 0F, 0F); Shape10 = new ModelRenderer(this, 0, 40); Shape10.addBox(0F, 0F, 0F, 14, 3, 1); Shape10.setRotationPoint(-7F, 20F, 6F); Shape10.setTextureSize(64, 64); Shape10.mirror = true; setRotation(Shape10, 0F, 0F, 0F); Shape11 = new ModelRenderer(this, 0, 44); Shape11.addBox(0F, 0F, 0F, 14, 4, 1); Shape11.setRotationPoint(-7F, 19F, 3F); Shape11.setTextureSize(64, 64); Shape11.mirror = true; setRotation(Shape11, 0F, 0F, 0F); Shape12 = new ModelRenderer(this, 0, 44); Shape12.addBox(0F, 0F, 0F, 14, 4, 1); Shape12.setRotationPoint(-7F, 19F, -4F); Shape12.setTextureSize(64, 64); Shape12.mirror = true; setRotation(Shape12, 0F, 0F, 0F); }
Example 17
Source File: ModelPeripheralProbe.java From AgriCraft with MIT License | 4 votes |
public ModelPeripheralProbe() { textureWidth = 32; textureHeight = 32; Shaft = new ModelRenderer(this, 0, 0); Shaft.addBox(-4F, 0F, 0F, 8, 1, 1); Shaft.setRotationPoint(0F, 21F, -6F); Shaft.setTextureSize(32, 32); Shaft.mirror = true; setRotation(Shaft, 0F, 0F, 0F); Bar1 = new ModelRenderer(this, 0, 2); Bar1.addBox(0F, 0F, 0F, 1, 5, 1); Bar1.setRotationPoint(1F, 16F, -6F); Bar1.setTextureSize(32, 32); Bar1.mirror = true; setRotation(Bar1, 0F, 0F, 0F); Probe1 = new ModelRenderer(this, 4, 2); Probe1.addBox(0F, 0F, 0F, 1, 1, 2); Probe1.setRotationPoint(1F, 16F, -8F); Probe1.setTextureSize(32, 32); Probe1.mirror = true; setRotation(Probe1, 0F, 0F, 0F); Probe2 = new ModelRenderer(this, 10, 2); Probe2.addBox(0F, 0F, 0F, 1, 1, 2); Probe2.setRotationPoint(-2F, 16F, -8F); Probe2.setTextureSize(32, 32); Probe2.mirror = true; setRotation(Probe2, 0F, 0F, 0F); Bar2 = new ModelRenderer(this, 0, 2); Bar2.addBox(0F, 0F, 0F, 1, 5, 1); Bar2.setRotationPoint(-2F, 16F, -6F); Bar2.setTextureSize(32, 32); Bar2.mirror = true; setRotation(Bar2, 0F, 0F, 0F); Bar3 = new ModelRenderer(this, 0, 2); Bar3.addBox(0F, 0F, 0F, 1, 7, 1); Bar3.setRotationPoint(-0.5F, 14F, -6F); Bar3.setTextureSize(32, 32); Bar3.mirror = true; setRotation(Bar3, 0F, 0F, 0F); Probe3Left = new ModelRenderer(this, 4, 5); Probe3Left.addBox(0F, 0F, 0F, 1, 3, 1); Probe3Left.setRotationPoint(0.5F, 12F, -6F); Probe3Left.setTextureSize(32, 32); Probe3Left.mirror = true; setRotation(Probe3Left, 0F, 0F, 0F); Probe3Right = new ModelRenderer(this, 8, 5); Probe3Right.addBox(0F, 0F, 0F, 1, 2, 1); Probe3Right.setRotationPoint(-1.5F, 13F, -6F); Probe3Right.setTextureSize(32, 32); Probe3Right.mirror = true; setRotation(Probe3Right, 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: ModelBigCat.java From TFC2 with GNU General Public License v3.0 | 4 votes |
public ModelBigCat() { textureWidth = 64; textureHeight = 32; setTextureOffset("HEAD.EarLeft", 0, 0); setTextureOffset("HEAD.EarRight", 0, 0); setTextureOffset("HEAD.Head", 0, 24); setTextureOffset("HEAD.Snout", 0, 11); setTextureOffset("HEAD.Jaw", 0, 15); setTextureOffset("BODY.Torso", 20, 9); setTextureOffset("BODY.Tail", 49, 0); setTextureOffset("LegLEFTREAR.LegRearLeftUpper", 53, 0); setTextureOffset("LegLEFTREAR.LegRearLeftLower", 54, 10); setTextureOffset("LegLEFTREAR.LegRearLeftPaw", 52, 18); setTextureOffset("LegLEFTFRONT.LegFrontRightUpper", 53, 0); setTextureOffset("LegLEFTFRONT.LegFrontRightLower", 54, 10); setTextureOffset("LegLEFTFRONT.LegFrontRightPaw", 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); Neck = new ModelRenderer(this, 18, 16); Neck.addBox(-1.5F, 1F, -3F, 3, 3, 6); Neck.setRotationPoint(0F, 8F, 1F); Neck.setTextureSize(64, 32); Neck.mirror = true; setRotation(Neck, -0.5235988F, 0F, 0F); HEAD = new ModelRenderer(this, "HEAD"); HEAD.setRotationPoint(0F, 9F, -1F); 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("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, 4); BODY = new ModelRenderer(this, "BODY"); BODY.setRotationPoint(0F, 12F, 14F); setRotation(BODY, 0F, 0F, 0F); BODY.mirror = true; BODY.addBox("Torso", -3F, -3F, -13F, 6, 7, 16); BODY.addBox("Tail", -0.5F, -2F, 3F, 1, 10, 1); 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("LegFrontRightUpper", 0F, -1F, -1.5F, 2, 7, 3); LegLEFTFRONT.addBox("LegFrontRightLower", 0F, 6F, -1F, 2, 6, 2); LegLEFTFRONT.addBox("LegFrontRightPaw", -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 20
Source File: ModelLogisticsModule.java From PneumaticCraft with GNU General Public License v3.0 | 4 votes |
public ModelLogisticsModule(){ textureWidth = 128; textureHeight = 128; notPowered = new ModelRenderer(this, 72, 0); notPowered.addBox(0F, 0F, 0F, 6, 2, 6); notPowered.setRotationPoint(-3F, 13F, 4F); notPowered.setTextureSize(128, 128); notPowered.mirror = true; setRotation(notPowered, -1.570796F, 0F, 0F); powered = new ModelRenderer(this, 48, 0); powered.addBox(0F, 0F, 0F, 6, 2, 6); powered.setRotationPoint(-3F, 13F, 4F); powered.setTextureSize(128, 128); powered.mirror = true; setRotation(powered, -1.570796F, 0F, 0F); action = new ModelRenderer(this, 24, 0); action.addBox(0F, 0F, 0F, 6, 2, 6); action.setRotationPoint(-3F, 13F, 4F); action.setTextureSize(128, 128); action.mirror = true; setRotation(action, -1.570796F, 0F, 0F); notEnoughAir = new ModelRenderer(this, 0, 0); notEnoughAir.addBox(0F, 0F, 0F, 6, 2, 6); notEnoughAir.setRotationPoint(-3F, 13F, 4F); notEnoughAir.setTextureSize(128, 128); notEnoughAir.mirror = true; setRotation(notEnoughAir, -1.570796F, 0F, 0F); base2 = new ModelRenderer(this, 0, 25); base2.addBox(0F, 0F, 0F, 12, 2, 12); base2.setRotationPoint(-6F, 10F, 6F); base2.setTextureSize(128, 128); base2.mirror = true; setRotation(base2, -1.570796F, 0F, 0F); Shape1 = new ModelRenderer(this, 0, 39); Shape1.addBox(0F, 0F, 0F, 1, 13, 1); Shape1.setRotationPoint(5.5F, 9.5F, 5.5F); Shape1.setTextureSize(128, 128); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 4, 39); Shape2.addBox(0F, 0F, 0F, 1, 13, 1); Shape2.setRotationPoint(-6.5F, 9.5F, 5.5F); Shape2.setTextureSize(128, 128); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 8, 39); Shape3.addBox(0F, 0F, 0F, 11, 1, 1); Shape3.setRotationPoint(-5.5F, 9.5F, 5.5F); Shape3.setTextureSize(128, 128); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape4 = new ModelRenderer(this, 8, 41); Shape4.addBox(0F, 0F, 0F, 11, 1, 1); Shape4.setRotationPoint(-5.5F, 21.5F, 5.5F); Shape4.setTextureSize(128, 128); Shape4.mirror = true; setRotation(Shape4, 0F, 0F, 0F); }