mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
52 lines
1.7 KiB
Java
52 lines
1.7 KiB
Java
package tconstruct.client.entity;
|
|||
|
|
|
||
|
|
import net.minecraft.client.model.ModelBase;
|
||
|
|
import net.minecraft.client.model.ModelRenderer;
|
||
|
|
import net.minecraft.entity.Entity;
|
||
|
|
|
||
|
|
public class CrystalModelSmall extends ModelBase
|
||
|
|
{
|
||
|
|
/*ModelRenderer body;
|
||
|
|
ModelRendererTurbo top;
|
||
|
|
ModelRendererTurbo bottom;
|
||
|
|
|
||
|
|
public CrystalModelSmall()
|
||
|
|
{
|
||
|
|
textureWidth = 32;
|
||
|
|
textureHeight = 32;
|
||
|
|
|
||
|
|
body = new ModelRenderer(this, 0, 8);
|
||
|
|
body.addBox(-2F, 0F, -2F, 4, 6, 4);
|
||
|
|
body.setRotationPoint(0F, 0F, 0F);
|
||
|
|
setRotation(body, 0, 0.7853982F, 0);
|
||
|
|
top = new ModelRendererTurbo(this, 0, 0, 32, 32);
|
||
|
|
top.addCone(0, 0, 0, 2.8F, 4, 4, 0, ModelRendererTurbo.MR_BOTTOM, 4, 8);
|
||
|
|
top.setRotationPoint(0F, -4F, 0F);
|
||
|
|
setRotation(top, 0F, 0F, 0F);
|
||
|
|
bottom = new ModelRendererTurbo(this, 0, 18, 32, 32);
|
||
|
|
top.addCone(0, 10, 0, 2.8F, 4, 4, 0, ModelRendererTurbo.MR_TOP, 4, 8);
|
||
|
|
bottom.setRotationPoint(0F, 6F, 0F);
|
||
|
|
//setRotation(bottom, 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, entity);
|
||
|
|
body.render(f5);
|
||
|
|
top.render(f5);
|
||
|
|
bottom.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, Entity entity)
|
||
|
|
{
|
||
|
|
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||
|
|
}*/
|
||
|
|
}
|