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

The following examples show how to use net.minecraft.client.model.ModelRenderer#setTextureSize() . 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: ModelPressureRegulator.java    From PneumaticCraft with GNU General Public License v3.0 6 votes vote down vote up
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 2
Source File: ModelGauge.java    From PneumaticCraft with GNU General Public License v3.0 6 votes vote down vote up
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: ModelPneumaticDynamo.java    From PneumaticCraft with GNU General Public License v3.0 6 votes vote down vote up
public ModelPneumaticDynamo(){
    textureWidth = 64;
    textureHeight = 64;

    base = new ModelRenderer(this, 0, 0);
    base.addBox(0F, 0F, 0F, 16, 10, 16);
    base.setRotationPoint(-8F, 14F, -8F);
    base.setTextureSize(64, 64);
    base.mirror = true;
    setRotation(base, 0F, 0F, 0F);
    top = new ModelRenderer(this, 0, 27);
    top.addBox(0F, 0F, 0F, 8, 8, 8);
    top.setRotationPoint(-4F, 8F, -4F);
    top.setTextureSize(64, 64);
    top.mirror = true;
    setRotation(top, 0F, 0F, 0F);
}
 
Example 4
Source File: ModelPackagerPiston.java    From Gadomancy with GNU Lesser General Public License v3.0 6 votes vote down vote up
public ModelPackagerPiston(boolean cut)
{
    textureWidth = 64;
    textureHeight = 32;

    shape1 = new ModelRenderer(this, 0, 0);
    shape1.addBox(0F, 0F, 0F, 10, 2, 10);
    shape1.setRotationPoint(-5F, 16F, -5F);
    shape1.setTextureSize(64, 32);
    shape1.mirror = true;

    shape2 = new ModelRenderer(this, 41, cut ? 1 : 0);
    shape2.addBox(0F, 0F, 0F, 4, 4, 4);
    shape2.setRotationPoint(-2F, cut ? 13F : 12F, -2F);
    shape2.setTextureSize(64, 32);
    shape2.mirror = true;
}
 
Example 5
Source File: ModelGasLift.java    From PneumaticCraft with GNU General Public License v3.0 6 votes vote down vote up
public ModelGasLift(){
    textureWidth = 64;
    textureHeight = 64;

    Shape1 = new ModelRenderer(this, 0, 24);
    Shape1.addBox(0F, 0F, 0F, 16, 2, 16);
    Shape1.setRotationPoint(-8F, 22F, -8F);
    Shape1.setTextureSize(64, 64);
    Shape1.mirror = true;
    setRotation(Shape1, 0F, 0F, 0F);
    Shape2 = new ModelRenderer(this, 0, 0);
    Shape2.addBox(0F, 0F, 0F, 8, 2, 8);
    Shape2.setRotationPoint(-4F, 18F, -4F);
    Shape2.setTextureSize(64, 64);
    Shape2.mirror = true;
    setRotation(Shape2, 0F, 0F, 0F);
    Shape3 = new ModelRenderer(this, 0, 10);
    Shape3.addBox(0F, 0F, 0F, 12, 2, 12);
    Shape3.setRotationPoint(-6F, 20F, -6F);
    Shape3.setTextureSize(64, 64);
    Shape3.mirror = true;
    setRotation(Shape3, 0F, 0F, 0F);
}
 
Example 6
Source File: ModelLevelEmitterFluid.java    From ExtraCells1 with MIT License 6 votes vote down vote up
public ModelLevelEmitterFluid()
{
	textureWidth = 64;
	textureHeight = 32;

	Shape1 = new ModelRenderer(this, 0, 0);
	Shape1.addBox(0F, 0F, 0F, 6, 6, 6);
	Shape1.setRotationPoint(-3F, 13F, -3F);
	Shape1.setTextureSize(64, 32);
	Shape1.mirror = true;
	setRotation(Shape1, 0F, 0F, 0F);
	Shape2 = new ModelRenderer(this, 32, 0);
	Shape2.addBox(0F, 0F, 0F, 2, 6, 2);
	Shape2.setRotationPoint(-1F, 17.25F, -1F);
	Shape2.setTextureSize(64, 32);
	Shape2.mirror = true;
	setRotation(Shape2, 0F, 0F, 0F);
}
 
Example 7
Source File: ShojiModel.java    From Sakura_mod with MIT License 5 votes vote down vote up
public ShojiModel() {
    textureWidth = 64;
    textureHeight = 64;

    main = new ModelRenderer(this, 0, 0);
    main.addBox(-8F, -8F, -1F, 16, 32, 2);
    main.setRotationPoint(0F, 0F, 0F);
    main.setTextureSize(64, 64);
    main.mirror = true;
    setRotation(main, 0F, 0F, 0F);
}
 
Example 8
Source File: ModelPressureGaugeTube.java    From PneumaticCraft with GNU General Public License v3.0 5 votes vote down vote up
public ModelPressureGaugeTube(){
    textureWidth = 64;
    textureHeight = 32;

    Shape1 = new ModelRenderer(this, 0, 0);
    Shape1.addBox(0F, 0F, 0F, 10, 10, 1);
    Shape1.setRotationPoint(-5F, 11F, 3F);
    Shape1.setTextureSize(64, 32);
    Shape1.mirror = true;
    setRotation(Shape1, 0F, 0F, 0F);
}
 
Example 9
Source File: ModelJarPot.java    From Gadomancy with GNU Lesser General Public License v3.0 5 votes vote down vote up
public ModelJarPot() {
    textureWidth = 32;
    textureHeight = 64;

    shape1 = new ModelRenderer(this, 0, 0);
    shape1.addBox(0F, 0F, 0F, 10, 0, 10);
    shape1.setRotationPoint(-5F, 24F, -5F);
    shape1.setTextureSize(32, 64);
    shape1.mirror = true;
    setRotation(shape1, 0F, 0F, 0F);
    shape2 = new ModelRenderer(this, 0, 28);
    shape2.addBox(0F, 0F, 0F, 1, 6, 12);
    shape2.setRotationPoint(-6F, 18F, -6F);
    shape2.setTextureSize(32, 64);
    shape2.mirror = true;
    setRotation(shape2, 0F, 0F, 0F);
    shape3 = new ModelRenderer(this, 0, 10);
    shape3.addBox(0F, 0F, 0F, 1, 6, 12);
    shape3.setRotationPoint(5F, 18F, -6F);
    shape3.setTextureSize(32, 64);
    shape3.mirror = true;
    setRotation(shape3, 0F, 0F, 0F);
    shape4 = new ModelRenderer(this, 0, 53);
    shape4.addBox(0F, 0F, 0F, 10, 6, 1);
    shape4.setRotationPoint(-5F, 18F, 5F);
    shape4.setTextureSize(32, 64);
    shape4.mirror = true;
    setRotation(shape4, 0F, 0F, 0F);
    shape5 = new ModelRenderer(this, 0, 46);
    shape5.addBox(0F, 0F, 0F, 10, 6, 1);
    shape5.setRotationPoint(-5F, 18F, -6F);
    shape5.setTextureSize(32, 64);
    shape5.mirror = true;
    setRotation(shape5, 0F, 0F, 0F);
}
 
Example 10
Source File: ModelGuard.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
protected void buildCape(CivilizationType civ) {
	ModelRenderer cape = new ModelRenderer(this, 0, 32);
	cape.setTextureSize(64, 64);
	switch (civ) {
	case SUN:
		cape.setTextureOffset(0, 32);
		break;
	case EARTH:
		cape.setTextureOffset(20, 32);
		break;
	case WATER:
		cape.setTextureOffset(40, 32);
		break;
	case WIND:
		cape.setTextureOffset(0, 47);
		break;
	case MOON:
		cape.setTextureOffset(20, 47);
		break;
	case FIRE:
		cape.setTextureOffset(40, 47);
		break;
	default:
		cape.setTextureOffset(0, 32);
		break;
	}
	cape.addBox(-4.5F, 0.0F, 0F, 9, 14, 1, modelSize);
	cape.setRotationPoint(0, 0, 0);
	cape.offsetZ = 0.17f;
	cape.offsetY = +0.05f;
	cape.rotateAngleX = DEFAULT_CAPE_ANGLE;
	bipedBody.addChild(cape);
	cape.isHidden = true;
	capes[civ.ordinal()] = cape;
}
 
