net.minecraft.client.model.ModelRenderer Java Examples

The following examples show how to use net.minecraft.client.model.ModelRenderer. 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: 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 #2
Source File: ModelClaws.java    From Cyberware with MIT License 6 votes vote down vote up
public ModelClaws(float modelSize)
  {
this.textureWidth = 64;
this.textureHeight = 64;

      this.claw1 = new ModelRenderer(this, 0, 0);
      this.claw1.addBox(-2.5F, 10.0F, -1.8F, 1, 7, 1, modelSize);
      this.claw1.setRotationPoint(-5.0F, 2.0F, 0.0F);
      
      this.claw2 = new ModelRenderer(this, 0, 0);
      this.claw2.addBox(-2.5F, 10.0F, -0.3F, 1, 7, 1, modelSize);
      this.claw1.addChild(claw2);
      
      this.claw3 = new ModelRenderer(this, 0, 0);
      this.claw3.addBox(-2.5F, 10.0F, 1.2F, 1, 7, 1, modelSize);
      this.claw1.addChild(claw3);
  }
 
Example #3
Source File: ModelDireSlime.java    From EnderZoo with Creative Commons Zero v1.0 Universal 6 votes vote down vote up
public ModelDireSlime() {
  for (int i = 0; i < this.sliceRenderers.length; ++i) {
    this.sliceRenderers[i] = new ModelRenderer(this, 0, i);
    this.sliceRenderers[i].setTextureSize(64, 64);
    this.sliceRenderers[i].addBox(-8.0F, 8 + i, -8.0F, 16, 1, 16);
  }

  this.coreRendererClay = new ModelRenderer(this, 0, 32);
  this.coreRendererClay.setTextureSize(64, 64);
  this.coreRendererClay.addBox(-3.0F, 13.0F, -3.0F, 6, 6, 6);

  for (int i = 0; i < this.coreRenderers.length; ++i) {
    this.coreRenderers[i] = new ModelRenderer(this, 32, 32 + i);
    this.coreRenderers[i].setTextureSize(64, 64);
    this.coreRenderers[i].addBox(-3.0F, 13.0F, -3.0F, 6, 6, 6);
  }
}
 
Example #4
Source File: ModelHatTophat.java    From Hyperium with GNU Lesser General Public License v3.0 6 votes vote down vote up
public ModelHatTophat() {
    textureWidth = 64;
    textureHeight = 64;

    bottomLayer = new ModelRenderer(this, 1, 1);
    bottomLayer.addBox(0F, 0F, 0F, 10, 1, 10);
    bottomLayer.setRotationPoint(-5F, -1F, -5F);
    bottomLayer.setTextureSize(textureWidth, textureHeight);
    bottomLayer.mirror = true;
    setRotation(bottomLayer);

    topLayer = new ModelRenderer(this, 1, 17);
    topLayer.addBox(0F, 0F, 0F, 8, 8, 8);
    topLayer.setRotationPoint(-4F, -9F, -4F);
    topLayer.setTextureSize(textureWidth, textureHeight);
    topLayer.mirror = true;
    setRotation(topLayer);
}
 
Example #5
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 #6
Source File: ModelSafetyValve.java    From PneumaticCraft with GNU General Public License v3.0 6 votes vote down vote up
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 #7
Source File: ModelEnderChest.java    From EnderStorage with MIT License 6 votes vote down vote up
public ModelEnderChest()
{
    chestLid = new ModelRenderer(this, 0, 0).setTextureSize(64, 64);
    chestLid.addBox(0.0F, -5F, -14F, 14, 5, 14, 0.0F);
    chestLid.rotationPointX = 1.0F;
    chestLid.rotationPointY = 7F;
    chestLid.rotationPointZ = 15F;
    chestKnob = new ModelRenderer(this, 0, 0).setTextureSize(64, 64);
    chestKnob.addBox(-1F, -2F, -15F, 2, 4, 1, 0.0F);
    chestKnob.rotationPointX = 8F;
    chestKnob.rotationPointY = 7F;
    chestKnob.rotationPointZ = 15F;
    diamondKnob = new ModelRenderer(this, 0, 5).setTextureSize(64, 64);
    diamondKnob.addBox(-1F, -2F, -15F, 2, 4, 1, 0.0F);
    diamondKnob.rotationPointX = 8F;
    diamondKnob.rotationPointY = 7F;
    diamondKnob.rotationPointZ = 15F;
    chestBelow = new ModelRenderer(this, 0, 19).setTextureSize(64, 64);
    chestBelow.addBox(0.0F, 0.0F, 0.0F, 14, 10, 14, 0.0F);
    chestBelow.rotationPointX = 1.0F;
    chestBelow.rotationPointY = 6F;
    chestBelow.rotationPointZ = 1.0F;
}
 
