2013-05-21 20:49:14 +02:00
|
|
|
// Date: 2/4/2013 6:55:29 PM
|
|
|
|
// Template version 1.1
|
|
|
|
// Java generated by Techne
|
|
|
|
// Keep in mind that you still need to fill in some blanks
|
|
|
|
// - ZeuX
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package StevenDimDoors.mod_pocketDimClient;
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-30 03:05:59 +02:00
|
|
|
import java.util.Random;
|
|
|
|
|
|
|
|
import org.lwjgl.opengl.GL11;
|
|
|
|
|
|
|
|
import StevenDimDoors.mod_pocketDim.ticking.MobObelisk;
|
|
|
|
|
2013-05-21 20:49:14 +02:00
|
|
|
import net.minecraft.client.model.ModelBase;
|
|
|
|
import net.minecraft.client.model.ModelRenderer;
|
|
|
|
import net.minecraft.entity.Entity;
|
|
|
|
|
|
|
|
public class ModelMobObelisk extends ModelBase
|
|
|
|
{
|
|
|
|
//fields
|
|
|
|
ModelRenderer wholemonolith;
|
2013-05-30 03:05:59 +02:00
|
|
|
Random rand = new Random();
|
|
|
|
|
2013-05-21 20:49:14 +02:00
|
|
|
|
|
|
|
public ModelMobObelisk()
|
|
|
|
{
|
|
|
|
textureWidth = 256;
|
|
|
|
textureHeight = 256;
|
|
|
|
|
2013-05-30 03:05:59 +02:00
|
|
|
|
2013-05-28 00:58:20 +02:00
|
|
|
|
2013-05-27 02:01:44 +02:00
|
|
|
wholemonolith = new ModelRenderer(this, 0, 0);
|
2013-05-28 00:58:20 +02:00
|
|
|
wholemonolith.addBox(-48/2F,-108F/1.3F, -12/2F, 48, 108, 12);
|
2013-05-21 20:49:14 +02:00
|
|
|
wholemonolith.setTextureSize(256, 256);
|
|
|
|
wholemonolith.mirror = true;
|
2013-05-28 00:58:20 +02:00
|
|
|
this.wholemonolith.rotationPointY=0;
|
|
|
|
this.wholemonolith.rotationPointX=0;
|
|
|
|
this.wholemonolith.rotationPointZ=0;
|
2013-05-27 14:10:07 +02:00
|
|
|
|
|
|
|
|
2013-05-21 20:49:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7)
|
|
|
|
{
|
2013-05-27 14:10:07 +02:00
|
|
|
super.render(par1Entity, 0, 0, 0, 0, 0, 0);
|
|
|
|
this.setRotationAngles(0, 0, 0, 0, 0,0, par1Entity);
|
2013-05-30 03:05:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
GL11.glScalef(((MobObelisk) par1Entity).getRenderSizeModifier(), ((MobObelisk) par1Entity).getRenderSizeModifier(), ((MobObelisk) par1Entity).getRenderSizeModifier());
|
2013-05-21 20:49:14 +02:00
|
|
|
wholemonolith.render(par7);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-27 14:10:07 +02:00
|
|
|
|
2013-05-21 20:49:14 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity)
|
|
|
|
{
|
2013-05-27 14:10:07 +02:00
|
|
|
super.setRotationAngles( 0, 0, 0, 0, 0, 0, par7Entity);
|
2013-05-21 20:49:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|