Example 11
Source File: ModelRefinery.java    From PneumaticCraft with GNU General Public License v3.0 5 votes vote down vote up
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 12
Source File: ModelAssemblyController.java    From PneumaticCraft with GNU General Public License v3.0 4 votes vote down vote up
public ModelAssemblyController(){
    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);
    InputBack1 = new ModelRenderer(this, 0, 0);
    InputBack1.addBox(0F, 0F, 0F, 2, 1, 3);
    InputBack1.setRotationPoint(-1F, 14F, 5F);
    InputBack1.setTextureSize(64, 32);
    InputBack1.mirror = true;
    setRotation(InputBack1, 0F, 0F, 0F);
    InputBack2 = new ModelRenderer(this, 0, 0);
    InputBack2.addBox(0F, 0F, 0F, 2, 6, 1);
    InputBack2.setRotationPoint(-1F, 17F, 7F);
    InputBack2.setTextureSize(64, 32);
    InputBack2.mirror = true;
    setRotation(InputBack2, 0F, 0F, 0F);
    InputBack3 = new ModelRenderer(this, 0, 0);
    InputBack3.addBox(0F, 0F, 0F, 1, 2, 3);
    InputBack3.setRotationPoint(1F, 15F, 5F);
    InputBack3.setTextureSize(64, 32);
    InputBack3.mirror = true;
    setRotation(InputBack3, 0F, 0F, 0F);
    InputBack4 = new ModelRenderer(this, 0, 0);
    InputBack4.addBox(0F, 0F, 0F, 1, 2, 3);
    InputBack4.setRotationPoint(-2F, 15F, 5F);
    InputBack4.setTextureSize(64, 32);
    InputBack4.mirror = true;
    setRotation(InputBack4, 0F, 0F, 0F);
    InputBack5 = new ModelRenderer(this, 0, 0);
    InputBack5.addBox(0F, 0F, 0F, 2, 8, 1);
    InputBack5.setRotationPoint(-1F, 15F, 4F);
    InputBack5.setTextureSize(64, 32);
    InputBack5.mirror = true;
    setRotation(InputBack5, 0F, 0F, 0F);
    InputBack6 = new ModelRenderer(this, 0, 0);
    InputBack6.addBox(0F, 0F, 0F, 1, 6, 2);
    InputBack6.setRotationPoint(1F, 17F, 5F);
    InputBack6.setTextureSize(64, 32);
    InputBack6.mirror = true;
    setRotation(InputBack6, 0F, 0F, 0F);
    InputBack7 = new ModelRenderer(this, 0, 0);
    InputBack7.addBox(0F, 0F, 0F, 1, 6, 2);
    InputBack7.setRotationPoint(-2F, 17F, 5F);
    InputBack7.setTextureSize(64, 32);
    InputBack7.mirror = true;
    setRotation(InputBack7, 0F, 0F, 0F);
    ScreenLeg = new ModelRenderer(this, 21, 0);
    ScreenLeg.addBox(0F, 0F, 0F, 2, 12, 2);
    ScreenLeg.setRotationPoint(-1F, 11F, -1F);
    ScreenLeg.setTextureSize(64, 32);
    ScreenLeg.mirror = true;
    setRotation(ScreenLeg, 0F, 0F, 0F);
    Screen = new ModelRenderer(this, 33, 0);
    Screen.addBox(0F, 0F, 0F, 10, 6, 1);
    Screen.setRotationPoint(-5F, 8F, 1F);
    Screen.setTextureSize(64, 32);
    Screen.mirror = true;
    setRotation(Screen, -0.5934119F, 0F, 0F);
    ScreenLegPart = new ModelRenderer(this, 14, 1);
    ScreenLegPart.addBox(0F, 0F, 0F, 2, 1, 1);
    ScreenLegPart.setRotationPoint(-1F, 10F, 0F);
    ScreenLegPart.setTextureSize(64, 32);
    ScreenLegPart.mirror = true;
    setRotation(ScreenLegPart, 0F, 0F, 0F);
}
 