Example #8
Source File: ModelScanner.java    From Cyberware with MIT License 6 votes vote down vote up
public ModelScanner()
{
	this.textureWidth = 34;
	this.textureHeight = 10;
	
	this.bar = new ModelRenderer(this, 0, 0);
	this.bar.addBox(-8F, 7F, -7F, 16, 1, 1);
	this.bar2 = new ModelRenderer(this, 0, 0);
	this.bar2.addBox(-8F, 5F, -7F, 16, 1, 1);
	this.bar.addChild(bar2);
	
	this.scanner = new ModelRenderer(this, 0, 2);
	this.scanner.addBox(-7F, 2F, -8F, 3, 5, 3);
	
	this.beam = new ModelRenderer(this, 12, 2);
	this.beam.addBox(-6F, -2F, -7F, 1, 4, 1);
}
 
Example #9
Source File: HamsterModel.java    From Hyperium with GNU Lesser General Public License v3.0 5 votes vote down vote up
public HamsterModel() {
    float f = 0.0F;

    hamsterHeadMain = new ModelRenderer(this, 0, 0);
    hamsterHeadMain.addBox(-3F, -3F, -2F, 6, 6, 4, 0);
    hamsterHeadMain.setRotationPoint(-1F, 13.5F, -7F);

    hamsterBody = new ModelRenderer(this, 18, 14);
    hamsterBody.addBox(-4F, -2F, -3F, 6, 9, 6, f);
    hamsterBody.setRotationPoint(0.0F, 14F, 2.0F);

    hamsterMane = new ModelRenderer(this, 21, 0);
    hamsterMane.addBox(-4F, -3F, -3F, 8, 6, 7, f);
    hamsterMane.setRotationPoint(-1F, 14F, 2.0F);

    hamsterLeg1 = new ModelRenderer(this, 0, 18);
    hamsterLeg1.addBox(-1F, 0.0F, -1F, 2, 4, 2, f + 0.5f);
    hamsterLeg1.setRotationPoint(-2.5F, 16F, 7F);

    hamsterLeg2 = new ModelRenderer(this, 0, 18);
    hamsterLeg2.addBox(-1F, 0.0F, -1F, 2, 4, 2, f + 0.5f);
    hamsterLeg2.setRotationPoint(0.5F, 16F, 7F);

    hamsterLeg3 = new ModelRenderer(this, 0, 18);
    hamsterLeg3.addBox(-1F, 0.0F, -1F, 2, 4, 2, f + 0.5f);
    hamsterLeg3.setRotationPoint(-2.5F, 16F, -4F);

    hamsterLeg4 = new ModelRenderer(this, 0, 18);
    hamsterLeg4.addBox(-1F, 0.0F, -1F, 2, 4, 2, f + 0.5f);
    hamsterLeg4.setRotationPoint(0.5F, 16F, -4F);

    hamsterHeadMain.setTextureOffset(16, 14).addBox(-3F, -5F, 0.0F, 2, 2, 1, 0);
    hamsterHeadMain.setTextureOffset(16, 14).addBox(1.0F, -5F, 0.0F, 2, 2, 1, 0);
    hamsterHeadMain.setTextureOffset(0, 10).addBox(-1.5F, 0.0F, -3F, 3, 3, 4, 0);
}
 
