removed archive
This commit is contained in:
parent
8d082306da
commit
fb2cdd9f1f
7 changed files with 0 additions and 1090 deletions
|
@ -1,95 +0,0 @@
|
||||||
package dark.assembly.client.model;
|
|
||||||
|
|
||||||
import net.minecraft.client.model.ModelBase;
|
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public class ModelCraneArmMount extends ModelBase
|
|
||||||
{
|
|
||||||
// fields
|
|
||||||
private ModelRenderer RailGuard1;
|
|
||||||
private ModelRenderer ArmMount;
|
|
||||||
private ModelRenderer RailGuard2;
|
|
||||||
private ModelRenderer Base;
|
|
||||||
private ModelRenderer WheelMount1;
|
|
||||||
private ModelRenderer Wheel2;
|
|
||||||
private ModelRenderer WheelMount2;
|
|
||||||
private ModelRenderer Wheel1;
|
|
||||||
|
|
||||||
public ModelCraneArmMount()
|
|
||||||
{
|
|
||||||
textureWidth = 64;
|
|
||||||
textureHeight = 64;
|
|
||||||
|
|
||||||
RailGuard1 = new ModelRenderer(this, 0, 20);
|
|
||||||
RailGuard1.addBox(0F, 0F, 0F, 16, 8, 2);
|
|
||||||
RailGuard1.setRotationPoint(-8F, 12F, 4F);
|
|
||||||
RailGuard1.setTextureSize(64, 32);
|
|
||||||
RailGuard1.mirror = true;
|
|
||||||
setRotation(RailGuard1, 0F, 0F, 0F);
|
|
||||||
ArmMount = new ModelRenderer(this, 36, 26);
|
|
||||||
ArmMount.addBox(0F, 0F, 0F, 8, 4, 2);
|
|
||||||
ArmMount.setRotationPoint(-4F, 4F, -8F);
|
|
||||||
ArmMount.setTextureSize(64, 32);
|
|
||||||
ArmMount.mirror = true;
|
|
||||||
setRotation(ArmMount, 0F, 0F, 0F);
|
|
||||||
RailGuard2 = new ModelRenderer(this, 0, 20);
|
|
||||||
RailGuard2.addBox(0F, 0F, 0F, 16, 8, 2);
|
|
||||||
RailGuard2.setRotationPoint(-8F, 12F, -6F);
|
|
||||||
RailGuard2.setTextureSize(64, 32);
|
|
||||||
RailGuard2.mirror = true;
|
|
||||||
setRotation(RailGuard2, 0F, 0F, 0F);
|
|
||||||
Base = new ModelRenderer(this, 0, 0);
|
|
||||||
Base.addBox(0F, 0F, 0F, 16, 4, 16);
|
|
||||||
Base.setRotationPoint(-8F, 8F, -8F);
|
|
||||||
Base.setTextureSize(64, 32);
|
|
||||||
Base.mirror = true;
|
|
||||||
setRotation(Base, 0F, 0F, 0F);
|
|
||||||
WheelMount1 = new ModelRenderer(this, 0, 30);
|
|
||||||
WheelMount1.addBox(0F, 0F, 0F, 14, 4, 4);
|
|
||||||
WheelMount1.setRotationPoint(-7F, 4F, 2F);
|
|
||||||
WheelMount1.setTextureSize(64, 32);
|
|
||||||
WheelMount1.mirror = true;
|
|
||||||
setRotation(WheelMount1, 0F, 0F, 0F);
|
|
||||||
Wheel2 = new ModelRenderer(this, 36, 20);
|
|
||||||
Wheel2.addBox(0F, 0F, 0F, 5, 4, 2);
|
|
||||||
Wheel2.setRotationPoint(1F, 6F, -1F);
|
|
||||||
Wheel2.setTextureSize(64, 32);
|
|
||||||
Wheel2.mirror = true;
|
|
||||||
setRotation(Wheel2, 0F, 0F, 0F);
|
|
||||||
WheelMount2 = new ModelRenderer(this, 0, 30);
|
|
||||||
WheelMount2.addBox(0F, 0F, 0F, 14, 4, 4);
|
|
||||||
WheelMount2.setRotationPoint(-7F, 4F, -6F);
|
|
||||||
WheelMount2.setTextureSize(64, 32);
|
|
||||||
WheelMount2.mirror = true;
|
|
||||||
setRotation(WheelMount2, 0F, 0F, 0F);
|
|
||||||
Wheel1 = new ModelRenderer(this, 36, 20);
|
|
||||||
Wheel1.addBox(0F, 0F, 0F, 5, 4, 2);
|
|
||||||
Wheel1.setRotationPoint(-6F, 6F, -1F);
|
|
||||||
Wheel1.setTextureSize(64, 32);
|
|
||||||
Wheel1.mirror = true;
|
|
||||||
setRotation(Wheel1, 0F, 0F, 0F);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void render(float scale)
|
|
||||||
{
|
|
||||||
RailGuard1.render(scale);
|
|
||||||
ArmMount.render(scale);
|
|
||||||
RailGuard2.render(scale);
|
|
||||||
Base.render(scale);
|
|
||||||
WheelMount1.render(scale);
|
|
||||||
Wheel2.render(scale);
|
|
||||||
WheelMount2.render(scale);
|
|
||||||
Wheel1.render(scale);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setRotation(ModelRenderer model, float x, float y, float z)
|
|
||||||
{
|
|
||||||
model.rotateAngleX = x;
|
|
||||||
model.rotateAngleY = y;
|
|
||||||
model.rotateAngleZ = z;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,134 +0,0 @@
|
||||||
// Date: 1/27/2013 2:45:10 AM
|
|
||||||
// Template version 1.1
|
|
||||||
// Java generated by Techne
|
|
||||||
// Keep in mind that you still need to fill in some blanks
|
|
||||||
// - ZeuX
|
|
||||||
|
|
||||||
package dark.assembly.client.model;
|
|
||||||
|
|
||||||
import net.minecraft.client.model.ModelBase;
|
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public class ModelCraneController extends ModelBase
|
|
||||||
{
|
|
||||||
// fields
|
|
||||||
ModelRenderer Base2;
|
|
||||||
ModelRenderer Base;
|
|
||||||
ModelRenderer ConnectorFront;
|
|
||||||
ModelRenderer Decoration1;
|
|
||||||
ModelRenderer Decoration2;
|
|
||||||
ModelRenderer Decoration3;
|
|
||||||
ModelRenderer Decoration4;
|
|
||||||
ModelRenderer ConnectorTop;
|
|
||||||
ModelRenderer ConnectorRight;
|
|
||||||
|
|
||||||
public ModelCraneController()
|
|
||||||
{
|
|
||||||
textureWidth = 128;
|
|
||||||
textureHeight = 64;
|
|
||||||
|
|
||||||
Base2 = new ModelRenderer(this, 0, 24);
|
|
||||||
Base2.addBox(0F, 0F, 0F, 12, 4, 12);
|
|
||||||
Base2.setRotationPoint(-6F, 12F, -6F);
|
|
||||||
Base2.setTextureSize(128, 64);
|
|
||||||
Base2.mirror = true;
|
|
||||||
setRotation(Base2, 0F, 0F, 0F);
|
|
||||||
Base = new ModelRenderer(this, 0, 0);
|
|
||||||
Base.addBox(0F, 0F, 0F, 16, 8, 16);
|
|
||||||
Base.setRotationPoint(-8F, 16F, -8F);
|
|
||||||
Base.setTextureSize(128, 64);
|
|
||||||
Base.mirror = true;
|
|
||||||
setRotation(Base, 0F, 0F, 0F);
|
|
||||||
ConnectorFront = new ModelRenderer(this, 64, 0);
|
|
||||||
ConnectorFront.addBox(0F, 0F, 0F, 8, 8, 8);
|
|
||||||
ConnectorFront.setRotationPoint(-4F, 12F, 0F);
|
|
||||||
ConnectorFront.setTextureSize(128, 64);
|
|
||||||
ConnectorFront.mirror = true;
|
|
||||||
setRotation(ConnectorFront, 0F, 1.570796F, 0F);
|
|
||||||
Decoration1 = new ModelRenderer(this, 54, 24);
|
|
||||||
Decoration1.addBox(0F, 0F, 0F, 2, 1, 1);
|
|
||||||
Decoration1.setRotationPoint(2F, 15F, 6F);
|
|
||||||
Decoration1.setTextureSize(128, 64);
|
|
||||||
Decoration1.mirror = true;
|
|
||||||
setRotation(Decoration1, 0F, 0F, 0F);
|
|
||||||
Decoration2 = new ModelRenderer(this, 54, 24);
|
|
||||||
Decoration2.addBox(0F, 0F, 0F, 2, 1, 1);
|
|
||||||
Decoration2.setRotationPoint(-4F, 15F, 6F);
|
|
||||||
Decoration2.setTextureSize(128, 64);
|
|
||||||
Decoration2.mirror = true;
|
|
||||||
setRotation(Decoration2, 0F, 0F, 0F);
|
|
||||||
Decoration3 = new ModelRenderer(this, 48, 24);
|
|
||||||
Decoration3.addBox(0F, 0F, 0F, 1, 1, 2);
|
|
||||||
Decoration3.setRotationPoint(-7F, 15F, 2F);
|
|
||||||
Decoration3.setTextureSize(128, 64);
|
|
||||||
Decoration3.mirror = true;
|
|
||||||
setRotation(Decoration3, 0F, 0F, 0F);
|
|
||||||
Decoration4 = new ModelRenderer(this, 48, 24);
|
|
||||||
Decoration4.addBox(0F, 0F, 0F, 1, 1, 2);
|
|
||||||
Decoration4.setRotationPoint(-7F, 15F, -4F);
|
|
||||||
Decoration4.setTextureSize(128, 64);
|
|
||||||
Decoration4.mirror = true;
|
|
||||||
setRotation(Decoration4, 0F, 0F, 0F);
|
|
||||||
ConnectorTop = new ModelRenderer(this, 64, 0);
|
|
||||||
ConnectorTop.addBox(0F, 0F, 0F, 8, 8, 8);
|
|
||||||
ConnectorTop.setRotationPoint(-4F, 16F, -4F);
|
|
||||||
ConnectorTop.setTextureSize(128, 64);
|
|
||||||
ConnectorTop.mirror = true;
|
|
||||||
setRotation(ConnectorTop, 0F, 0F, -1.570796F);
|
|
||||||
ConnectorRight = new ModelRenderer(this, 64, 0);
|
|
||||||
ConnectorRight.addBox(0F, 0F, 0F, 8, 8, 8);
|
|
||||||
ConnectorRight.setRotationPoint(0F, 12F, -4F);
|
|
||||||
ConnectorRight.setTextureSize(128, 64);
|
|
||||||
ConnectorRight.mirror = true;
|
|
||||||
setRotation(ConnectorRight, 0F, 0F, 0F);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void render(float scale, boolean connectEast, boolean connectNorth)
|
|
||||||
{
|
|
||||||
Base2.setRotationPoint(-6F, 12F, -6F);
|
|
||||||
setRotation(Base2, 0F, 0F, 0F);
|
|
||||||
Base.setRotationPoint(-8F, 16F, -8F);
|
|
||||||
setRotation(Base, 0F, 0F, 0F);
|
|
||||||
Decoration1.setRotationPoint(2F, 15F, 6F);
|
|
||||||
setRotation(Decoration1, 0F, 0F, 0F);
|
|
||||||
Decoration2.setRotationPoint(-4F, 15F, 6F);
|
|
||||||
setRotation(Decoration2, 0F, 0F, 0F);
|
|
||||||
Decoration3.setRotationPoint(-7F, 15F, 2F);
|
|
||||||
setRotation(Decoration3, 0F, 0F, 0F);
|
|
||||||
Decoration4.setRotationPoint(-7F, 15F, -4F);
|
|
||||||
setRotation(Decoration4, 0F, 0F, 0F);
|
|
||||||
ConnectorTop.setRotationPoint(-4F, 16F, -4F);
|
|
||||||
setRotation(ConnectorTop, 0F, 0F, -1.570796F);
|
|
||||||
ConnectorFront.setRotationPoint(-4F, 11.99F, -0.01F);
|
|
||||||
setRotation(ConnectorFront, 0F, 1.570796F, 0F);
|
|
||||||
ConnectorRight.setRotationPoint(0.01F, 11.99F, -4F);
|
|
||||||
setRotation(ConnectorRight, 0F, 0F, 0F);
|
|
||||||
|
|
||||||
Base2.render(scale);
|
|
||||||
Base.render(scale);
|
|
||||||
ConnectorTop.render(scale);
|
|
||||||
if (connectEast)
|
|
||||||
{
|
|
||||||
ConnectorFront.render(scale);
|
|
||||||
Decoration1.render(scale);
|
|
||||||
Decoration2.render(scale);
|
|
||||||
}
|
|
||||||
if (connectNorth)
|
|
||||||
{
|
|
||||||
ConnectorRight.render(scale);
|
|
||||||
Decoration3.render(scale);
|
|
||||||
Decoration4.render(scale);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setRotation(ModelRenderer model, float x, float y, float z)
|
|
||||||
{
|
|
||||||
model.rotateAngleX = x;
|
|
||||||
model.rotateAngleY = y;
|
|
||||||
model.rotateAngleZ = z;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,478 +0,0 @@
|
||||||
package dark.assembly.client.model;
|
|
||||||
|
|
||||||
import net.minecraft.client.model.ModelBase;
|
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public class ModelCraneRail extends ModelBase
|
|
||||||
{
|
|
||||||
// left
|
|
||||||
ModelRenderer SegmentUBLeft;
|
|
||||||
ModelRenderer SegmentUFLeft;
|
|
||||||
ModelRenderer SegmentBFLeft;
|
|
||||||
ModelRenderer SegmentBBLeft;
|
|
||||||
// back
|
|
||||||
ModelRenderer SegmentBLBack;
|
|
||||||
ModelRenderer SegmentLUBack;
|
|
||||||
ModelRenderer SegmentRUBack;
|
|
||||||
ModelRenderer SegmentBRBack;
|
|
||||||
// front
|
|
||||||
ModelRenderer SegmentBLFront;
|
|
||||||
ModelRenderer SegmentLUFront;
|
|
||||||
ModelRenderer SegmentRUFront;
|
|
||||||
ModelRenderer SegmentBRFront;
|
|
||||||
// up
|
|
||||||
ModelRenderer SegmentLBUp;
|
|
||||||
ModelRenderer SegmentRBUp;
|
|
||||||
ModelRenderer SegmentLFUp;
|
|
||||||
ModelRenderer SegmentRFUp;
|
|
||||||
// right
|
|
||||||
ModelRenderer SegmentUBRight;
|
|
||||||
ModelRenderer SegmentBFRight;
|
|
||||||
ModelRenderer SegmentUFRight;
|
|
||||||
ModelRenderer SegmentBBRight;
|
|
||||||
// down
|
|
||||||
ModelRenderer SegmentLFDown;
|
|
||||||
ModelRenderer SegmentLBDown;
|
|
||||||
ModelRenderer SegmentRBDown;
|
|
||||||
ModelRenderer SegmentRFDown;
|
|
||||||
|
|
||||||
// middle
|
|
||||||
ModelRenderer SegmentBFMid;
|
|
||||||
ModelRenderer SegmentUBMid;
|
|
||||||
ModelRenderer SegmentBBMid;
|
|
||||||
ModelRenderer SegmentUFMid;
|
|
||||||
ModelRenderer SegmentLBMid;
|
|
||||||
ModelRenderer SegmentLFMid;
|
|
||||||
ModelRenderer SegmentRBMid;
|
|
||||||
ModelRenderer SegmentRFMid;
|
|
||||||
ModelRenderer SegmentRUMid;
|
|
||||||
ModelRenderer SegmentBRMid;
|
|
||||||
ModelRenderer SegmentBLMid;
|
|
||||||
ModelRenderer SegmentLUMid;
|
|
||||||
ModelRenderer SegmentMidDiag1;
|
|
||||||
ModelRenderer SegmentMidDiag2;
|
|
||||||
ModelRenderer SegmentMidDiag3;
|
|
||||||
ModelRenderer SegmentMidDiag4;
|
|
||||||
ModelRenderer SegmentMidDiag5;
|
|
||||||
ModelRenderer SegmentMidDiag6;
|
|
||||||
ModelRenderer SegmentMidDiag7;
|
|
||||||
ModelRenderer SegmentMidDiag8;
|
|
||||||
ModelRenderer FootBottom;
|
|
||||||
ModelRenderer FootTop;
|
|
||||||
|
|
||||||
public ModelCraneRail()
|
|
||||||
{
|
|
||||||
textureWidth = 64;
|
|
||||||
textureHeight = 32;
|
|
||||||
|
|
||||||
SegmentBLBack = new ModelRenderer(this, 10, 13);
|
|
||||||
SegmentBLBack.addBox(0F, 0F, 0F, 1, 1, 4);
|
|
||||||
SegmentBLBack.setRotationPoint(3F, 19F, 4F);
|
|
||||||
SegmentBLBack.setTextureSize(64, 32);
|
|
||||||
SegmentBLBack.mirror = true;
|
|
||||||
setRotation(SegmentBLBack, 0F, 0F, 0F);
|
|
||||||
SegmentLUBack = new ModelRenderer(this, 10, 13);
|
|
||||||
SegmentLUBack.addBox(0F, 0F, 0F, 1, 1, 4);
|
|
||||||
SegmentLUBack.setRotationPoint(3F, 12F, 4F);
|
|
||||||
SegmentLUBack.setTextureSize(64, 32);
|
|
||||||
SegmentLUBack.mirror = true;
|
|
||||||
setRotation(SegmentLUBack, 0F, 0F, 0F);
|
|
||||||
SegmentRUBack = new ModelRenderer(this, 10, 13);
|
|
||||||
SegmentRUBack.addBox(0F, 0F, 0F, 1, 1, 4);
|
|
||||||
SegmentRUBack.setRotationPoint(-4F, 12F, 4F);
|
|
||||||
SegmentRUBack.setTextureSize(64, 32);
|
|
||||||
SegmentRUBack.mirror = true;
|
|
||||||
setRotation(SegmentRUBack, 0F, 0F, 0F);
|
|
||||||
SegmentBRBack = new ModelRenderer(this, 10, 13);
|
|
||||||
SegmentBRBack.addBox(0F, 0F, 0F, 1, 1, 4);
|
|
||||||
SegmentBRBack.setRotationPoint(-4F, 19F, 4F);
|
|
||||||
SegmentBRBack.setTextureSize(64, 32);
|
|
||||||
SegmentBRBack.mirror = true;
|
|
||||||
setRotation(SegmentBRBack, 0F, 0F, 0F);
|
|
||||||
SegmentBLFront = new ModelRenderer(this, 10, 13);
|
|
||||||
SegmentBLFront.addBox(0F, 0F, 0F, 1, 1, 4);
|
|
||||||
SegmentBLFront.setRotationPoint(3F, 19F, -8F);
|
|
||||||
SegmentBLFront.setTextureSize(64, 32);
|
|
||||||
SegmentBLFront.mirror = true;
|
|
||||||
setRotation(SegmentBLFront, 0F, 0F, 0F);
|
|
||||||
SegmentLUFront = new ModelRenderer(this, 10, 13);
|
|
||||||
SegmentLUFront.addBox(0F, 0F, 0F, 1, 1, 4);
|
|
||||||
SegmentLUFront.setRotationPoint(3F, 12F, -8F);
|
|
||||||
SegmentLUFront.setTextureSize(64, 32);
|
|
||||||
SegmentLUFront.mirror = true;
|
|
||||||
setRotation(SegmentLUFront, 0F, 0F, 0F);
|
|
||||||
SegmentRUFront = new ModelRenderer(this, 10, 13);
|
|
||||||
SegmentRUFront.addBox(0F, 0F, 0F, 1, 1, 4);
|
|
||||||
SegmentRUFront.setRotationPoint(-4F, 12F, -8F);
|
|
||||||
SegmentRUFront.setTextureSize(64, 32);
|
|
||||||
SegmentRUFront.mirror = true;
|
|
||||||
setRotation(SegmentRUFront, 0F, 0F, 0F);
|
|
||||||
SegmentBRFront = new ModelRenderer(this, 10, 13);
|
|
||||||
SegmentBRFront.addBox(0F, 0F, 0F, 1, 1, 4);
|
|
||||||
SegmentBRFront.setRotationPoint(-4F, 19F, -8F);
|
|
||||||
SegmentBRFront.setTextureSize(64, 32);
|
|
||||||
SegmentBRFront.mirror = true;
|
|
||||||
setRotation(SegmentBRFront, 0F, 0F, 0F);
|
|
||||||
SegmentLBUp = new ModelRenderer(this, 20, 13);
|
|
||||||
SegmentLBUp.addBox(0F, 0F, 0F, 1, 4, 1);
|
|
||||||
SegmentLBUp.setRotationPoint(3F, 8F, 3F);
|
|
||||||
SegmentLBUp.setTextureSize(64, 32);
|
|
||||||
SegmentLBUp.mirror = true;
|
|
||||||
setRotation(SegmentLBUp, 0F, 0F, 0F);
|
|
||||||
SegmentRBUp = new ModelRenderer(this, 20, 13);
|
|
||||||
SegmentRBUp.addBox(0F, 0F, 0F, 1, 4, 1);
|
|
||||||
SegmentRBUp.setRotationPoint(-4F, 8F, 3F);
|
|
||||||
SegmentRBUp.setTextureSize(64, 32);
|
|
||||||
SegmentRBUp.mirror = true;
|
|
||||||
setRotation(SegmentRBUp, 0F, 0F, 0F);
|
|
||||||
SegmentLFUp = new ModelRenderer(this, 20, 13);
|
|
||||||
SegmentLFUp.addBox(0F, 0F, 0F, 1, 4, 1);
|
|
||||||
SegmentLFUp.setRotationPoint(3F, 8F, -4F);
|
|
||||||
SegmentLFUp.setTextureSize(64, 32);
|
|
||||||
SegmentLFUp.mirror = true;
|
|
||||||
setRotation(SegmentLFUp, 0F, 0F, 0F);
|
|
||||||
SegmentRFUp = new ModelRenderer(this, 20, 13);
|
|
||||||
SegmentRFUp.addBox(0F, 0F, 0F, 1, 4, 1);
|
|
||||||
SegmentRFUp.setRotationPoint(-4F, 8F, -4F);
|
|
||||||
SegmentRFUp.setTextureSize(64, 32);
|
|
||||||
SegmentRFUp.mirror = true;
|
|
||||||
setRotation(SegmentRFUp, 0F, 0F, 0F);
|
|
||||||
SegmentUBRight = new ModelRenderer(this, 0, 13);
|
|
||||||
SegmentUBRight.addBox(0F, 0F, 0F, 4, 1, 1);
|
|
||||||
SegmentUBRight.setRotationPoint(-8F, 12F, 3F);
|
|
||||||
SegmentUBRight.setTextureSize(64, 32);
|
|
||||||
SegmentUBRight.mirror = true;
|
|
||||||
setRotation(SegmentUBRight, 0F, 0F, 0F);
|
|
||||||
SegmentBFRight = new ModelRenderer(this, 0, 13);
|
|
||||||
SegmentBFRight.addBox(0F, 0F, 0F, 4, 1, 1);
|
|
||||||
SegmentBFRight.setRotationPoint(-8F, 19F, -4F);
|
|
||||||
SegmentBFRight.setTextureSize(64, 32);
|
|
||||||
SegmentBFRight.mirror = true;
|
|
||||||
setRotation(SegmentBFRight, 0F, 0F, 0F);
|
|
||||||
SegmentUFRight = new ModelRenderer(this, 0, 13);
|
|
||||||
SegmentUFRight.addBox(0F, 0F, 0F, 4, 1, 1);
|
|
||||||
SegmentUFRight.setRotationPoint(-8F, 12F, -4F);
|
|
||||||
SegmentUFRight.setTextureSize(64, 32);
|
|
||||||
SegmentUFRight.mirror = true;
|
|
||||||
setRotation(SegmentUFRight, 0F, 0F, 0F);
|
|
||||||
SegmentBBRight = new ModelRenderer(this, 0, 13);
|
|
||||||
SegmentBBRight.addBox(0F, 0F, 0F, 4, 1, 1);
|
|
||||||
SegmentBBRight.setRotationPoint(-8F, 19F, 3F);
|
|
||||||
SegmentBBRight.setTextureSize(64, 32);
|
|
||||||
SegmentBBRight.mirror = true;
|
|
||||||
setRotation(SegmentBBRight, 0F, 0F, 0F);
|
|
||||||
SegmentLFDown = new ModelRenderer(this, 20, 13);
|
|
||||||
SegmentLFDown.addBox(0F, 0F, 0F, 1, 4, 1);
|
|
||||||
SegmentLFDown.setRotationPoint(3F, 20F, -4F);
|
|
||||||
SegmentLFDown.setTextureSize(64, 32);
|
|
||||||
SegmentLFDown.mirror = true;
|
|
||||||
setRotation(SegmentLFDown, 0F, 0F, 0F);
|
|
||||||
SegmentLBDown = new ModelRenderer(this, 20, 13);
|
|
||||||
SegmentLBDown.addBox(0F, 0F, 0F, 1, 4, 1);
|
|
||||||
SegmentLBDown.setRotationPoint(3F, 20F, 3F);
|
|
||||||
SegmentLBDown.setTextureSize(64, 32);
|
|
||||||
SegmentLBDown.mirror = true;
|
|
||||||
setRotation(SegmentLBDown, 0F, 0F, 0F);
|
|
||||||
SegmentRBDown = new ModelRenderer(this, 20, 13);
|
|
||||||
SegmentRBDown.addBox(0F, 0F, 0F, 1, 4, 1);
|
|
||||||
SegmentRBDown.setRotationPoint(-4F, 20F, 3F);
|
|
||||||
SegmentRBDown.setTextureSize(64, 32);
|
|
||||||
SegmentRBDown.mirror = true;
|
|
||||||
setRotation(SegmentRBDown, 0F, 0F, 0F);
|
|
||||||
FootTop = new ModelRenderer(this, 24, 0);
|
|
||||||
FootTop.addBox(0F, 0F, 0F, 10, 2, 10);
|
|
||||||
FootTop.setRotationPoint(-5F, 20F, -5F);
|
|
||||||
FootTop.setTextureSize(64, 32);
|
|
||||||
FootTop.mirror = true;
|
|
||||||
setRotation(FootTop, 0F, 0F, 0F);
|
|
||||||
SegmentRFDown = new ModelRenderer(this, 20, 13);
|
|
||||||
SegmentRFDown.addBox(0F, 0F, 0F, 1, 4, 1);
|
|
||||||
SegmentRFDown.setRotationPoint(-4F, 20F, -4F);
|
|
||||||
SegmentRFDown.setTextureSize(64, 32);
|
|
||||||
SegmentRFDown.mirror = true;
|
|
||||||
setRotation(SegmentRFDown, 0F, 0F, 0F);
|
|
||||||
FootBottom = new ModelRenderer(this, 0, 18);
|
|
||||||
FootBottom.addBox(0F, 0F, 0F, 12, 2, 12);
|
|
||||||
FootBottom.setRotationPoint(-6F, 22F, -6F);
|
|
||||||
FootBottom.setTextureSize(64, 32);
|
|
||||||
FootBottom.mirror = true;
|
|
||||||
setRotation(FootBottom, 0F, 0F, 0F);
|
|
||||||
SegmentBFMid = new ModelRenderer(this, 30, 12);
|
|
||||||
SegmentBFMid.addBox(0F, 0F, 0F, 8, 1, 1);
|
|
||||||
SegmentBFMid.setRotationPoint(-4F, 19F, -4F);
|
|
||||||
SegmentBFMid.setTextureSize(64, 32);
|
|
||||||
SegmentBFMid.mirror = true;
|
|
||||||
setRotation(SegmentBFMid, 0F, 0F, 0F);
|
|
||||||
SegmentUBMid = new ModelRenderer(this, 30, 12);
|
|
||||||
SegmentUBMid.addBox(0F, 0F, 0F, 8, 1, 1);
|
|
||||||
SegmentUBMid.setRotationPoint(-4F, 12F, 3F);
|
|
||||||
SegmentUBMid.setTextureSize(64, 32);
|
|
||||||
SegmentUBMid.mirror = true;
|
|
||||||
setRotation(SegmentUBMid, 0F, 0F, 0F);
|
|
||||||
SegmentBBMid = new ModelRenderer(this, 30, 12);
|
|
||||||
SegmentBBMid.addBox(0F, 0F, 0F, 8, 1, 1);
|
|
||||||
SegmentBBMid.setRotationPoint(-4F, 19F, 3F);
|
|
||||||
SegmentBBMid.setTextureSize(64, 32);
|
|
||||||
SegmentBBMid.mirror = true;
|
|
||||||
setRotation(SegmentBBMid, 0F, 0F, 0F);
|
|
||||||
SegmentUFMid = new ModelRenderer(this, 30, 12);
|
|
||||||
SegmentUFMid.addBox(0F, 0F, 0F, 8, 1, 1);
|
|
||||||
SegmentUFMid.setRotationPoint(-4F, 12F, -4F);
|
|
||||||
SegmentUFMid.setTextureSize(64, 32);
|
|
||||||
SegmentUFMid.mirror = true;
|
|
||||||
setRotation(SegmentUFMid, 0F, 0F, 0F);
|
|
||||||
SegmentLBMid = new ModelRenderer(this, 48, 19);
|
|
||||||
SegmentLBMid.addBox(0F, 0F, 0F, 1, 6, 1);
|
|
||||||
SegmentLBMid.setRotationPoint(3F, 13F, 3F);
|
|
||||||
SegmentLBMid.setTextureSize(64, 32);
|
|
||||||
SegmentLBMid.mirror = true;
|
|
||||||
setRotation(SegmentLBMid, 0F, 0F, 0F);
|
|
||||||
SegmentLFMid = new ModelRenderer(this, 48, 19);
|
|
||||||
SegmentLFMid.addBox(0F, 0F, 0F, 1, 6, 1);
|
|
||||||
SegmentLFMid.setRotationPoint(3F, 13F, -4F);
|
|
||||||
SegmentLFMid.setTextureSize(64, 32);
|
|
||||||
SegmentLFMid.mirror = true;
|
|
||||||
setRotation(SegmentLFMid, 0F, 0F, 0F);
|
|
||||||
SegmentRBMid = new ModelRenderer(this, 48, 19);
|
|
||||||
SegmentRBMid.addBox(0F, 0F, 0F, 1, 6, 1);
|
|
||||||
SegmentRBMid.setRotationPoint(-4F, 13F, 3F);
|
|
||||||
SegmentRBMid.setTextureSize(64, 32);
|
|
||||||
SegmentRBMid.mirror = true;
|
|
||||||
setRotation(SegmentRBMid, 0F, 0F, 0F);
|
|
||||||
SegmentRFMid = new ModelRenderer(this, 48, 19);
|
|
||||||
SegmentRFMid.addBox(0F, 0F, 0F, 1, 6, 1);
|
|
||||||
SegmentRFMid.setRotationPoint(-4F, 13F, -4F);
|
|
||||||
SegmentRFMid.setTextureSize(64, 32);
|
|
||||||
SegmentRFMid.mirror = true;
|
|
||||||
setRotation(SegmentRFMid, 0F, 0F, 0F);
|
|
||||||
SegmentMidDiag4 = new ModelRenderer(this, 0, 0);
|
|
||||||
SegmentMidDiag4.addBox(0F, 0F, 0F, 1, 1, 10);
|
|
||||||
SegmentMidDiag4.setRotationPoint(-3.99F, 12F, -3F);
|
|
||||||
SegmentMidDiag4.setTextureSize(64, 32);
|
|
||||||
SegmentMidDiag4.mirror = true;
|
|
||||||
setRotation(SegmentMidDiag4, -0.7853982F, 0F, 0F);
|
|
||||||
SegmentRUMid = new ModelRenderer(this, 48, 12);
|
|
||||||
SegmentRUMid.addBox(0F, 0F, 0F, 1, 1, 6);
|
|
||||||
SegmentRUMid.setRotationPoint(-4F, 12F, -3F);
|
|
||||||
SegmentRUMid.setTextureSize(64, 32);
|
|
||||||
SegmentRUMid.mirror = true;
|
|
||||||
setRotation(SegmentRUMid, 0F, 0F, 0F);
|
|
||||||
SegmentBRMid = new ModelRenderer(this, 48, 12);
|
|
||||||
SegmentBRMid.addBox(0F, 0F, 0F, 1, 1, 6);
|
|
||||||
SegmentBRMid.setRotationPoint(-4F, 19F, -3F);
|
|
||||||
SegmentBRMid.setTextureSize(64, 32);
|
|
||||||
SegmentBRMid.mirror = true;
|
|
||||||
setRotation(SegmentBRMid, 0F, 0F, 0F);
|
|
||||||
SegmentBLMid = new ModelRenderer(this, 48, 12);
|
|
||||||
SegmentBLMid.addBox(0F, 0F, 0F, 1, 1, 6);
|
|
||||||
SegmentBLMid.setRotationPoint(3F, 19F, -3F);
|
|
||||||
SegmentBLMid.setTextureSize(64, 32);
|
|
||||||
SegmentBLMid.mirror = true;
|
|
||||||
setRotation(SegmentBLMid, 0F, 0F, 0F);
|
|
||||||
SegmentLUMid = new ModelRenderer(this, 48, 12);
|
|
||||||
SegmentLUMid.addBox(0F, 0F, 0F, 1, 1, 6);
|
|
||||||
SegmentLUMid.setRotationPoint(3F, 12F, -3F);
|
|
||||||
SegmentLUMid.setTextureSize(64, 32);
|
|
||||||
SegmentLUMid.mirror = true;
|
|
||||||
setRotation(SegmentLUMid, 0F, 0F, 0F);
|
|
||||||
SegmentMidDiag3 = new ModelRenderer(this, 0, 0);
|
|
||||||
SegmentMidDiag3.addBox(0F, 0F, 0F, 1, 1, 10);
|
|
||||||
SegmentMidDiag3.setRotationPoint(-4F, 19F, -4F);
|
|
||||||
SegmentMidDiag3.setTextureSize(64, 32);
|
|
||||||
SegmentMidDiag3.mirror = true;
|
|
||||||
setRotation(SegmentMidDiag3, 0.7853982F, 0F, 0F);
|
|
||||||
SegmentMidDiag7 = new ModelRenderer(this, 0, 0);
|
|
||||||
SegmentMidDiag7.addBox(0F, 0F, 0F, 1, 1, 10);
|
|
||||||
SegmentMidDiag7.setRotationPoint(-2.99F, 12F, 4F);
|
|
||||||
SegmentMidDiag7.setTextureSize(64, 32);
|
|
||||||
SegmentMidDiag7.mirror = true;
|
|
||||||
setRotation(SegmentMidDiag7, -0.7853982F, 1.570796F, 0F);
|
|
||||||
SegmentMidDiag8 = new ModelRenderer(this, 0, 0);
|
|
||||||
SegmentMidDiag8.addBox(0F, 0F, 0F, 1, 1, 10);
|
|
||||||
SegmentMidDiag8.setRotationPoint(-4F, 19F, 4F);
|
|
||||||
SegmentMidDiag8.setTextureSize(64, 32);
|
|
||||||
SegmentMidDiag8.mirror = true;
|
|
||||||
setRotation(SegmentMidDiag8, 0.7853982F, 1.570796F, 0F);
|
|
||||||
SegmentMidDiag1 = new ModelRenderer(this, 0, 0);
|
|
||||||
SegmentMidDiag1.addBox(0F, 0F, 0F, 1, 1, 10);
|
|
||||||
SegmentMidDiag1.setRotationPoint(3F, 19F, -4F);
|
|
||||||
SegmentMidDiag1.setTextureSize(64, 32);
|
|
||||||
SegmentMidDiag1.mirror = true;
|
|
||||||
setRotation(SegmentMidDiag1, 0.7853982F, 0F, 0F);
|
|
||||||
SegmentMidDiag2 = new ModelRenderer(this, 0, 0);
|
|
||||||
SegmentMidDiag2.addBox(0F, 0F, 0F, 1, 1, 10);
|
|
||||||
SegmentMidDiag2.setRotationPoint(3.01F, 12F, -3F);
|
|
||||||
SegmentMidDiag2.setTextureSize(64, 32);
|
|
||||||
SegmentMidDiag2.mirror = true;
|
|
||||||
setRotation(SegmentMidDiag2, -0.7853982F, 0F, 0F);
|
|
||||||
SegmentMidDiag6 = new ModelRenderer(this, 0, 0);
|
|
||||||
SegmentMidDiag6.addBox(0F, 0F, 0F, 1, 1, 10);
|
|
||||||
SegmentMidDiag6.setRotationPoint(-4F, 19F, -3F);
|
|
||||||
SegmentMidDiag6.setTextureSize(64, 32);
|
|
||||||
SegmentMidDiag6.mirror = true;
|
|
||||||
setRotation(SegmentMidDiag6, 0.7853982F, 1.570796F, 0F);
|
|
||||||
SegmentMidDiag5 = new ModelRenderer(this, 0, 0);
|
|
||||||
SegmentMidDiag5.addBox(0F, 0F, 0F, 1, 1, 10);
|
|
||||||
SegmentMidDiag5.setRotationPoint(-2.99F, 12F, -3F);
|
|
||||||
SegmentMidDiag5.setTextureSize(64, 32);
|
|
||||||
SegmentMidDiag5.mirror = true;
|
|
||||||
setRotation(SegmentMidDiag5, -0.7853982F, 1.570796F, 0F);
|
|
||||||
SegmentUBLeft = new ModelRenderer(this, 0, 13);
|
|
||||||
SegmentUBLeft.addBox(0F, 0F, 0F, 4, 1, 1);
|
|
||||||
SegmentUBLeft.setRotationPoint(4F, 12F, 3F);
|
|
||||||
SegmentUBLeft.setTextureSize(64, 32);
|
|
||||||
SegmentUBLeft.mirror = true;
|
|
||||||
setRotation(SegmentUBLeft, 0F, 0F, 0F);
|
|
||||||
SegmentUFLeft = new ModelRenderer(this, 0, 13);
|
|
||||||
SegmentUFLeft.addBox(0F, 0F, 0F, 4, 1, 1);
|
|
||||||
SegmentUFLeft.setRotationPoint(4F, 12F, -4F);
|
|
||||||
SegmentUFLeft.setTextureSize(64, 32);
|
|
||||||
SegmentUFLeft.mirror = true;
|
|
||||||
setRotation(SegmentUFLeft, 0F, 0F, 0F);
|
|
||||||
SegmentBFLeft = new ModelRenderer(this, 0, 13);
|
|
||||||
SegmentBFLeft.addBox(0F, 0F, 0F, 4, 1, 1);
|
|
||||||
SegmentBFLeft.setRotationPoint(4F, 19F, -4F);
|
|
||||||
SegmentBFLeft.setTextureSize(64, 32);
|
|
||||||
SegmentBFLeft.mirror = true;
|
|
||||||
setRotation(SegmentBFLeft, 0F, 0F, 0F);
|
|
||||||
SegmentBBLeft = new ModelRenderer(this, 0, 13);
|
|
||||||
SegmentBBLeft.addBox(0F, 0F, 0F, 4, 1, 1);
|
|
||||||
SegmentBBLeft.setRotationPoint(4F, 19F, 3F);
|
|
||||||
SegmentBBLeft.setTextureSize(64, 32);
|
|
||||||
SegmentBBLeft.mirror = true;
|
|
||||||
setRotation(SegmentBBLeft, 0F, 0F, 0F);
|
|
||||||
fixPositions();
|
|
||||||
}
|
|
||||||
|
|
||||||
// this offsets some positions to avoid Z-Fighting
|
|
||||||
public void fixPositions()
|
|
||||||
{
|
|
||||||
SegmentBLBack.setRotationPoint(3F, 19F, 4F);
|
|
||||||
SegmentLUBack.setRotationPoint(3F, 12F, 4F);
|
|
||||||
SegmentRUBack.setRotationPoint(-4F, 12F, 4F);
|
|
||||||
SegmentBRBack.setRotationPoint(-4F, 19F, 4F);
|
|
||||||
SegmentBLFront.setRotationPoint(3F, 19F, -8F);
|
|
||||||
SegmentLUFront.setRotationPoint(3F, 12F, -8F);
|
|
||||||
SegmentRUFront.setRotationPoint(-4F, 12F, -8F);
|
|
||||||
SegmentBRFront.setRotationPoint(-4F, 19F, -8F);
|
|
||||||
SegmentLBUp.setRotationPoint(3F, 8F, 3F);
|
|
||||||
SegmentRBUp.setRotationPoint(-4F, 8F, 3F);
|
|
||||||
SegmentLFUp.setRotationPoint(3F, 8F, -4F);
|
|
||||||
SegmentRFUp.setRotationPoint(-4F, 8F, -4F);
|
|
||||||
SegmentUBRight.setRotationPoint(-8F, 12F, 3F);
|
|
||||||
SegmentBFRight.setRotationPoint(-8F, 19F, -4F);
|
|
||||||
SegmentUFRight.setRotationPoint(-8F, 12F, -4F);
|
|
||||||
SegmentBBRight.setRotationPoint(-8F, 19F, 3F);
|
|
||||||
SegmentLFDown.setRotationPoint(3F, 20F, -4F);
|
|
||||||
SegmentLBDown.setRotationPoint(3F, 20F, 3F);
|
|
||||||
SegmentRBDown.setRotationPoint(-4F, 20F, 3F);
|
|
||||||
SegmentRFDown.setRotationPoint(-4F, 20F, -4F);
|
|
||||||
SegmentBFMid.setRotationPoint(-4F, 19F, -4F);
|
|
||||||
SegmentUBMid.setRotationPoint(-4F, 12F, 3F);
|
|
||||||
SegmentBBMid.setRotationPoint(-4F, 19F, 3F);
|
|
||||||
SegmentUFMid.setRotationPoint(-4F, 12F, -4F);
|
|
||||||
SegmentLBMid.setRotationPoint(3F, 13F, 3F);
|
|
||||||
SegmentLFMid.setRotationPoint(3F, 13F, -4F);
|
|
||||||
SegmentRBMid.setRotationPoint(-4F, 13F, 3F);
|
|
||||||
SegmentRFMid.setRotationPoint(-4F, 13F, -4F);
|
|
||||||
SegmentRUMid.setRotationPoint(-4F, 12F, -3F);
|
|
||||||
SegmentBRMid.setRotationPoint(-4F, 19F, -3F);
|
|
||||||
SegmentBLMid.setRotationPoint(3F, 19F, -3F);
|
|
||||||
SegmentLUMid.setRotationPoint(3F, 12F, -3F);
|
|
||||||
SegmentMidDiag1.setRotationPoint(2.99F, 19.1F, -4F);
|
|
||||||
SegmentMidDiag2.setRotationPoint(2.99F, 12F, -3.1F);
|
|
||||||
SegmentMidDiag3.setRotationPoint(-3.99F, 19.1F, -4F);
|
|
||||||
SegmentMidDiag4.setRotationPoint(-3.99F, 12F, -3.1F);
|
|
||||||
SegmentMidDiag5.setRotationPoint(-3.1F, 12F, -2.99F);
|
|
||||||
SegmentMidDiag6.setRotationPoint(-4F, 19.1F, -2.99F);
|
|
||||||
SegmentMidDiag7.setRotationPoint(-3.1F, 12F, 3.99F);
|
|
||||||
SegmentMidDiag8.setRotationPoint(-4F, 19F, 3.99F);
|
|
||||||
SegmentUBLeft.setRotationPoint(4F, 12F, 3F);
|
|
||||||
SegmentUFLeft.setRotationPoint(4F, 12F, -4F);
|
|
||||||
SegmentBFLeft.setRotationPoint(4F, 19F, -4F);
|
|
||||||
SegmentBBLeft.setRotationPoint(4F, 19F, 3F);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void render(boolean up, boolean down, boolean left, boolean right, boolean front, boolean back, boolean foot)
|
|
||||||
{
|
|
||||||
float scale = 0.0625f;
|
|
||||||
if (up)
|
|
||||||
{
|
|
||||||
SegmentLBUp.render(scale);
|
|
||||||
SegmentRBUp.render(scale);
|
|
||||||
SegmentLFUp.render(scale);
|
|
||||||
SegmentRFUp.render(scale);
|
|
||||||
}
|
|
||||||
if (down)
|
|
||||||
{
|
|
||||||
SegmentLFDown.render(scale);
|
|
||||||
SegmentLBDown.render(scale);
|
|
||||||
SegmentRBDown.render(scale);
|
|
||||||
SegmentRFDown.render(scale);
|
|
||||||
}
|
|
||||||
if (left)
|
|
||||||
{
|
|
||||||
SegmentUBLeft.render(scale);
|
|
||||||
SegmentUFLeft.render(scale);
|
|
||||||
SegmentBFLeft.render(scale);
|
|
||||||
SegmentBBLeft.render(scale);
|
|
||||||
}
|
|
||||||
if (right)
|
|
||||||
{
|
|
||||||
SegmentUBRight.render(scale);
|
|
||||||
SegmentBFRight.render(scale);
|
|
||||||
SegmentUFRight.render(scale);
|
|
||||||
SegmentBBRight.render(scale);
|
|
||||||
}
|
|
||||||
if (front)
|
|
||||||
{
|
|
||||||
SegmentBLFront.render(scale);
|
|
||||||
SegmentLUFront.render(scale);
|
|
||||||
SegmentRUFront.render(scale);
|
|
||||||
SegmentBRFront.render(scale);
|
|
||||||
}
|
|
||||||
if (back)
|
|
||||||
{
|
|
||||||
SegmentBLBack.render(scale);
|
|
||||||
SegmentLUBack.render(scale);
|
|
||||||
SegmentRUBack.render(scale);
|
|
||||||
SegmentBRBack.render(scale);
|
|
||||||
}
|
|
||||||
if (foot)
|
|
||||||
{
|
|
||||||
FootBottom.render(scale);
|
|
||||||
FootTop.render(scale);
|
|
||||||
}
|
|
||||||
SegmentBFMid.render(scale);
|
|
||||||
SegmentUBMid.render(scale);
|
|
||||||
SegmentBBMid.render(scale);
|
|
||||||
SegmentUFMid.render(scale);
|
|
||||||
SegmentLBMid.render(scale);
|
|
||||||
SegmentLFMid.render(scale);
|
|
||||||
SegmentRBMid.render(scale);
|
|
||||||
SegmentRFMid.render(scale);
|
|
||||||
SegmentRUMid.render(scale);
|
|
||||||
SegmentBRMid.render(scale);
|
|
||||||
SegmentBLMid.render(scale);
|
|
||||||
SegmentLUMid.render(scale);
|
|
||||||
SegmentMidDiag1.render(scale);
|
|
||||||
SegmentMidDiag2.render(scale);
|
|
||||||
SegmentMidDiag3.render(scale);
|
|
||||||
SegmentMidDiag4.render(scale);
|
|
||||||
SegmentMidDiag5.render(scale);
|
|
||||||
SegmentMidDiag6.render(scale);
|
|
||||||
SegmentMidDiag7.render(scale);
|
|
||||||
SegmentMidDiag8.render(scale);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setRotation(ModelRenderer model, float x, float y, float z)
|
|
||||||
{
|
|
||||||
model.rotateAngleX = x;
|
|
||||||
model.rotateAngleY = y;
|
|
||||||
model.rotateAngleZ = z;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,110 +0,0 @@
|
||||||
package dark.assembly.client.model;
|
|
||||||
|
|
||||||
import net.minecraft.client.model.ModelBase;
|
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public class ModelDropBox extends ModelBase
|
|
||||||
{
|
|
||||||
// fields
|
|
||||||
ModelRenderer Left;
|
|
||||||
ModelRenderer Top;
|
|
||||||
ModelRenderer Front;
|
|
||||||
ModelRenderer LeftB;
|
|
||||||
ModelRenderer Back;
|
|
||||||
ModelRenderer Right;
|
|
||||||
ModelRenderer RightB;
|
|
||||||
ModelRenderer Bottom;
|
|
||||||
ModelRenderer Back3;
|
|
||||||
ModelRenderer Back2;
|
|
||||||
|
|
||||||
public ModelDropBox()
|
|
||||||
{
|
|
||||||
textureWidth = 128;
|
|
||||||
textureHeight = 128;
|
|
||||||
|
|
||||||
Left = new ModelRenderer(this, 33, 43);
|
|
||||||
Left.addBox(7F, -10F, -8F, 1, 7, 15);
|
|
||||||
Left.setRotationPoint(0F, 19F, 0F);
|
|
||||||
Left.setTextureSize(128, 128);
|
|
||||||
Left.mirror = true;
|
|
||||||
setRotation(Left, 0F, 0F, 0F);
|
|
||||||
Top = new ModelRenderer(this, 0, 65);
|
|
||||||
Top.addBox(-7F, -11F, -7F, 14, 1, 14);
|
|
||||||
Top.setRotationPoint(0F, 19F, 0F);
|
|
||||||
Top.setTextureSize(128, 128);
|
|
||||||
Top.mirror = true;
|
|
||||||
setRotation(Top, 0F, 0F, 0F);
|
|
||||||
Front = new ModelRenderer(this, 0, 33);
|
|
||||||
Front.addBox(-8F, -4F, -7.5F, 16, 5, 1);
|
|
||||||
Front.setRotationPoint(0F, 19F, 0F);
|
|
||||||
Front.setTextureSize(128, 128);
|
|
||||||
Front.mirror = true;
|
|
||||||
setRotation(Front, 0.5235988F, 0F, 0F);
|
|
||||||
LeftB = new ModelRenderer(this, 36, 21);
|
|
||||||
LeftB.addBox(7F, -3F, -6F, 1, 8, 13);
|
|
||||||
LeftB.setRotationPoint(0F, 19F, 0F);
|
|
||||||
LeftB.setTextureSize(128, 128);
|
|
||||||
LeftB.mirror = true;
|
|
||||||
setRotation(LeftB, 0F, 0F, 0F);
|
|
||||||
Back = new ModelRenderer(this, 0, 96);
|
|
||||||
Back.addBox(-5F, -8F, 4F, 10, 10, 4);
|
|
||||||
Back.setRotationPoint(0F, 19F, 0F);
|
|
||||||
Back.setTextureSize(128, 128);
|
|
||||||
Back.mirror = true;
|
|
||||||
setRotation(Back, 0F, 0F, 0F);
|
|
||||||
Right = new ModelRenderer(this, 0, 42);
|
|
||||||
Right.addBox(-8F, -10F, -8F, 1, 7, 15);
|
|
||||||
Right.setRotationPoint(0F, 19F, 0F);
|
|
||||||
Right.setTextureSize(128, 128);
|
|
||||||
Right.mirror = true;
|
|
||||||
setRotation(Right, 0F, 0F, 0F);
|
|
||||||
RightB = new ModelRenderer(this, 36, 0);
|
|
||||||
RightB.addBox(-8F, -3F, -6F, 1, 8, 13);
|
|
||||||
RightB.setRotationPoint(0F, 19F, 0F);
|
|
||||||
RightB.setTextureSize(128, 128);
|
|
||||||
RightB.mirror = true;
|
|
||||||
setRotation(RightB, 0F, 0F, 0F);
|
|
||||||
Bottom = new ModelRenderer(this, 0, 81);
|
|
||||||
Bottom.addBox(-7F, 4F, -6F, 14, 1, 13);
|
|
||||||
Bottom.setRotationPoint(0F, 19F, 0F);
|
|
||||||
Bottom.setTextureSize(128, 128);
|
|
||||||
Bottom.mirror = true;
|
|
||||||
setRotation(Bottom, 0F, 0F, 0F);
|
|
||||||
Back3 = new ModelRenderer(this, 0, 23);
|
|
||||||
Back3.addBox(-7F, -10F, -9F, 14, 8, 1);
|
|
||||||
Back3.setRotationPoint(0F, 19F, 0F);
|
|
||||||
Back3.setTextureSize(128, 128);
|
|
||||||
Back3.mirror = true;
|
|
||||||
setRotation(Back3, -0.1919862F, 0F, 0F);
|
|
||||||
Back2 = new ModelRenderer(this, 0, 7);
|
|
||||||
Back2.addBox(-7F, -10F, 3F, 14, 14, 1);
|
|
||||||
Back2.setRotationPoint(0F, 19F, 0F);
|
|
||||||
Back2.setTextureSize(128, 128);
|
|
||||||
Back2.mirror = true;
|
|
||||||
setRotation(Back2, 0F, 0F, 0F);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void render(float f5)
|
|
||||||
{
|
|
||||||
Left.render(f5);
|
|
||||||
Top.render(f5);
|
|
||||||
Front.render(f5);
|
|
||||||
LeftB.render(f5);
|
|
||||||
Back.render(f5);
|
|
||||||
Right.render(f5);
|
|
||||||
RightB.render(f5);
|
|
||||||
Bottom.render(f5);
|
|
||||||
Back.render(f5);
|
|
||||||
Back.render(f5);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setRotation(ModelRenderer model, float x, float y, float z)
|
|
||||||
{
|
|
||||||
model.rotateAngleX = x;
|
|
||||||
model.rotateAngleY = y;
|
|
||||||
model.rotateAngleZ = z;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,142 +0,0 @@
|
||||||
package dark.assembly.client.model;
|
|
||||||
|
|
||||||
import net.minecraft.client.model.ModelBase;
|
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public class ModelLaserDrill extends ModelBase
|
|
||||||
{
|
|
||||||
// fields
|
|
||||||
ModelRenderer Tip;
|
|
||||||
ModelRenderer Upper_plating;
|
|
||||||
ModelRenderer Middle_plating;
|
|
||||||
ModelRenderer Shape3_1;
|
|
||||||
ModelRenderer Shape3_2;
|
|
||||||
ModelRenderer Shape3_3;
|
|
||||||
ModelRenderer Shape3_4;
|
|
||||||
ModelRenderer LowerPlating_1;
|
|
||||||
ModelRenderer LowerPlating_2;
|
|
||||||
ModelRenderer Bump_1;
|
|
||||||
ModelRenderer Bump_2;
|
|
||||||
ModelRenderer Bump_3;
|
|
||||||
ModelRenderer Bump_4;
|
|
||||||
ModelRenderer Cross;
|
|
||||||
|
|
||||||
public ModelLaserDrill()
|
|
||||||
{
|
|
||||||
textureWidth = 64;
|
|
||||||
textureHeight = 32;
|
|
||||||
|
|
||||||
Tip = new ModelRenderer(this, 0, 8);
|
|
||||||
Tip.addBox(-1F, 0F, -1F, 2, 16, 2);
|
|
||||||
Tip.setRotationPoint(0F, 8F, 0F);
|
|
||||||
Tip.setTextureSize(64, 32);
|
|
||||||
Tip.mirror = true;
|
|
||||||
setRotation(Tip, 0F, 0F, 0F);
|
|
||||||
Upper_plating = new ModelRenderer(this, 0, 0);
|
|
||||||
Upper_plating.addBox(-2F, 0F, -2F, 4, 1, 4);
|
|
||||||
Upper_plating.setRotationPoint(0F, 11F, 0F);
|
|
||||||
Upper_plating.setTextureSize(64, 32);
|
|
||||||
Upper_plating.mirror = true;
|
|
||||||
setRotation(Upper_plating, 0F, 0F, 0F);
|
|
||||||
Middle_plating = new ModelRenderer(this, 16, 0);
|
|
||||||
Middle_plating.addBox(-3F, 0F, -3F, 6, 1, 6);
|
|
||||||
Middle_plating.setRotationPoint(0F, 15F, 0F);
|
|
||||||
Middle_plating.setTextureSize(64, 32);
|
|
||||||
Middle_plating.mirror = true;
|
|
||||||
setRotation(Middle_plating, 0F, 0F, 0F);
|
|
||||||
Shape3_1 = new ModelRenderer(this, 8, 8);
|
|
||||||
Shape3_1.addBox(2F, 0F, -1F, 1, 6, 2);
|
|
||||||
Shape3_1.setRotationPoint(0F, 11F, 0F);
|
|
||||||
Shape3_1.setTextureSize(64, 32);
|
|
||||||
Shape3_1.mirror = true;
|
|
||||||
setRotation(Shape3_1, 0F, -3.141593F, 0F);
|
|
||||||
Shape3_2 = new ModelRenderer(this, 8, 8);
|
|
||||||
Shape3_2.addBox(2F, 0F, -1F, 1, 6, 2);
|
|
||||||
Shape3_2.setRotationPoint(0F, 11F, 0F);
|
|
||||||
Shape3_2.setTextureSize(64, 32);
|
|
||||||
Shape3_2.mirror = true;
|
|
||||||
setRotation(Shape3_2, 0F, -1.570796F, 0F);
|
|
||||||
Shape3_3 = new ModelRenderer(this, 8, 8);
|
|
||||||
Shape3_3.addBox(2F, 0F, -1F, 1, 6, 2);
|
|
||||||
Shape3_3.setRotationPoint(0F, 11F, 0F);
|
|
||||||
Shape3_3.setTextureSize(64, 32);
|
|
||||||
Shape3_3.mirror = true;
|
|
||||||
setRotation(Shape3_3, 0F, 1.570796F, 0F);
|
|
||||||
Shape3_4 = new ModelRenderer(this, 8, 8);
|
|
||||||
Shape3_4.addBox(2F, 0F, -1F, 1, 6, 2);
|
|
||||||
Shape3_4.setRotationPoint(0F, 11F, 0F);
|
|
||||||
Shape3_4.setTextureSize(64, 32);
|
|
||||||
Shape3_4.mirror = true;
|
|
||||||
setRotation(Shape3_4, 0F, 0F, 0F);
|
|
||||||
LowerPlating_1 = new ModelRenderer(this, 40, 0);
|
|
||||||
LowerPlating_1.addBox(-2F, 0F, -2F, 4, 1, 4);
|
|
||||||
LowerPlating_1.setRotationPoint(0F, 18F, 0F);
|
|
||||||
LowerPlating_1.setTextureSize(64, 32);
|
|
||||||
LowerPlating_1.mirror = true;
|
|
||||||
setRotation(LowerPlating_1, 0F, 0F, 0F);
|
|
||||||
LowerPlating_2 = new ModelRenderer(this, 40, 0);
|
|
||||||
LowerPlating_2.addBox(-2F, 0F, -2F, 4, 1, 4);
|
|
||||||
LowerPlating_2.setRotationPoint(0F, 20F, 0F);
|
|
||||||
LowerPlating_2.setTextureSize(64, 32);
|
|
||||||
LowerPlating_2.mirror = true;
|
|
||||||
setRotation(LowerPlating_2, 0F, 0F, 0F);
|
|
||||||
Bump_1 = new ModelRenderer(this, 56, 0);
|
|
||||||
Bump_1.addBox(-0.5F, -0.5F, -0.5F, 1, 4, 1);
|
|
||||||
Bump_1.setRotationPoint(0F, 12F, 3F);
|
|
||||||
Bump_1.setTextureSize(64, 32);
|
|
||||||
Bump_1.mirror = true;
|
|
||||||
setRotation(Bump_1, 0F, 0.7853982F, 0F);
|
|
||||||
Bump_2 = new ModelRenderer(this, 56, 0);
|
|
||||||
Bump_2.addBox(-0.5F, -0.5F, -0.5F, 1, 4, 1);
|
|
||||||
Bump_2.setRotationPoint(3F, 12F, 0F);
|
|
||||||
Bump_2.setTextureSize(64, 32);
|
|
||||||
Bump_2.mirror = true;
|
|
||||||
setRotation(Bump_2, 0F, 0.7853982F, 0F);
|
|
||||||
Bump_3 = new ModelRenderer(this, 56, 0);
|
|
||||||
Bump_3.addBox(-0.5F, -0.5F, -0.5F, 1, 4, 1);
|
|
||||||
Bump_3.setRotationPoint(0F, 12F, -3F);
|
|
||||||
Bump_3.setTextureSize(64, 32);
|
|
||||||
Bump_3.mirror = true;
|
|
||||||
setRotation(Bump_3, 0F, 0.7853982F, 0F);
|
|
||||||
Bump_4 = new ModelRenderer(this, 56, 0);
|
|
||||||
Bump_4.addBox(-0.5F, -0.5F, -0.5F, 1, 4, 1);
|
|
||||||
Bump_4.setRotationPoint(-3F, 12F, 0F);
|
|
||||||
Bump_4.setTextureSize(64, 32);
|
|
||||||
Bump_4.mirror = true;
|
|
||||||
setRotation(Bump_4, 0F, 0.7853982F, 0F);
|
|
||||||
Cross = new ModelRenderer(this, 14, 8);
|
|
||||||
Cross.addBox(-0.5F, -0.5F, -0.5F, 3, 1, 3);
|
|
||||||
Cross.setRotationPoint(-1.5F, 11F, 0F);
|
|
||||||
Cross.setTextureSize(64, 32);
|
|
||||||
Cross.mirror = true;
|
|
||||||
setRotation(Cross, 0F, 0.7853982F, 0F);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void render(float rotation, float f5)
|
|
||||||
{
|
|
||||||
Tip.render(f5);
|
|
||||||
Upper_plating.render(f5);
|
|
||||||
Middle_plating.render(f5);
|
|
||||||
Shape3_1.render(f5);
|
|
||||||
Shape3_2.render(f5);
|
|
||||||
Shape3_3.render(f5);
|
|
||||||
Shape3_4.render(f5);
|
|
||||||
LowerPlating_1.render(f5);
|
|
||||||
LowerPlating_2.render(f5);
|
|
||||||
Bump_1.render(f5);
|
|
||||||
Bump_2.render(f5);
|
|
||||||
Bump_3.render(f5);
|
|
||||||
Bump_4.render(f5);
|
|
||||||
Cross.render(f5);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setRotation(ModelRenderer model, float x, float y, float z)
|
|
||||||
{
|
|
||||||
model.rotateAngleX = x;
|
|
||||||
model.rotateAngleY = y;
|
|
||||||
model.rotateAngleZ = z;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,71 +0,0 @@
|
||||||
package dark.assembly.client.render;
|
|
||||||
|
|
||||||
import static org.lwjgl.opengl.GL11.GL_LIGHTING;
|
|
||||||
import static org.lwjgl.opengl.GL11.glEnable;
|
|
||||||
import static org.lwjgl.opengl.GL11.glPopMatrix;
|
|
||||||
import static org.lwjgl.opengl.GL11.glPushMatrix;
|
|
||||||
import static org.lwjgl.opengl.GL11.glRotatef;
|
|
||||||
import static org.lwjgl.opengl.GL11.glTranslated;
|
|
||||||
import net.minecraft.tileentity.TileEntity;
|
|
||||||
import net.minecraft.util.ResourceLocation;
|
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
import dark.assembly.client.model.ModelCraneController;
|
|
||||||
import dark.assembly.common.AssemblyLine;
|
|
||||||
import dark.assembly.common.machine.crane.CraneHelper;
|
|
||||||
import dark.assembly.common.machine.crane.TileEntityCraneController;
|
|
||||||
import dark.core.prefab.ModPrefab;
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public class RenderCraneController extends RenderImprintable
|
|
||||||
{
|
|
||||||
public static final String TEXTURE = "crane_controller_off.png";
|
|
||||||
public static final String TEXTURE_VALID = "crane_controller_on.png";
|
|
||||||
public static final ModelCraneController MODEL = new ModelCraneController();
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void renderTileEntityAt(TileEntity tileEntity, double x, double y, double z, float f)
|
|
||||||
{
|
|
||||||
if (tileEntity != null && tileEntity instanceof TileEntityCraneController)
|
|
||||||
{
|
|
||||||
ResourceLocation name = new ResourceLocation(AssemblyLine.instance.DOMAIN, ModPrefab.MODEL_DIRECTORY + (((TileEntityCraneController) tileEntity).isCraneValid() ? TEXTURE_VALID : TEXTURE));
|
|
||||||
func_110628_a(name);
|
|
||||||
ForgeDirection front = ForgeDirection.getOrientation(tileEntity.worldObj.getBlockMetadata(tileEntity.xCoord, tileEntity.yCoord, tileEntity.zCoord));
|
|
||||||
ForgeDirection right = CraneHelper.rotateClockwise(front);
|
|
||||||
float angle = 0f;
|
|
||||||
switch (front)
|
|
||||||
{
|
|
||||||
case NORTH:
|
|
||||||
{
|
|
||||||
angle = 90f;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case SOUTH:
|
|
||||||
{
|
|
||||||
angle = 270f;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case EAST:
|
|
||||||
{
|
|
||||||
angle = 180f;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
int tX, tY, tZ;
|
|
||||||
tX = tileEntity.xCoord;
|
|
||||||
tY = tileEntity.yCoord;
|
|
||||||
tZ = tileEntity.zCoord;
|
|
||||||
boolean connectFront = CraneHelper.canFrameConnectTo(tileEntity, tX + front.offsetX, tY, tZ + front.offsetZ, front.getOpposite());
|
|
||||||
boolean connectRight = CraneHelper.canFrameConnectTo(tileEntity, tX + right.offsetX, tY, tZ + right.offsetZ, right.getOpposite());
|
|
||||||
glPushMatrix();
|
|
||||||
glTranslated(x + 0.5, y + 1.5, z + 0.5);
|
|
||||||
glRotatef(180f, 0f, 0f, 1f);
|
|
||||||
glRotatef(angle, 0f, 1f, 0f);
|
|
||||||
glEnable(GL_LIGHTING);
|
|
||||||
MODEL.render(0.0625f, connectRight, connectFront);
|
|
||||||
glPopMatrix();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,60 +0,0 @@
|
||||||
package dark.assembly.client.render;
|
|
||||||
|
|
||||||
import static org.lwjgl.opengl.GL11.GL_LIGHTING;
|
|
||||||
import static org.lwjgl.opengl.GL11.glEnable;
|
|
||||||
import static org.lwjgl.opengl.GL11.glPopMatrix;
|
|
||||||
import static org.lwjgl.opengl.GL11.glPushMatrix;
|
|
||||||
import static org.lwjgl.opengl.GL11.glRotatef;
|
|
||||||
import static org.lwjgl.opengl.GL11.glTranslated;
|
|
||||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
|
||||||
import net.minecraft.tileentity.TileEntity;
|
|
||||||
import net.minecraft.util.ResourceLocation;
|
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
import dark.assembly.client.model.ModelCraneRail;
|
|
||||||
import dark.assembly.common.AssemblyLine;
|
|
||||||
import dark.assembly.common.machine.crane.CraneHelper;
|
|
||||||
import dark.assembly.common.machine.crane.TileEntityCraneRail;
|
|
||||||
import dark.core.prefab.ModPrefab;
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public class RenderCraneFrame extends TileEntitySpecialRenderer
|
|
||||||
{
|
|
||||||
public static final String TEXTURE = "crane_frame.png";
|
|
||||||
public static final ModelCraneRail MODEL = new ModelCraneRail();
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void renderTileEntityAt(TileEntity tileEntity, double x, double y, double z, float f)
|
|
||||||
{
|
|
||||||
if (tileEntity != null && tileEntity instanceof TileEntityCraneRail)
|
|
||||||
{
|
|
||||||
int tX, tY, tZ;
|
|
||||||
tX = tileEntity.xCoord;
|
|
||||||
tY = tileEntity.yCoord;
|
|
||||||
tZ = tileEntity.zCoord;
|
|
||||||
boolean renderUp = CraneHelper.canFrameConnectTo(tileEntity, tX, tY + 1, tZ, ForgeDirection.DOWN);
|
|
||||||
boolean renderDown = CraneHelper.canFrameConnectTo(tileEntity, tX, tY - 1, tZ, ForgeDirection.UP);
|
|
||||||
// EAST, X-
|
|
||||||
boolean renderLeft = CraneHelper.canFrameConnectTo(tileEntity, tX - 1, tY, tZ, ForgeDirection.EAST);
|
|
||||||
// WAST, X+
|
|
||||||
boolean renderRight = CraneHelper.canFrameConnectTo(tileEntity, tX + 1, tY, tZ, ForgeDirection.WEST);
|
|
||||||
// SOUTH, Z-
|
|
||||||
boolean renderFront = CraneHelper.canFrameConnectTo(tileEntity, tX, tY, tZ - 1, ForgeDirection.SOUTH);
|
|
||||||
// NORTH, Z+
|
|
||||||
boolean renderBack = CraneHelper.canFrameConnectTo(tileEntity, tX, tY, tZ + 1, ForgeDirection.NORTH);
|
|
||||||
boolean renderFoot = tileEntity.worldObj.isBlockSolidOnSide(tX, tY - 1, tZ, ForgeDirection.UP);
|
|
||||||
if ((renderLeft && renderRight) || (renderFront && renderBack))
|
|
||||||
renderFoot = false;
|
|
||||||
ResourceLocation name = new ResourceLocation(AssemblyLine.instance.DOMAIN, ModPrefab.MODEL_DIRECTORY + TEXTURE);
|
|
||||||
func_110628_a(name);
|
|
||||||
glPushMatrix();
|
|
||||||
glTranslated(x + 0.5, y + 1.5, z + 0.5);
|
|
||||||
glRotatef(180f, 0f, 0f, 1f);
|
|
||||||
glEnable(GL_LIGHTING);
|
|
||||||
MODEL.render(renderUp, renderDown && !renderFoot, renderLeft, renderRight, renderFront, renderBack, renderFoot);
|
|
||||||
glPopMatrix();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue