mob is coming!!

This commit is contained in:
StevenRS11
2013-05-27 08:10:07 -04:00
parent 5b61f6435d
commit 1233e2a040
31 changed files with 260 additions and 78 deletions

View File

@@ -1,4 +1,7 @@
package StevenDimDoors.mod_pocketDimClient;
import java.io.File;
import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.client.registry.RenderingRegistry;
import net.minecraft.src.ModLoader;
@@ -20,7 +23,7 @@ public class ClientProxy extends CommonProxy
//MinecraftForgeClient.preloadTexture(RIFT2_PNG);
RenderingRegistry.registerEntityRenderingHandler(MobObelisk.class, new RenderMobObelisk(.5F));
RenderingRegistry.registerEntityRenderingHandler(MobObelisk.class, new RenderMobObelisk(.5F));

View File

@@ -34,30 +34,26 @@ public class ModelMobObelisk extends ModelBase
this.wholemonolith.rotationPointY=16;
this.wholemonolith.rotationPointX=16;
this.wholemonolith.rotationPointZ=4;
}
@Override
public void render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7)
{
super.render(par1Entity, par2, par3, par4, par5, par4, par7);
setRotationAngles(par2, par3, par4, par5, par6,par7, par1Entity);
super.render(par1Entity, 0, 0, 0, 0, 0, 0);
this.setRotationAngles(0, 0, 0, 0, 0,0, par1Entity);
wholemonolith.render(par7);
}
//@Override
private void setRotation(ModelRenderer model, float x, float y, float z)
{
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}
@Override
public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity)
{
super.setRotationAngles( par1, par2, par3, par4, par5, par6, par7Entity);
super.setRotationAngles( 0, 0, 0, 0, 0, 0, par7Entity);
}
}

View File

@@ -16,23 +16,9 @@ protected ModelMobObelisk obeliskModel;
{
super(new ModelMobObelisk(), f);
this.obeliskModel = (ModelMobObelisk)this.mainModel;
}
public void renderMobObelisk(MobObelisk mobObelisk, double d, double d1, double d2,
float f, float f1)
{
super.doRenderLiving( mobObelisk, d, d1, d2, f, f1);
}
public void doRenderLiving(EntityLiving entityliving, double d, double d1, double d2,
float f, float f1)
{
renderMobObelisk((MobObelisk)entityliving, d, d1, d2, f, f1);
}
public void doRender(Entity entity, double d, double d1, double d2,
float f, float f1)
{
renderMobObelisk((MobObelisk)entity, d, d1, d2, f, f1);
}
}