Example #10
Source File: ModelFocusPortalPart.java    From Gadomancy with GNU Lesser General Public License v3.0 5 votes vote down vote up
public ModelFocusPortalPart() {
    textureWidth = 32;
    textureHeight = 32;

    shape1 = new ModelRenderer(this, 0, 3);
    shape1.addBox(-1F, -2F, 0.41F, 2, 5, 1);
    shape1.setRotationPoint(0F, 20F, 3.533333F);
    shape1.setTextureSize(64, 32);
    shape1.mirror = true;
    setRotation(shape1, 0F, 0F, 0F);
    shape2 = new ModelRenderer(this, 0, 0);
    shape2.addBox(-1F, -1F, 0F, 2, 2, 1);
    shape2.setRotationPoint(0F, 23F, 3.5F);
    shape2.setTextureSize(64, 32);
    shape2.mirror = true;
    setRotation(shape2, -0.7853982F, 0F, 0F);
    shape3 = new ModelRenderer(this, 0, 12);
    shape3.addBox(0F, 0F, 0F, 2, 2, 1);
    shape3.setRotationPoint(-1F, 21F, 2.5F);
    shape3.setTextureSize(64, 32);
    shape3.mirror = true;
    setRotation(shape3, 0.7853982F, 0F, 0F);
    shape4 = new ModelRenderer(this, 0, 9);
    shape4.addBox(0F, 0F, 0F, 2, 2, 1);
    shape4.setRotationPoint(-1F, 19F, 2.5F);
    shape4.setTextureSize(64, 32);
    shape4.mirror = true;
    setRotation(shape4, 0.7853982F, 0F, 0F);
    shape5 = new ModelRenderer(this, 6, 0);
    shape5.addBox(0F, -1F, 0.03F, 2, 4, 1);
    shape5.setRotationPoint(-1F, 18F, 3.5F);
    shape5.setTextureSize(64, 32);
    shape5.mirror = true;
    setRotation(shape5, 0.7853982F, 0F, 0F);
}
 
Example #11
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 #12
Source File: MixinModelBiped.java    From Hyperium with GNU Lesser General Public License v3.0 5 votes vote down vote up
/**
 * Fixes boxes having the wrong textures, when they are the second part of a limb
 *
 * @param models The {@link ModelRenderer} parts you want to fix
 */
void fixTopAndBottomOfLimbWrongTextures(ModelRenderer... models) {
    for (ModelRenderer model : models) {
        // We only need the first box since we know there only is one
        ModelBox box = model.cubeList.get(0);
        ((IMixinModelBox) box).offsetTextureQuad(model, 3, 0.0F, -6.0F);
    }
}
 
Example #13
Source File: ModelVampireBat.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
public ModelVampireBat() {
	this.textureWidth = 64;
	this.textureHeight = 64;
	this.batHead = new ModelRenderer(this, 0, 0);
	this.batHead.addBox(-3.0F, -3.0F, -3.0F, 6, 6, 6);
	ModelRenderer modelrenderer = new ModelRenderer(this, 24, 0);
	modelrenderer.addBox(-4.0F, -6.0F, -2.0F, 3, 4, 1);
	this.batHead.addChild(modelrenderer);
	ModelRenderer modelrenderer1 = new ModelRenderer(this, 24, 0);
	modelrenderer1.mirror = true;
	modelrenderer1.addBox(1.0F, -6.0F, -2.0F, 3, 4, 1);
	this.batHead.addChild(modelrenderer1);
	this.batBody = new ModelRenderer(this, 0, 16);
	this.batBody.addBox(-3.0F, 4.0F, -3.0F, 6, 12, 6);
	this.batBody.setTextureOffset(0, 34).addBox(-5.0F, 16.0F, 0.0F, 10, 6, 1);
	this.batRightWing = new ModelRenderer(this, 42, 0);
	this.batRightWing.addBox(-12.0F, 1.0F, 1.5F, 10, 16, 1);
	this.batOuterRightWing = new ModelRenderer(this, 24, 16);
	this.batOuterRightWing.setRotationPoint(-12.0F, 1.0F, 1.5F);
	this.batOuterRightWing.addBox(-8.0F, 1.0F, 0.0F, 8, 12, 1);
	this.batLeftWing = new ModelRenderer(this, 42, 0);
	this.batLeftWing.mirror = true;
	this.batLeftWing.addBox(2.0F, 1.0F, 1.5F, 10, 16, 1);
	this.batOuterLeftWing = new ModelRenderer(this, 24, 16);
	this.batOuterLeftWing.mirror = true;
	this.batOuterLeftWing.setRotationPoint(12.0F, 1.0F, 1.5F);
	this.batOuterLeftWing.addBox(0.0F, 1.0F, 0.0F, 8, 12, 1);
	this.batBody.addChild(this.batRightWing);
	this.batBody.addChild(this.batLeftWing);
	this.batRightWing.addChild(this.batOuterRightWing);
	this.batLeftWing.addChild(this.batOuterLeftWing);
}
 