Example 13
Source File: ModelPlasticMixer.java    From PneumaticCraft with GNU General Public License v3.0 4 votes vote down vote up
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 14
Source File: ModelComputer.java    From PneumaticCraft with GNU General Public License v3.0 4 votes vote down vote up
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 15
Source File: ModelAssemblyIOUnit.java    From PneumaticCraft with GNU General Public License v3.0 4 votes vote down vote up
public ModelAssemblyIOUnit(){
    // 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 = 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);
    ClawBase = new ModelRenderer(this, 8, 38);
    ClawBase.addBox(0F, 0F, 0F, 2, 2, 3);
    ClawBase.setRotationPoint(-1F, 2F, 4.5F);
    ClawBase.setTextureSize(64, 32);
    ClawBase.mirror = true;
    setRotation(ClawBase, 0F, 0F, 0F);
    ClawAxil = new ModelRenderer(this, 8, 45);
    ClawAxil.addBox(0F, 0F, 0F, 1, 1, 1);
    ClawAxil.setRotationPoint(-0.5F, 2.5F, 4F);
    ClawAxil.setTextureSize(64, 32);
    ClawAxil.mirror = true;
    setRotation(ClawAxil, 0F, 0F, 0F);
    ClawTurn = new ModelRenderer(this, 8, 49);
    ClawTurn.addBox(0F, 0F, 0F, 4, 2, 1);
    ClawTurn.setRotationPoint(-2F, 2F, 3F);
    ClawTurn.setTextureSize(64, 32);
    ClawTurn.mirror = true;
    setRotation(ClawTurn, 0F, 0F, 0F);
    Claw1 = new ModelRenderer(this, 8, 54);
    Claw1.addBox(0F, 0F, 0F, 1, 2, 1);
    Claw1.setRotationPoint(0F, 2F, 2F);
    Claw1.setTextureSize(64, 32);
    Claw1.mirror = true;
    setRotation(Claw1, 0F, 0F, 0F);
    Claw2 = new ModelRenderer(this, 8, 59);
    Claw2.addBox(0F, 0F, 0F, 1, 2, 1);
    Claw2.setRotationPoint(-1F, 2F, 2F);
    Claw2.setTextureSize(64, 32);
    Claw2.mirror = true;
    setRotation(Claw2, 0F, 0F, 0F);
}
 
