DimDoors/StevenDimDoors/mod_pocketDimClient/ModelMobObelisk.java
2013-05-29 21:05:59 -04:00

72 lines
1.7 KiB
Java

// 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;
import java.util.Random;
import org.lwjgl.opengl.GL11;
import StevenDimDoors.mod_pocketDim.ticking.MobObelisk;
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;
Random rand = new Random();
public ModelMobObelisk()
{
textureWidth = 256;
textureHeight = 256;
wholemonolith = new ModelRenderer(this, 0, 0);
wholemonolith.addBox(-48/2F,-108F/1.3F, -12/2F, 48, 108, 12);
wholemonolith.setTextureSize(256, 256);
wholemonolith.mirror = true;
this.wholemonolith.rotationPointY=0;
this.wholemonolith.rotationPointX=0;
this.wholemonolith.rotationPointZ=0;
}
@Override
public void render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7)
{
super.render(par1Entity, 0, 0, 0, 0, 0, 0);
this.setRotationAngles(0, 0, 0, 0, 0,0, par1Entity);
GL11.glScalef(((MobObelisk) par1Entity).getRenderSizeModifier(), ((MobObelisk) par1Entity).getRenderSizeModifier(), ((MobObelisk) par1Entity).getRenderSizeModifier());
wholemonolith.render(par7);
}
@Override
public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity)
{
super.setRotationAngles( 0, 0, 0, 0, 0, 0, par7Entity);
}
}