Example #14
Source File: ModelHand.java    From pycode-minecraft with MIT License 5 votes vote down vote up
public ModelHand() {
        textureWidth = 64;
        textureHeight = 32;
        setTextureOffset("hand.Shape9", 0, 13);
        setTextureOffset("hand.Shape12", 0, 21);
        setTextureOffset("hand.Shape14", 28, 16);
        setTextureOffset("hand.Shape17", 25, 24);
        setTextureOffset("hand.Shape10", 43, 19);
        setTextureOffset("hand.Shape2", 20, 12);
        setTextureOffset("hand.Shape1", 31, 1);
        setTextureOffset("hand.Shape3", 20, 12);
        setTextureOffset("hand.Shape4", 0, 18);
        setTextureOffset("hand.Shape5", 10, 14);
        setTextureOffset("hand.Shape8", 15, 0);
        setTextureOffset("hand.Shape6", 0, 18);
        setTextureOffset("hand.Shape7", 0, 0);

        hand = new ModelRenderer(this, "hand");
        hand.setRotationPoint(0F, 0F, 0F);
        setRotation(hand, 0F, 0F, 0F);
//        hand.mirror = true;
        hand.addBox("Shape9", 0F, 1F, -7F, 1, 2, 1);
        hand.addBox("Shape12", -1F, 1F, 1F, 3, 4, 7);
        hand.addBox("Shape14", -1F, -3F, 2F, 3, 4, 1);
        hand.addBox("Shape17", -1F, 0F, 3F, 3, 1, 1);
        hand.addBox("Shape10", -1F, 1F, -6F, 3, 2, 7);
        hand.addBox("Shape2", 0F, -1F, 6F, 1, 1, 2);
        hand.addBox("Shape1", 0F, 0F, 0F, 1, 6, 8);
        hand.addBox("Shape3", 0F, 6F, 6F, 1, 1, 2);
        hand.addBox("Shape4", 0F, -1F, 4F, 1, 1, 1);
        hand.addBox("Shape5", 0F, -3F, 1F, 1, 3, 3);
        hand.addBox("Shape8", 0F, 0F, -6F, 1, 4, 6);
        hand.addBox("Shape6", 0F, -4F, 2F, 1, 1, 1);
        hand.addBox("Shape7", 0F, 6F, 1F, 1, 1, 4);
    }
 
Example #15
Source File: ModelWandPart.java    From Gadomancy with GNU Lesser General Public License v3.0 5 votes vote down vote up
public ModelWandPart(int height, int runeCount) {
    this.textureWidth = 32;
    this.textureHeight = 32;

    this.runeCount = runeCount;

    this.Cap = new ModelRenderer(this, 0, 0);
    this.Cap.addBox(-1.0F, -1.0F, -1.0F, 2, 2, 2);
    this.Cap.setRotationPoint(0.0F, 0.0F, 0.0F);
    this.Cap.setTextureSize(64, 32);
    this.Cap.mirror = true;
    setRotation(this.Cap, 0.0F, 0.0F, 0.0F);

    //this.CapBottom = new ModelRenderer(this, 0, 0);
    //this.CapBottom.addBox(-1.0F, -1.0F, -1.0F, 2, 2, 2);
    //this.CapBottom.setRotationPoint(0.0F, 20.0F, 0.0F);
    //this.CapBottom.setTextureSize(64, 32);
    //this.CapBottom.mirror = true;
    //setRotation(this.CapBottom, 0.0F, 0.0F, 0.0F);

    this.Rod = new ModelRenderer(this, 0, 8);

    //this.Rod.addBox(-1.0F, -1.0F, -1.0F, 2, 18, 2);

    this.Rod.addBox(-1.0F, -1.0F, -1.0F, 2, height, 2);

    this.Rod.setRotationPoint(0.0F, 2.0F, 0.0F);
    this.Rod.setTextureSize(64, 32);
    this.Rod.mirror = true;
    setRotation(this.Rod, 0.0F, 0.0F, 0.0F);
    this.Focus = new ModelRenderer(this, 0, 0);
    this.Focus.addBox(-3.0F, -6.0F, -3.0F, 6, 6, 6);
    this.Focus.setRotationPoint(0.0F, 0.0F, 0.0F);
    this.Focus.setTextureSize(64, 32);
    this.Focus.mirror = true;
    setRotation(this.Focus, 0.0F, 0.0F, 0.0F);
}
 
