texture change

This commit is contained in:
StevenRS11
2013-05-29 21:05:59 -04:00
parent 53ad4fe53a
commit 68c6ea8de5
42 changed files with 28 additions and 1 deletions

View File

@@ -233,7 +233,6 @@ public class dimHelper extends DimensionManager
{
oldWorld.getChunkFromChunkCoords(entX, entZ).removeEntity(entity);
oldWorld.getChunkFromChunkCoords(entX, entZ).isModified = true;
}

View File

@@ -31,22 +31,30 @@ public class MobObelisk extends EntityFlying implements IMob
int aggro = 0;
byte textureState = 0;
boolean hasJumped= false;
float scaleFactor = 0;
int destX=0;
int destY=0;
int destZ=0;
public MobObelisk(World par1World)
{
super(par1World);
this.texture="/mods/DimensionalDoors/textures/mobs/Monolith0.png";
this.setSize(2F, 8.0F);
this.noClip=true;
this.scaleFactor= (float) (rand.nextDouble()+1);
// TODO Auto-generated constructor stub
}
@Override
public boolean canDespawn()
{
return false;
}
@Override
public int getMaxHealth()
@@ -60,6 +68,11 @@ public class MobObelisk extends EntityFlying implements IMob
return false;
}
public float getRenderSizeModifier()
{
return this.scaleFactor;
}
public void setEntityPosition(Entity entity, double x, double y, double z)
{
entity.lastTickPosX = entity.prevPosX = entity.posX = x;
@@ -394,6 +407,7 @@ public class MobObelisk extends EntityFlying implements IMob
par1NBTTagCompound.setInteger("aggro", this.aggro);
par1NBTTagCompound.setByte("textureState", this.textureState);
par1NBTTagCompound.setBoolean("hasJumped", this.hasJumped);
par1NBTTagCompound.setFloat("scaleFactor", this.scaleFactor);
}
@@ -407,6 +421,8 @@ public class MobObelisk extends EntityFlying implements IMob
this.aggro=par1NBTTagCompound.getInteger("aggro");
this.textureState=par1NBTTagCompound.getByte("textureState");
this.hasJumped=par1NBTTagCompound.getBoolean("hasJumped");
this.scaleFactor=par1NBTTagCompound.getFloat("scaleFactor");
}