Example 16
Source File: ModelScaleHelmet.java    From HexxitGear with GNU General Public License v3.0 4 votes vote down vote up
public ModelScaleHelmet() {

        textureWidth = 64;
        textureHeight = 64;

        head = new ModelRenderer(this, 0, 0);
        head.addBox(-4F, -8F, -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, 0, 16);
        Shape1.addBox(-5F, -9F, -5F, 10, 9, 10);
        Shape1.setRotationPoint(0F, 0F, 0F);
        Shape1.setTextureSize(64, 64);
        Shape1.mirror = true;
        setRotation(Shape1, 0F, 0F, 0F);
        Shape2 = new ModelRenderer(this, 24, 0);
        Shape2.addBox(-6F, -7F, -2F, 1, 5, 3);
        Shape2.setRotationPoint(0F, 0F, 0F);
        Shape2.setTextureSize(64, 64);
        Shape2.mirror = true;
        setRotation(Shape2, 0F, 0F, 0F);
        Shape3 = new ModelRenderer(this, 4, 20);
        Shape3.addBox(-7F, -8F, 0F, 1, 4, 2);
        Shape3.setRotationPoint(0F, 0F, 0F);
        Shape3.setTextureSize(64, 64);
        Shape3.mirror = true;
        setRotation(Shape3, 0F, 0F, 0F);
        Shape4 = new ModelRenderer(this, 2, 2);
        Shape4.addBox(-9F, -9F, 2F, 2, 1, 1);
        Shape4.setRotationPoint(0F, 0F, 0F);
        Shape4.setTextureSize(64, 64);
        Shape4.mirror = true;
        setRotation(Shape4, 0F, 0F, 0F);
        Shape5 = new ModelRenderer(this, 4, 4);
        Shape5.addBox(-8F, -8F, 1F, 1, 3, 1);
        Shape5.setRotationPoint(0F, 0F, 0F);
        Shape5.setTextureSize(64, 64);
        Shape5.mirror = true;
        setRotation(Shape5, 0F, 0F, 0F);
        Shape6 = new ModelRenderer(this, 2, 2);
        Shape6.addBox(-9F, -7F, 2F, 2, 1, 1);
        Shape6.setRotationPoint(0F, 0F, 0F);
        Shape6.setTextureSize(64, 64);
        Shape6.mirror = true;
        setRotation(Shape6, 0F, 0F, 0F);
        Shape7 = new ModelRenderer(this, 24, 0);
        Shape7.addBox(5F, -7F, -2F, 1, 5, 3);
        Shape7.setRotationPoint(0F, 0F, 0F);
        Shape7.setTextureSize(64, 64);
        Shape7.mirror = true;
        setRotation(Shape7, 0F, 0F, 0F);
        Shape8 = new ModelRenderer(this, 4, 20);
        Shape8.addBox(6F, -8F, 0F, 1, 4, 2);
        Shape8.setRotationPoint(0F, 0F, 0F);
        Shape8.setTextureSize(64, 64);
        Shape8.mirror = true;
        setRotation(Shape8, 0F, 0F, 0F);
        Shape9 = new ModelRenderer(this, 4, 4);
        Shape9.addBox(7F, -9F, 1F, 1, 3, 1);
        Shape9.setRotationPoint(0F, 1F, 0F);
        Shape9.setTextureSize(64, 64);
        Shape9.mirror = true;
        setRotation(Shape9, 0F, 0F, 0F);
        Shape10 = new ModelRenderer(this, 2, 2);
        Shape10.addBox(7F, -9F, 2F, 2, 1, 1);
        Shape10.setRotationPoint(0F, 0F, 0F);
        Shape10.setTextureSize(64, 64);
        Shape10.mirror = true;
        setRotation(Shape10, 0F, 0F, 0F);
        Shape11 = new ModelRenderer(this, 2, 2);
        Shape11.addBox(7F, -7F, 2F, 2, 1, 1);
        Shape11.setRotationPoint(0F, 0F, 0F);
        Shape11.setTextureSize(64, 64);
        Shape11.mirror = true;
        setRotation(Shape11, 0F, 0F, 0F);
    }
 
Example 17
Source File: ModelBlockProtector.java    From Gadomancy with GNU Lesser General Public License v3.0 4 votes vote down vote up
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);
}
 