Example #16
Source File: ModelBusFluidExport.java    From ExtraCells1 with MIT License 5 votes vote down vote up
public ModelBusFluidExport()
{
	textureWidth = 64;
	textureHeight = 64;

	Shape1 = new ModelRenderer(this, 0, 0);
	Shape1.addBox(0F, 0F, 0F, 10, 2, 10);
	Shape1.setRotationPoint(-5F, 18F, -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, 19.4F, -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, 20.7F, -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, 22F, -3F);
	Shape4.setTextureSize(64, 64);
	Shape4.mirror = true;
	setRotation(Shape4, 0F, 0F, 0F);
}
 
Example #17
Source File: MoCModelMouse.java    From mocreaturesdev with GNU General Public License v3.0 5 votes vote down vote up
public MoCModelMouse()
{
    Head = new ModelRenderer(this, 0, 0);
    Head.addBox(-1.5F, -1F, -6F, 3, 4, 6, 0.0F);
    Head.setRotationPoint(0.0F, 19F, -9F);
    EarR = new ModelRenderer(this, 16, 26);
    EarR.addBox(-3.5F, -3F, -2F, 3, 3, 1, 0.0F);
    EarR.setRotationPoint(0.0F, 19F, -9F);
    EarL = new ModelRenderer(this, 24, 26);
    EarL.addBox(0.5F, -3F, -1F, 3, 3, 1, 0.0F);
    EarL.setRotationPoint(0.0F, 19F, -10F);
    WhiskerR = new ModelRenderer(this, 20, 20);
    WhiskerR.addBox(-4.5F, -1F, -7F, 3, 3, 1, 0.0F);
    WhiskerR.setRotationPoint(0.0F, 19F, -9F);
    WhiskerL = new ModelRenderer(this, 24, 20);
    WhiskerL.addBox(1.5F, -1F, -6F, 3, 3, 1, 0.0F);
    WhiskerL.setRotationPoint(0.0F, 19F, -9F);
    Tail = new ModelRenderer(this, 56, 0);
    Tail.addBox(-0.5F, 0.0F, -1F, 1, 14, 1, 0.0F);
    Tail.setRotationPoint(0.0F, 20F, 3F);
    Tail.rotateAngleX = 1.570796F;
    FrontL = new ModelRenderer(this, 0, 18);
    FrontL.addBox(-2F, 0.0F, -3F, 2, 1, 4, 0.0F);
    FrontL.setRotationPoint(3F, 23F, -7F);
    FrontR = new ModelRenderer(this, 0, 18);
    FrontR.addBox(0.0F, 0.0F, -3F, 2, 1, 4, 0.0F);
    FrontR.setRotationPoint(-3F, 23F, -7F);
    RearL = new ModelRenderer(this, 0, 18);
    RearL.addBox(-2F, 0.0F, -4F, 2, 1, 4, 0.0F);
    RearL.setRotationPoint(4F, 23F, 2.0F);
    RearR = new ModelRenderer(this, 0, 18);
    RearR.addBox(0.0F, 0.0F, -4F, 2, 1, 4, 0.0F);
    RearR.setRotationPoint(-4F, 23F, 2.0F);
    BodyF = new ModelRenderer(this, 20, 0);
    BodyF.addBox(-3F, -3F, -7F, 6, 6, 12, 0.0F);
    BodyF.setRotationPoint(0.0F, 20F, -2F);
}
 
