59d4ca5e6f
Package change was actual in the Dark-Lib however it effected the imports. As well i adjusted the render of the Tank and still have more to do for it. Right now it only changes for tanks above it and bellow it.
155 lines
5.2 KiB
Java
155 lines
5.2 KiB
Java
// Date: 6/3/2013 8:45:19 PM
|
|
// Template version 1.1
|
|
// Java generated by Techne
|
|
// Keep in mind that you still need to fill in some blanks
|
|
// - ZeuX
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package net.minecraft.src;
|
|
|
|
public class ModelTankSide extends ModelBase
|
|
{
|
|
//fields
|
|
ModelRenderer rightSiding;
|
|
ModelRenderer leftSiding;
|
|
ModelRenderer topSiding;
|
|
ModelRenderer botSiding;
|
|
ModelRenderer botRightOut;
|
|
ModelRenderer botLeftOut;
|
|
ModelRenderer topRightOut;
|
|
ModelRenderer topLeftOut;
|
|
ModelRenderer leftSide;
|
|
ModelRenderer leftTopSide;
|
|
ModelRenderer leftBotSide;
|
|
ModelRenderer rightBotSide;
|
|
ModelRenderer rightSide;
|
|
ModelRenderer rightTopSide;
|
|
|
|
public ModelTankSide()
|
|
{
|
|
textureWidth = 128;
|
|
textureHeight = 128;
|
|
|
|
rightSiding = new ModelRenderer(this, 0, 19);
|
|
rightSiding.addBox(-7F, 11F, 7F, 2, 10, 1);
|
|
rightSiding.setRotationPoint(0F, 0F, 0F);
|
|
rightSiding.setTextureSize(128, 128);
|
|
rightSiding.mirror = true;
|
|
setRotation(rightSiding, 0F, 0F, 0F);
|
|
leftSiding = new ModelRenderer(this, 0, 19);
|
|
leftSiding.addBox(5F, 11F, 7F, 2, 10, 1);
|
|
leftSiding.setRotationPoint(0F, 0F, 0F);
|
|
leftSiding.setTextureSize(128, 128);
|
|
leftSiding.mirror = true;
|
|
setRotation(leftSiding, 0F, 0F, 0F);
|
|
topSiding = new ModelRenderer(this, 7, 8);
|
|
topSiding.addBox(-5F, 8F, 7F, 10, 3, 1);
|
|
topSiding.setRotationPoint(0F, 0F, 0F);
|
|
topSiding.setTextureSize(128, 128);
|
|
topSiding.mirror = true;
|
|
setRotation(topSiding, 0F, 0F, 0F);
|
|
botSiding = new ModelRenderer(this, 7, 8);
|
|
botSiding.addBox(-5F, 21F, 7F, 10, 3, 1);
|
|
botSiding.setRotationPoint(0F, 0F, 0F);
|
|
botSiding.setTextureSize(128, 128);
|
|
botSiding.mirror = true;
|
|
setRotation(botSiding, 0F, 0F, 0F);
|
|
botRightOut = new ModelRenderer(this, 0, 0);
|
|
botRightOut.addBox(-7F, 21F, 7F, 2, 3, 1);
|
|
botRightOut.setRotationPoint(0F, 0F, 0F);
|
|
botRightOut.setTextureSize(128, 128);
|
|
botRightOut.mirror = true;
|
|
setRotation(botRightOut, 0F, 0F, 0F);
|
|
botLeftOut = new ModelRenderer(this, 0, 0);
|
|
botLeftOut.addBox(5F, 21F, 7F, 2, 3, 1);
|
|
botLeftOut.setRotationPoint(0F, 0F, 0F);
|
|
botLeftOut.setTextureSize(128, 128);
|
|
botLeftOut.mirror = true;
|
|
setRotation(botLeftOut, 0F, 0F, 0F);
|
|
topRightOut = new ModelRenderer(this, 0, 0);
|
|
topRightOut.addBox(-7F, 8F, 7F, 2, 3, 1);
|
|
topRightOut.setRotationPoint(0F, 0F, 0F);
|
|
topRightOut.setTextureSize(128, 128);
|
|
topRightOut.mirror = true;
|
|
setRotation(topRightOut, 0F, 0F, 0F);
|
|
topLeftOut = new ModelRenderer(this, 0, 0);
|
|
topLeftOut.addBox(5F, 8F, 7F, 2, 3, 1);
|
|
topLeftOut.setRotationPoint(0F, 0F, 0F);
|
|
topLeftOut.setTextureSize(128, 128);
|
|
topLeftOut.mirror = true;
|
|
setRotation(topLeftOut, 0F, 0F, 0F);
|
|
leftSide = new ModelRenderer(this, 0, 19);
|
|
leftSide.addBox(7F, 11F, 7F, 1, 10, 1);
|
|
leftSide.setRotationPoint(0F, 0F, 0F);
|
|
leftSide.setTextureSize(128, 128);
|
|
leftSide.mirror = true;
|
|
setRotation(leftSide, 0F, 0F, 0F);
|
|
leftTopSide = new ModelRenderer(this, 0, 0);
|
|
leftTopSide.addBox(7F, 8F, 7F, 1, 3, 1);
|
|
leftTopSide.setRotationPoint(0F, 0F, 0F);
|
|
leftTopSide.setTextureSize(128, 128);
|
|
leftTopSide.mirror = true;
|
|
setRotation(leftTopSide, 0F, 0F, 0F);
|
|
leftBotSide = new ModelRenderer(this, 0, 0);
|
|
leftBotSide.addBox(7F, 21F, 7F, 1, 3, 1);
|
|
leftBotSide.setRotationPoint(0F, 0F, 0F);
|
|
leftBotSide.setTextureSize(128, 128);
|
|
leftBotSide.mirror = true;
|
|
setRotation(leftBotSide, 0F, 0F, 0F);
|
|
rightBotSide = new ModelRenderer(this, 0, 0);
|
|
rightBotSide.addBox(-8F, 21F, 7F, 1, 3, 1);
|
|
rightBotSide.setRotationPoint(0F, 0F, 0F);
|
|
rightBotSide.setTextureSize(128, 128);
|
|
rightBotSide.mirror = true;
|
|
setRotation(rightBotSide, 0F, 0F, 0F);
|
|
rightSide = new ModelRenderer(this, 0, 19);
|
|
rightSide.addBox(-8F, 11F, 7F, 1, 10, 1);
|
|
rightSide.setRotationPoint(0F, 0F, 0F);
|
|
rightSide.setTextureSize(128, 128);
|
|
rightSide.mirror = true;
|
|
setRotation(rightSide, 0F, 0F, 0F);
|
|
rightTopSide = new ModelRenderer(this, 0, 0);
|
|
rightTopSide.addBox(-8F, 8F, 7F, 1, 3, 1);
|
|
rightTopSide.setRotationPoint(0F, 0F, 0F);
|
|
rightTopSide.setTextureSize(128, 128);
|
|
rightTopSide.mirror = true;
|
|
setRotation(rightTopSide, 0F, 0F, 0F);
|
|
}
|
|
|
|
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
|
|
{
|
|
super.render(entity, f, f1, f2, f3, f4, f5);
|
|
setRotationAngles(f, f1, f2, f3, f4, f5);
|
|
rightSiding.render(f5);
|
|
leftSiding.render(f5);
|
|
topSiding.render(f5);
|
|
botSiding.render(f5);
|
|
botRightOut.render(f5);
|
|
botLeftOut.render(f5);
|
|
topRightOut.render(f5);
|
|
topLeftOut.render(f5);
|
|
leftSide.render(f5);
|
|
leftTopSide.render(f5);
|
|
leftBotSide.render(f5);
|
|
rightBotSide.render(f5);
|
|
rightSide.render(f5);
|
|
rightTopSide.render(f5);
|
|
}
|
|
|
|
private void setRotation(ModelRenderer model, float x, float y, float z)
|
|
{
|
|
model.rotateAngleX = x;
|
|
model.rotateAngleY = y;
|
|
model.rotateAngleZ = z;
|
|
}
|
|
|
|
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
|
|
{
|
|
super.setRotationAngles(f, f1, f2, f3, f4, f5);
|
|
}
|
|
|
|
}
|