Example 18
Source File: ModelFoxRed.java    From TFC2 with GNU General Public License v3.0 4 votes vote down vote up
public ModelFoxRed()
{
	textureWidth = 64;
	textureHeight = 32;
	setTextureOffset("HEAD.EarLeft", 0, 0);
	setTextureOffset("HEAD.EarLeftMiddle", 8, 2);
	setTextureOffset("HEAD.EarLeftTip", 14, 2);
	setTextureOffset("HEAD.EarRight", 0, 0);
	setTextureOffset("HEAD.EarRightMiddle", 8, 2);
	setTextureOffset("HEAD.EarRightTip", 14, 2);
	setTextureOffset("HEAD.Head", 0, 4);
	setTextureOffset("HEAD.Snout", 0, 14);
	setTextureOffset("HEAD.Jaw", 0, 20);
	setTextureOffset("Tail.TailBase", 54, 0);
	setTextureOffset("Tail.TailMiddle", 52, 4);
	setTextureOffset("Tail.TailTip", 54, 15);
	setTextureOffset("LegLEFTREAR.LegRearLeftLower", 10, 22);
	setTextureOffset("LegLEFTFRONT.LegFrontRightLower", 10, 22);
	setTextureOffset("LegRIGHTFRONT.LegFrontRightLower", 10, 22);
	setTextureOffset("LegRIGHTREAR.LegRearRightLower", 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, -1F);
	setRotation(Head, 0F, 0F, 0F);
	Head.mirror = true;
	Head.addBox("EarLeft", 1F, -4F, -1F, 3, 3, 1);
	Head.addBox("EarLeftMiddle", 1.5F, -5F, -1F, 2, 1, 1);
	Head.addBox("EarLeftTip", -3F, -6F, -1F, 1, 1, 1);
	Head.addBox("EarRight", -4F, -4F, -1F, 3, 3, 1);
	Head.addBox("EarRightMiddle", -3.5F, -5F, -1F, 2, 1, 1);
	Head.addBox("EarRightTip", 2F, -6F, -1F, 1, 1, 1);
	Head.addBox("Head", -3F, -2F, -3F, 6, 6, 4);
	Head.addBox("Snout", -1.5F, 0F, -7F, 3, 2, 4);
	Head.addBox("Jaw", -1F, 2F, -6F, 2, 1, 3);
	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("LegRearLeftLower", -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("LegFrontRightLower", -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("LegFrontRightLower", -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("LegRearRightLower", -1F, 0F, -1F, 2, 8, 2);
}
 
Example 19
Source File: ModelAssemblyLaser.java    From PneumaticCraft with GNU General Public License v3.0 4 votes vote down vote up
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 20
Source File: ModelBoar.java    From TFC2 with GNU General Public License v3.0 4 votes vote down vote up
public ModelBoar()
{
	textureWidth = 64;
	textureHeight = 32;
	setTextureOffset("HEAD.Head", 0, 0);
	setTextureOffset("HEAD.Snout", 1, 14);
	setTextureOffset("HEAD.TuskLeft", 0, 22);
	setTextureOffset("HEAD.TuskRight", 0, 22);
	setTextureOffset("BODY.Torso", 16, 6);
	setTextureOffset("BODY.Tail", 52, 0);

	LegFrontLeftLower = new ModelRenderer(this, 56, 0);
	LegFrontLeftLower.addBox(-1F, 0F, -1F, 2, 7, 2);
	LegFrontLeftLower.setRotationPoint(4F, 17F, 4F);
	LegFrontLeftLower.setTextureSize(64, 32);
	LegFrontLeftLower.mirror = true;
	setRotation(LegFrontLeftLower, 0F, 0F, 0F);
	LegRearRightLower = new ModelRenderer(this, 56, 0);
	LegRearRightLower.addBox(-1F, 0F, -1F, 2, 7, 2);
	LegRearRightLower.setRotationPoint(-2F, 17F, 14F);
	LegRearRightLower.setTextureSize(64, 32);
	LegRearRightLower.mirror = true;
	setRotation(LegRearRightLower, 0F, 0F, 0F);
	LegFrontRightLower = new ModelRenderer(this, 56, 0);
	LegFrontRightLower.addBox(-1F, 0F, -1F, 2, 7, 2);
	LegFrontRightLower.setRotationPoint(-2F, 17F, 4F);
	LegFrontRightLower.setTextureSize(64, 32);
	LegFrontRightLower.mirror = true;
	setRotation(LegFrontRightLower, 0F, 0F, 0F);
	LegRearLeftLower = new ModelRenderer(this, 56, 0);
	LegRearLeftLower.addBox(-1F, 0F, -1F, 2, 7, 2);
	LegRearLeftLower.setRotationPoint(4F, 17F, 14F);
	LegRearLeftLower.setTextureSize(64, 32);
	LegRearLeftLower.mirror = true;
	setRotation(LegRearLeftLower, 0F, 0F, 0F);
	HEAD = new ModelRenderer(this, "HEAD");
	HEAD.setRotationPoint(0F, 14F, -1F);
	setRotation(HEAD, 0F, 0F, 0F);
	HEAD.mirror = true;
	HEAD.addBox("Head", -2F, -6F, -3F, 6, 8, 5);
	HEAD.addBox("Snout", -1F, -3F, -7F, 4, 4, 4);
	HEAD.addBox("TuskLeft", 3F, -1F, -6F, 1, 2, 1);
	HEAD.addBox("TuskRight", -2F, -1F, -6F, 1, 2, 1);
	BODY = new ModelRenderer(this, "BODY");
	BODY.setRotationPoint(0F, 13F, 13F);
	setRotation(BODY, 0F, 0F, 0F);
	BODY.mirror = true;
	BODY.addBox("Torso", -3F, -6F, -12F, 8, 10, 16);
	BODY.addBox("Tail", 0.5F, -5F, 4F, 1, 5, 1);
}