Example #18
Source File: MoCModelBigCat2.java    From mocreaturesdev with GNU General Public License v3.0 5 votes vote down vote up
public MoCModelBigCat2()
{
    ears = new ModelRenderer(this, 16, 25);
    ears.addBox(-4F, -7F, -3F, 8, 4, 1, 0.0F);
    ears.setRotationPoint(0.0F, 4F, -8F);
    head = new ModelRenderer(this, 0, 0);
    head.addBox(-4F, -4F, -6F, 8, 8, 6, 0.0F);
    head.setRotationPoint(0.0F, 4F, -8F);
    snout = new ModelRenderer(this, 14, 14);
    snout.addBox(-2F, 0.0F, -9F, 4, 4, 6, 0.0F);
    snout.setRotationPoint(0.0F, 4F, -8F);
    Collar = new ModelRenderer(this, 24, 0);
    Collar.addBox(-2.5F, 4F, -3F, 5, 4, 1, 0.0F);
    Collar.setRotationPoint(0.0F, 4F, -8F);
    body = new ModelRenderer(this, 28, 0);
    body.addBox(-5F, -10F, -7F, 10, 18, 8, 0.0F);
    body.setRotationPoint(0.0F, 5F, 2.0F);
    Tail = new ModelRenderer(this, 26, 15);
    Tail.addBox(-5F, -5F, -2F, 3, 3, 14, 0.0F);
    Tail.setRotationPoint(3.5F, 9.3F, 9F);
    Tail.rotateAngleX = -0.5235988F;
    leg1 = new ModelRenderer(this, 0, 16);
    leg1.addBox(-2F, 0.0F, -2F, 4, 12, 4, 0.0F);
    leg1.setRotationPoint(-3F, 12F, 7F);
    leg2 = new ModelRenderer(this, 0, 16);
    leg2.addBox(-2F, 0.0F, -2F, 4, 12, 4, 0.0F);
    leg2.setRotationPoint(3F, 12F, 7F);
    leg3 = new ModelRenderer(this, 0, 16);
    leg3.addBox(-2F, 0.0F, -2F, 4, 12, 4, 0.0F);
    leg3.setRotationPoint(-3F, 12F, -5F);
    leg4 = new ModelRenderer(this, 0, 16);
    leg4.addBox(-2F, 0.0F, -2F, 4, 12, 4, 0.0F);
    leg4.setRotationPoint(3F, 12F, -5F);
}
 
Example #19
Source File: MoCModelFishy.java    From mocreaturesdev with GNU General Public License v3.0 5 votes vote down vote up
public MoCModelFishy()
{
    Body = new ModelRenderer(this, 0, 0);
    Body.addBox(0.0F, 0.0F, 0.0F, 1, 5, 5, 0.0F);
    Body.setRotationPoint(0.0F, 19F, 0.0F);
    Body.rotateAngleX = 0.7853981F;
    Tail = new ModelRenderer(this, 12, 0);
    Tail.addBox(0.0F, 0.0F, 0.0F, 1, 3, 3, 0.0F);
    Tail.setRotationPoint(0.0F, 18.7F, 6F);
    Tail.rotateAngleX = 0.7853981F;
}
 
Example #20
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 #21
Source File: ModelSkullHelmet.java    From HexxitGear with GNU General Public License v3.0 5 votes vote down vote up
public ModelSkullHelmet() {
    textureWidth = 64;
    textureHeight = 32;

    head = new ModelRenderer(this, 0, 0);
    head.addBox(-4F, -8F, -4F, 8, 8, 8);
    head.setRotationPoint(0F, 0F, 0F);
    head.setTextureSize(64, 32);
    head.mirror = true;
    setRotation(head, 0F, 0F, 0F);
    Shape4 = new ModelRenderer(this, 25, 0);
    Shape4.addBox(4F, -7F, 0F, 3, 2, 2);
    Shape4.setRotationPoint(0F, 0F, 0F);
    Shape4.setTextureSize(64, 32);
    Shape4.mirror = true;
    setRotation(Shape4, 0F, 0F, 0F);
    Shape1 = new ModelRenderer(this, 25, 0);
    Shape1.addBox(-7F, -7F, 0F, 3, 2, 2);
    Shape1.setRotationPoint(0F, 0F, 0F);
    Shape1.setTextureSize(64, 32);
    Shape1.mirror = true;
    setRotation(Shape1, 0F, 0F, 0F);
    Shape2 = new ModelRenderer(this, 25, 5);
    Shape2.addBox(6F, -8F, 0F, 1, 1, 1);
    Shape2.setRotationPoint(0F, 0F, 0F);
    Shape2.setTextureSize(64, 32);
    Shape2.mirror = true;
    setRotation(Shape2, 0F, 0F, 0F);
    Shape3 = new ModelRenderer(this, 25, 5);
    Shape3.addBox(-7F, -8F, 0F, 1, 1, 1);
    Shape3.setRotationPoint(0F, 0F, 0F);
    Shape3.setTextureSize(64, 32);
    Shape3.mirror = true;
    setRotation(Shape3, 0F, 0F, 0F);
}
 
Example #22
Source File: ModelPneumaticCilinder.java    From PneumaticCraft with GNU General Public License v3.0 5 votes vote down vote up
public ModelPneumaticCilinder(){
    textureWidth = 64;
    textureHeight = 32;

    Base = new ModelRenderer(this, 0, 0);
    Base.addBox(0F, 0F, 0F, 3, 9, 3);
    Base.setRotationPoint(-1.5F, 14F, -1.5F);
    Base.setTextureSize(64, 32);
    Base.mirror = true;
    setRotation(Base, 0F, 0F, 0F);
    Cilinder = new ModelRenderer(this, 0, 12);
    Cilinder.addBox(0F, 0F, 0F, 2, 5, 2);
    Cilinder.setRotationPoint(-1F, 9F, -1F);
    Cilinder.setTextureSize(64, 32);
    Cilinder.mirror = true;
    setRotation(Cilinder, 0F, 0F, 0F);
    Input1 = new ModelRenderer(this, 0, 19);
    Input1.addBox(0F, 0F, 0F, 1, 1, 1);
    Input1.setRotationPoint(-0.5F, 21F, -2.5F);
    Input1.setTextureSize(64, 32);
    Input1.mirror = true;
    setRotation(Input1, 0F, 0F, 0F);
    Input2 = new ModelRenderer(this, 0, 19);
    Input2.addBox(0F, 0F, 0F, 1, 1, 1);
    Input2.setRotationPoint(-0.5F, 15F, -2.5F);
    Input2.setTextureSize(64, 32);
    Input2.mirror = true;
    setRotation(Input2, 0F, 0F, 0F);
}
 
Example #23
Source File: ModelSeedAnalyzer.java    From AgriCraft with MIT License 4 votes vote down vote up
private void setRotation(ModelRenderer model, float x, float y, float z) {
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
}
 
Example #24
Source File: MixinModelBiped.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public ModelRenderer getBipedLeftForeArm() {
    return bipedLeftForeArm;
}
 
Example #25
Source File: ModelAssemblyIOUnit.java    From PneumaticCraft with GNU General Public License v3.0 4 votes vote down vote up
private void setRotation(ModelRenderer model, float x, float y, float z){
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
}
 
Example #26
Source File: ModelPeripheralProbe.java    From AgriCraft with MIT License 4 votes vote down vote up
private void setRotation(ModelRenderer model, float x, float y, float z) {
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
}
 
Example #27
Source File: ModelMammoth.java    From TFC2 with GNU General Public License v3.0 4 votes vote down vote up
private void setRotation(ModelRenderer model, float x, float y, float z)
{
	model.rotateAngleX = x;
	model.rotateAngleY = y;
	model.rotateAngleZ = z;
}
 
Example #28
Source File: MixinModelBiped.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public ModelRenderer getBipedLeftUpperLeg() {
    return bipedLeftLeg;
}
 
Example #29
Source File: ModelAuraPylon.java    From Gadomancy with GNU Lesser General Public License v3.0 4 votes vote down vote up
private void setRotation(ModelRenderer model, float x, float y, float z)
{
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
}
 
Example #30
Source File: ModelFoxDesert.java    From TFC2 with GNU General Public License v3.0 4 votes vote down vote up
private void setRotation(ModelRenderer model, float x, float y, float z)
{
	model.rotateAngleX = x;
	model.rotateAngleY = y;
	model.rotateAngleZ = z;
}