fucked up renderer

stripelands
SolDev69 2 years ago
parent bc8c59740f
commit f4170f030f

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -64,11 +64,11 @@ public class ActiveRenderInfo
int var4 = par1 ? 1 : 0; int var4 = par1 ? 1 : 0;
float var5 = par0EntityPlayer.rotationPitch; float var5 = par0EntityPlayer.rotationPitch;
float var6 = par0EntityPlayer.rotationYaw; float var6 = par0EntityPlayer.rotationYaw;
rotationX = MathHelper.cos(var6 * (float)Math.PI / 180.0F) * (float)(1 - var4 * 2); rotationX = MathHelper.cos(var6 * (float)(float)Math.PI / 180.0F) * (float)(1 - var4 * 2);
rotationZ = MathHelper.sin(var6 * (float)Math.PI / 180.0F) * (float)(1 - var4 * 2); rotationZ = MathHelper.sin(var6 * (float)(float)Math.PI / 180.0F) * (float)(1 - var4 * 2);
rotationYZ = -rotationZ * MathHelper.sin(var5 * (float)Math.PI / 180.0F) * (float)(1 - var4 * 2); rotationYZ = -rotationZ * MathHelper.sin(var5 * (float)(float)Math.PI / 180.0F) * (float)(1 - var4 * 2);
rotationXY = rotationX * MathHelper.sin(var5 * (float)Math.PI / 180.0F) * (float)(1 - var4 * 2); rotationXY = rotationX * MathHelper.sin(var5 * (float)(float)Math.PI / 180.0F) * (float)(1 - var4 * 2);
rotationXZ = MathHelper.cos(var5 * (float)Math.PI / 180.0F); rotationXZ = MathHelper.cos(var5 * (float)(float)Math.PI / 180.0F);
} }
/** /**
@ -77,11 +77,11 @@ public class ActiveRenderInfo
public static Vec3 projectViewFromEntity(EntityLiving par0EntityLiving, double par1) public static Vec3 projectViewFromEntity(EntityLiving par0EntityLiving, double par1)
{ {
double var3 = par0EntityLiving.prevPosX + (par0EntityLiving.posX - par0EntityLiving.prevPosX) * par1; double var3 = par0EntityLiving.prevPosX + (par0EntityLiving.posX - par0EntityLiving.prevPosX) * par1;
double var5 = par0EntityLiving.prevPosY + (par0EntityLiving.posY - par0EntityLiving.prevPosY) * par1 + (double)par0EntityLiving.getEyeHeight(); double var5 = par0EntityLiving.prevPosY + (par0EntityLiving.posY - par0EntityLiving.prevPosY) * par1 + (float)par0EntityLiving.getEyeHeight();
double var7 = par0EntityLiving.prevPosZ + (par0EntityLiving.posZ - par0EntityLiving.prevPosZ) * par1; double var7 = par0EntityLiving.prevPosZ + (par0EntityLiving.posZ - par0EntityLiving.prevPosZ) * par1;
double var9 = var3 + (double)(objectX * 1.0F); double var9 = var3 + (float)(objectX * 1.0F);
double var11 = var5 + (double)(objectY * 1.0F); double var11 = var5 + (float)(objectY * 1.0F);
double var13 = var7 + (double)(objectZ * 1.0F); double var13 = var7 + (float)(objectZ * 1.0F);
return Vec3.getVec3Pool().getVecFromPool(var9, var11, var13); return Vec3.getVec3Pool().getVecFromPool(var9, var11, var13);
} }
@ -91,7 +91,7 @@ public class ActiveRenderInfo
*/ */
public static int getBlockIdAtEntityViewpoint(World par0World, EntityLiving par1EntityLiving, float par2) public static int getBlockIdAtEntityViewpoint(World par0World, EntityLiving par1EntityLiving, float par2)
{ {
Vec3 var3 = projectViewFromEntity(par1EntityLiving, (double)par2); Vec3 var3 = projectViewFromEntity(par1EntityLiving, (float)par2);
ChunkPosition var4 = new ChunkPosition(var3); ChunkPosition var4 = new ChunkPosition(var3);
int var5 = par0World.getBlockId(var4.x, var4.y, var4.z); int var5 = par0World.getBlockId(var4.x, var4.y, var4.z);
@ -100,7 +100,7 @@ public class ActiveRenderInfo
float var6 = BlockFluid.getFluidHeightPercent(par0World.getBlockMetadata(var4.x, var4.y, var4.z)) - 0.11111111F; float var6 = BlockFluid.getFluidHeightPercent(par0World.getBlockMetadata(var4.x, var4.y, var4.z)) - 0.11111111F;
float var7 = (float)(var4.y + 1) - var6; float var7 = (float)(var4.y + 1) - var6;
if (var3.yCoord >= (double)var7) if (var3.yCoord >= (float)var7)
{ {
var5 = par0World.getBlockId(var4.x, var4.y + 1, var4.z); var5 = par0World.getBlockId(var4.x, var4.y + 1, var4.z);
} }

@ -174,7 +174,7 @@ public class AnvilSaveConverter extends SaveFormatOld
File var8 = (File)var7.next(); File var8 = (File)var7.next();
this.convertChunks(par1File, var8, par3WorldChunkManager, par4, par5, par6IProgressUpdate); this.convertChunks(par1File, var8, par3WorldChunkManager, par4, par5, par6IProgressUpdate);
++par4; ++par4;
int var9 = (int)Math.round(100.0D * (double)par4 / (double)par5); int var9 = (int)Math.round(100.0D * (float)par4 / (float)par5);
par6IProgressUpdate.setLoadingProgress(var9); par6IProgressUpdate.setLoadingProgress(var9);
} }
} }
@ -221,8 +221,8 @@ public class AnvilSaveConverter extends SaveFormatOld
} }
} }
var11 = (int)Math.round(100.0D * (double)(par4 * 1024) / (double)(par5 * 1024)); var11 = (int)Math.round(100.0D * (float)(par4 * 1024) / (float)(par5 * 1024));
int var20 = (int)Math.round(100.0D * (double)((var10 + 1) * 32 + par4 * 1024) / (double)(par5 * 1024)); int var20 = (int)Math.round(100.0D * (float)((var10 + 1) * 32 + par4 * 1024) / (float)(par5 * 1024));
if (var20 > var11) if (var20 > var11)
{ {

@ -330,8 +330,8 @@ public abstract class BiomeGenBase
*/ */
public int getBiomeGrassColor() public int getBiomeGrassColor()
{ {
double var1 = (double)MathHelper.clamp_float(this.getFloatTemperature(), 0.0F, 1.0F); double var1 = (float)MathHelper.clamp_float(this.getFloatTemperature(), 0.0F, 1.0F);
double var3 = (double)MathHelper.clamp_float(this.getFloatRainfall(), 0.0F, 1.0F); double var3 = (float)MathHelper.clamp_float(this.getFloatRainfall(), 0.0F, 1.0F);
return ColorizerGrass.getGrassColor(var1, var3); return ColorizerGrass.getGrassColor(var1, var3);
} }
@ -340,8 +340,8 @@ public abstract class BiomeGenBase
*/ */
public int getBiomeFoliageColor() public int getBiomeFoliageColor()
{ {
double var1 = (double)MathHelper.clamp_float(this.getFloatTemperature(), 0.0F, 1.0F); double var1 = (float)MathHelper.clamp_float(this.getFloatTemperature(), 0.0F, 1.0F);
double var3 = (double)MathHelper.clamp_float(this.getFloatRainfall(), 0.0F, 1.0F); double var3 = (float)MathHelper.clamp_float(this.getFloatRainfall(), 0.0F, 1.0F);
return ColorizerFoliage.getFoliageColor(var1, var3); return ColorizerFoliage.getFoliageColor(var1, var3);
} }
} }

@ -30,8 +30,8 @@ public class BiomeGenSwamp extends BiomeGenBase
*/ */
public int getBiomeGrassColor() public int getBiomeGrassColor()
{ {
double var1 = (double)this.getFloatTemperature(); double var1 = (float)this.getFloatTemperature();
double var3 = (double)this.getFloatRainfall(); double var3 = (float)this.getFloatRainfall();
return ((ColorizerGrass.getGrassColor(var1, var3) & 16711422) + 5115470) / 2; return ((ColorizerGrass.getGrassColor(var1, var3) & 16711422) + 5115470) / 2;
} }
@ -40,8 +40,8 @@ public class BiomeGenSwamp extends BiomeGenBase
*/ */
public int getBiomeFoliageColor() public int getBiomeFoliageColor()
{ {
double var1 = (double)this.getFloatTemperature(); double var1 = (float)this.getFloatTemperature();
double var3 = (double)this.getFloatRainfall(); double var3 = (float)this.getFloatRainfall();
return ((ColorizerFoliage.getFoliageColor(var1, var3) & 16711422) + 5115470) / 2; return ((ColorizerFoliage.getFoliageColor(var1, var3) & 16711422) + 5115470) / 2;
} }
} }

@ -226,22 +226,22 @@ public class Block
protected boolean isBlockContainer; protected boolean isBlockContainer;
/** minimum X for the block bounds (local coordinates) */ /** minimum X for the block bounds (local coordinates) */
public double minX; public float minX;
/** minimum Y for the block bounds (local coordinates) */ /** minimum Y for the block bounds (local coordinates) */
public double minY; public float minY;
/** minimum Z for the block bounds (local coordinates) */ /** minimum Z for the block bounds (local coordinates) */
public double minZ; public float minZ;
/** maximum X for the block bounds (local coordinates) */ /** maximum X for the block bounds (local coordinates) */
public double maxX; public float maxX;
/** maximum Y for the block bounds (local coordinates) */ /** maximum Y for the block bounds (local coordinates) */
public double maxY; public float maxY;
/** maximum Z for the block bounds (local coordinates) */ /** maximum Z for the block bounds (local coordinates) */
public double maxZ; public float maxZ;
/** Sound of stepping on the block */ /** Sound of stepping on the block */
public StepSound stepSound; public StepSound stepSound;
@ -426,12 +426,12 @@ public class Block
*/ */
public void setBlockBounds(float par1, float par2, float par3, float par4, float par5, float par6) public void setBlockBounds(float par1, float par2, float par3, float par4, float par5, float par6)
{ {
this.minX = (double)par1; this.minX = (float)par1;
this.minY = (double)par2; this.minY = (float)par2;
this.minZ = (double)par3; this.minZ = (float)par3;
this.maxX = (double)par4; this.maxX = (float)par4;
this.maxY = (double)par5; this.maxY = (float)par5;
this.maxZ = (double)par6; this.maxZ = (float)par6;
} }
/** /**
@ -499,7 +499,7 @@ public class Block
{ {
double x = par2.doubleValue(), double x = par2.doubleValue(),
z = par4.doubleValue(); z = par4.doubleValue();
return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)x + this.minX, (double)par3 + this.minY, (double)z + this.minZ, (double)x + this.maxX, (double)par3 + this.maxY, (double)z + this.maxZ); return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)x + this.minX, (float)par3 + this.minY, (float)z + this.minZ, (float)x + this.maxX, (float)par3 + this.maxY, (float)z + this.maxZ);
} }
/** /**
@ -523,7 +523,7 @@ public class Block
{ {
double x = par2.doubleValue(), double x = par2.doubleValue(),
z = par4.doubleValue(); z = par4.doubleValue();
return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)x + this.minX, (double)par3 + this.minY, (double)z + this.minZ, (double)x + this.maxX, (double)par3 + this.maxY, (double)z + this.maxZ); return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)x + this.minX, (float)par3 + this.minY, (float)z + this.minZ, (float)x + this.maxX, (float)par3 + this.maxY, (float)z + this.maxZ);
} }
/** /**
@ -656,10 +656,10 @@ public class Block
if (!par1World.isRemote) if (!par1World.isRemote)
{ {
float var6 = 0.7F; float var6 = 0.7F;
double var7 = (double)(par1World.rand.nextFloat() * var6) + (double)(1.0F - var6) * 0.5D; double var7 = (float)(par1World.rand.nextFloat() * var6) + (float)(1.0F - var6) * 0.5D;
double var9 = (double)(par1World.rand.nextFloat() * var6) + (double)(1.0F - var6) * 0.5D; double var9 = (float)(par1World.rand.nextFloat() * var6) + (float)(1.0F - var6) * 0.5D;
double var11 = (double)(par1World.rand.nextFloat() * var6) + (double)(1.0F - var6) * 0.5D; double var11 = (float)(par1World.rand.nextFloat() * var6) + (float)(1.0F - var6) * 0.5D;
EntityItem var13 = new EntityItem(par1World, (double)par2.doubleValue() + var7, (double)par3 + var9, (double)par4.doubleValue() + var11, par5ItemStack); EntityItem var13 = new EntityItem(par1World, (float)par2.doubleValue() + var7, (float)par3 + var9, (float)par4.doubleValue() + var11, par5ItemStack);
var13.delayBeforeCanPickup = 10; var13.delayBeforeCanPickup = 10;
par1World.spawnEntityInWorld(var13); par1World.spawnEntityInWorld(var13);
} }
@ -676,7 +676,7 @@ public class Block
{ {
int var6 = EntityXPOrb.getXPSplit(par5); int var6 = EntityXPOrb.getXPSplit(par5);
par5 -= var6; par5 -= var6;
par1World.spawnEntityInWorld(new EntityXPOrb(par1World, (double)par2.doubleValue() + 0.5D, (double)par3 + 0.5D, (double)par4.doubleValue() + 0.5D, var6)); par1World.spawnEntityInWorld(new EntityXPOrb(par1World, (float)par2.doubleValue() + 0.5D, (float)par3 + 0.5D, (float)par4.doubleValue() + 0.5D, var6));
} }
} }
} }
@ -705,8 +705,8 @@ public class Block
{ {
double nx = -par2.doubleValue(), nz = -par4.doubleValue(); double nx = -par2.doubleValue(), nz = -par4.doubleValue();
this.setBlockBoundsBasedOnState(par1World, par2, par3, par4); this.setBlockBoundsBasedOnState(par1World, par2, par3, par4);
par5Vec3 = par5Vec3.addVector(nx, (double)(-par3), nz); par5Vec3 = par5Vec3.addVector(nx, (float)(-par3), nz);
par6Vec3 = par6Vec3.addVector(nx, (double)(-par3), nz); par6Vec3 = par6Vec3.addVector(nx, (float)(-par3), nz);
Vec3 var7 = par5Vec3.getIntermediateWithXValue(par6Vec3, this.minX); Vec3 var7 = par5Vec3.getIntermediateWithXValue(par6Vec3, this.minX);
Vec3 var8 = par5Vec3.getIntermediateWithXValue(par6Vec3, this.maxX); Vec3 var8 = par5Vec3.getIntermediateWithXValue(par6Vec3, this.maxX);
Vec3 var9 = par5Vec3.getIntermediateWithYValue(par6Vec3, this.minY); Vec3 var9 = par5Vec3.getIntermediateWithYValue(par6Vec3, this.minY);
@ -814,7 +814,7 @@ public class Block
var14 = 3; var14 = 3;
} }
return new MovingObjectPosition(par2, par3, par4, var14, var13.addVector((double)par2.doubleValue(), (double)par3, (double)par4.doubleValue())); return new MovingObjectPosition(par2, par3, par4, var14, var13.addVector((float)par2.doubleValue(), (float)par3, (float)par4.doubleValue()));
} }
} }

@ -47,9 +47,9 @@ public class BlockBed extends BlockDirectional
if (!par1World.provider.canRespawnHere()) if (!par1World.provider.canRespawnHere())
{ {
double var20 = (double)par2.doubleValue() + 0.5D; double var20 = (float)par2.doubleValue() + 0.5D;
double var21 = (double)par3 + 0.5D; double var21 = (float)par3 + 0.5D;
double var15 = (double)par4.doubleValue() + 0.5D; double var15 = (float)par4.doubleValue() + 0.5D;
par1World.setBlockWithNotify(par2, par3, par4, 0); par1World.setBlockWithNotify(par2, par3, par4, 0);
int var17 = getDirection(var10); int var17 = getDirection(var10);
par2 = par2.add(footBlockToHeadBlockMap[var17][0]); par2 = par2.add(footBlockToHeadBlockMap[var17][0]);
@ -58,12 +58,12 @@ public class BlockBed extends BlockDirectional
if (par1World.getBlockId(par2, par3, par4) == this.blockID) if (par1World.getBlockId(par2, par3, par4) == this.blockID)
{ {
par1World.setBlockWithNotify(par2, par3, par4, 0); par1World.setBlockWithNotify(par2, par3, par4, 0);
var20 = (var20 + (double)par2.doubleValue() + 0.5D) / 2.0D; var20 = (var20 + (float)par2.doubleValue() + 0.5D) / 2.0D;
var21 = (var21 + (double)par3 + 0.5D) / 2.0D; var21 = (var21 + (float)par3 + 0.5D) / 2.0D;
var15 = (var15 + (double)par4.doubleValue() + 0.5D) / 2.0D; var15 = (var15 + (float)par4.doubleValue() + 0.5D) / 2.0D;
} }
par1World.newExplosion((Entity)null, (double)((float)par2.floatValue() + 0.5F), (double)((float)par3 + 0.5F), (double)((float)par4.floatValue() + 0.5F), 5.0F, true); par1World.newExplosion((Entity)null, (float)((float)par2.floatValue() + 0.5F), (float)((float)par3 + 0.5F), (float)((float)par4.floatValue() + 0.5F), 5.0F, true);
return true; return true;
} }
else else

@ -93,9 +93,9 @@ public class BlockBrewingStand extends BlockContainer
*/ */
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random) public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
{ {
double var6 = (double)((float)par2 + 0.4F + par5Random.nextFloat() * 0.2F); double var6 = (float)((float)par2 + 0.4F + par5Random.nextFloat() * 0.2F);
double var8 = (double)((float)par3 + 0.7F + par5Random.nextFloat() * 0.3F); double var8 = (float)((float)par3 + 0.7F + par5Random.nextFloat() * 0.3F);
double var10 = (double)((float)par4 + 0.4F + par5Random.nextFloat() * 0.2F); double var10 = (float)((float)par4 + 0.4F + par5Random.nextFloat() * 0.2F);
par1World.spawnParticle("smoke", var6, var8, var10, 0.0D, 0.0D, 0.0D); par1World.spawnParticle("smoke", var6, var8, var10, 0.0D, 0.0D, 0.0D);
} }
@ -130,11 +130,11 @@ public class BlockBrewingStand extends BlockContainer
} }
var10.stackSize -= var14; var10.stackSize -= var14;
EntityItem var15 = new EntityItem(par1World, (double)((float)par2.floatValue() + var11), (double)((float)par3 + var12), (double)((float)par4.floatValue() + var13), new ItemStack(var10.itemID, var14, var10.getItemDamage())); EntityItem var15 = new EntityItem(par1World, (float)((float)par2.floatValue() + var11), (float)((float)par3 + var12), (float)((float)par4.floatValue() + var13), new ItemStack(var10.itemID, var14, var10.getItemDamage()));
float var16 = 0.05F; float var16 = 0.05F;
var15.motionX = (double)((float)this.rand.nextGaussian() * var16); var15.motionX = (float)((float)this.rand.nextGaussian() * var16);
var15.motionY = (double)((float)this.rand.nextGaussian() * var16 + 0.2F); var15.motionY = (float)((float)this.rand.nextGaussian() * var16 + 0.2F);
var15.motionZ = (double)((float)this.rand.nextGaussian() * var16); var15.motionZ = (float)((float)this.rand.nextGaussian() * var16);
par1World.spawnEntityInWorld(var15); par1World.spawnEntityInWorld(var15);
} }
} }

@ -220,7 +220,7 @@ public class BlockButton extends Block
{ {
par1World.setBlockMetadataWithNotify(par2, par3, par4, var11 + var12); par1World.setBlockMetadataWithNotify(par2, par3, par4, var11 + var12);
par1World.markBlocksDirty(par2, par3, par4, par2, par3, par4); par1World.markBlocksDirty(par2, par3, par4, par2, par3, par4);
par1World.playSoundEffect((double)par2.doubleValue() + 0.5D, (double)par3 + 0.5D, (double)par4.doubleValue() + 0.5D, "random.click", 0.3F, 0.6F); par1World.playSoundEffect((float)par2.doubleValue() + 0.5D, (float)par3 + 0.5D, (float)par4.doubleValue() + 0.5D, "random.click", 0.3F, 0.6F);
par1World.notifyBlocksOfNeighborChange(par2, par3, par4, this.blockID); par1World.notifyBlocksOfNeighborChange(par2, par3, par4, this.blockID);
if (var11 == 1) if (var11 == 1)
@ -354,7 +354,7 @@ public class BlockButton extends Block
par1World.notifyBlocksOfNeighborChange(par2, par3 - 1, par4, this.blockID); par1World.notifyBlocksOfNeighborChange(par2, par3 - 1, par4, this.blockID);
} }
par1World.playSoundEffect((double)par2.doubleValue() + 0.5D, (double)par3 + 0.5D, (double)par4.doubleValue() + 0.5D, "random.click", 0.3F, 0.5F); par1World.playSoundEffect((float)par2.doubleValue() + 0.5D, (float)par3 + 0.5D, (float)par4.doubleValue() + 0.5D, "random.click", 0.3F, 0.5F);
par1World.markBlocksDirty(par2, par3, par4, par2, par3, par4); par1World.markBlocksDirty(par2, par3, par4, par2, par3, par4);
} }
} }

@ -50,7 +50,7 @@ public class BlockCactus extends Block
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, BigInteger par2, int par3, BigInteger par4) public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, BigInteger par2, int par3, BigInteger par4)
{ {
float var5 = 0.0625F; float var5 = 0.0625F;
return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)((float)par2.floatValue() + var5), (double)par3, (double)((float)par4.floatValue() + var5), (double)((float)(par2.floatValue() + 1) - var5), (double)((float)(par3 + 1) - var5), (double)((float)(par4.floatValue() + 1) - var5)); return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)((float)par2.floatValue() + var5), (float)par3, (float)((float)par4.floatValue() + var5), (float)((float)(par2.floatValue() + 1) - var5), (float)((float)(par3 + 1) - var5), (float)((float)(par4.floatValue() + 1) - var5));
} }
/** /**
@ -59,7 +59,7 @@ public class BlockCactus extends Block
public AxisAlignedBB getSelectedBoundingBoxFromPool(World par1World, BigInteger par2, int par3, BigInteger par4) public AxisAlignedBB getSelectedBoundingBoxFromPool(World par1World, BigInteger par2, int par3, BigInteger par4)
{ {
float var5 = 0.0625F; float var5 = 0.0625F;
return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)((float)par2.floatValue() + var5), (double)par3, (double)((float)par4.floatValue() + var5), (double)((float)(par2.floatValue() + 1) - var5), (double)(par3 + 1), (double)((float)(par4.floatValue() + 1) - var5)); return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)((float)par2.floatValue() + var5), (float)par3, (float)((float)par4.floatValue() + var5), (float)((float)(par2.floatValue() + 1) - var5), (float)(par3 + 1), (float)((float)(par4.floatValue() + 1) - var5));
} }
/** /**

@ -43,7 +43,7 @@ public class BlockCake extends Block
float var6 = 0.0625F; float var6 = 0.0625F;
float var7 = (float)(1 + var5 * 2) / 16.0F; float var7 = (float)(1 + var5 * 2) / 16.0F;
float var8 = 0.5F; float var8 = 0.5F;
return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)((float)par2.floatValue() + var7), (double)par3, (double)((float)par4.floatValue() + var6), (double)((float)(par2.floatValue() + 1) - var6), (double)((float)par3 + var8 - var6), (double)((float)(par4.floatValue() + 1) - var6)); return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)((float)par2.floatValue() + var7), (float)par3, (float)((float)par4.floatValue() + var6), (float)((float)(par2.floatValue() + 1) - var6), (float)((float)par3 + var8 - var6), (float)((float)(par4.floatValue() + 1) - var6));
} }
/** /**
@ -55,7 +55,7 @@ public class BlockCake extends Block
float var6 = 0.0625F; float var6 = 0.0625F;
float var7 = (float)(1 + var5 * 2) / 16.0F; float var7 = (float)(1 + var5 * 2) / 16.0F;
float var8 = 0.5F; float var8 = 0.5F;
return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)((float)par2.floatValue() + var7), (double)par3, (double)((float)par4.floatValue() + var6), (double)((float)(par2.floatValue() + 1) - var6), (double)((float)par3 + var8), (double)((float)(par4.floatValue() + 1) - var6)); return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)((float)par2.floatValue() + var7), (float)par3, (float)((float)par4.floatValue() + var6), (float)((float)(par2.floatValue() + 1) - var6), (float)((float)par3 + var8), (float)((float)(par4.floatValue() + 1) - var6));
} }
/** /**

@ -115,7 +115,7 @@ public class BlockCauldron extends Block
if (!par5EntityPlayer.inventory.addItemStackToInventory(var12)) if (!par5EntityPlayer.inventory.addItemStackToInventory(var12))
{ {
par1World.spawnEntityInWorld(new EntityItem(par1World, (double)par2.doubleValue() + 0.5D, (double)par3 + 1.5D, (double)par4.doubleValue() + 0.5D, var12)); par1World.spawnEntityInWorld(new EntityItem(par1World, (float)par2.doubleValue() + 0.5D, (float)par3 + 1.5D, (float)par4.doubleValue() + 0.5D, var12));
} }
else if (par5EntityPlayer instanceof EntityPlayerMP) else if (par5EntityPlayer instanceof EntityPlayerMP)
{ {

@ -83,7 +83,7 @@ public class BlockChest extends BlockContainer
int var8 = par1World.getBlockId(par2.subtract(BigInteger.ONE), par3, par4); int var8 = par1World.getBlockId(par2.subtract(BigInteger.ONE), par3, par4);
int var9 = par1World.getBlockId(par2.add(BigInteger.ONE), par3, par4); int var9 = par1World.getBlockId(par2.add(BigInteger.ONE), par3, par4);
byte var10 = 0; byte var10 = 0;
int var11 = MathHelper.floor_double((double)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3; int var11 = MathHelper.floor_double((float)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
if (var11 == 0) if (var11 == 0)
{ {
@ -351,11 +351,11 @@ public class BlockChest extends BlockContainer
} }
var9.stackSize -= var13; var9.stackSize -= var13;
var14 = new EntityItem(par1World, (double)((float)par2.floatValue() + var10), (double)((float)par3 + var11), (double)((float)par4.floatValue() + var12), new ItemStack(var9.itemID, var13, var9.getItemDamage())); var14 = new EntityItem(par1World, (float)((float)par2.floatValue() + var10), (float)((float)par3 + var11), (float)((float)par4.floatValue() + var12), new ItemStack(var9.itemID, var13, var9.getItemDamage()));
float var15 = 0.05F; float var15 = 0.05F;
var14.motionX = (double)((float)this.random.nextGaussian() * var15); var14.motionX = (float)((float)this.random.nextGaussian() * var15);
var14.motionY = (double)((float)this.random.nextGaussian() * var15 + 0.2F); var14.motionY = (float)((float)this.random.nextGaussian() * var15 + 0.2F);
var14.motionZ = (double)((float)this.random.nextGaussian() * var15); var14.motionZ = (float)((float)this.random.nextGaussian() * var15);
if (var9.hasTagCompound()) if (var9.hasTagCompound())
{ {
@ -452,7 +452,7 @@ public class BlockChest extends BlockContainer
*/ */
private static boolean isOcelotBlockingChest(World par0World, BigInteger par1, int par2, BigInteger par3) private static boolean isOcelotBlockingChest(World par0World, BigInteger par1, int par2, BigInteger par3)
{ {
Iterator var4 = par0World.getEntitiesWithinAABB(EntityOcelot.class, AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)par1.doubleValue(), (double)(par2 + 1), (double)par3.doubleValue(), (double)(par1.add(BigInteger.ONE).doubleValue()), (double)(par2 + 2), (double)(par3.add(BigInteger.ONE).doubleValue()))).iterator(); Iterator var4 = par0World.getEntitiesWithinAABB(EntityOcelot.class, AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)par1.doubleValue(), (float)(par2 + 1), (float)par3.doubleValue(), (float)(par1.add(BigInteger.ONE).doubleValue()), (float)(par2 + 2), (float)(par3.add(BigInteger.ONE).doubleValue()))).iterator();
EntityOcelot var6; EntityOcelot var6;
do do

@ -125,7 +125,7 @@ public class BlockCocoa extends BlockDirectional
*/ */
public void onBlockPlacedBy(World par1World, BigInteger par2, int par3, BigInteger par4, EntityLiving par5EntityLiving) public void onBlockPlacedBy(World par1World, BigInteger par2, int par3, BigInteger par4, EntityLiving par5EntityLiving)
{ {
int var6 = ((MathHelper.floor_double((double)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3) + 0) % 4; int var6 = ((MathHelper.floor_double((float)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3) + 0) % 4;
par1World.setBlockMetadataWithNotify(par2, par3, par4, var6); par1World.setBlockMetadataWithNotify(par2, par3, par4, var6);
} }

@ -154,7 +154,7 @@ public class BlockCrops extends BlockFlower
float var11 = par1World.rand.nextFloat() * var10 + (1.0F - var10) * 0.5F; float var11 = par1World.rand.nextFloat() * var10 + (1.0F - var10) * 0.5F;
float var12 = par1World.rand.nextFloat() * var10 + (1.0F - var10) * 0.5F; float var12 = par1World.rand.nextFloat() * var10 + (1.0F - var10) * 0.5F;
float var13 = par1World.rand.nextFloat() * var10 + (1.0F - var10) * 0.5F; float var13 = par1World.rand.nextFloat() * var10 + (1.0F - var10) * 0.5F;
EntityItem var14 = new EntityItem(par1World, (double)((float)par2.floatValue() + var11), (double)((float)par3 + var12), (double)((float)par4.floatValue() + var13), new ItemStack(Item.seeds)); EntityItem var14 = new EntityItem(par1World, (float)((float)par2.floatValue() + var11), (float)((float)par3 + var12), (float)((float)par4.floatValue() + var13), new ItemStack(Item.seeds));
var14.delayBeforeCanPickup = 10; var14.delayBeforeCanPickup = 10;
par1World.spawnEntityInWorld(var14); par1World.spawnEntityInWorld(var14);
} }

@ -84,7 +84,7 @@ public class BlockDetectorRail extends BlockRail
boolean var6 = (par5 & 8) != 0; boolean var6 = (par5 & 8) != 0;
boolean var7 = false; boolean var7 = false;
float var8 = 0.125F; float var8 = 0.125F;
List var9 = par1World.getEntitiesWithinAABB(EntityMinecart.class, AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)((float)par2.floatValue() + var8), (double)par3, (double)((float)par4.floatValue() + var8), (double)((float)(par2.floatValue() + 1) - var8), (double)((float)(par3 + 1) - var8), (double)((float)(par4.floatValue() + 1) - var8))); List var9 = par1World.getEntitiesWithinAABB(EntityMinecart.class, AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)((float)par2.floatValue() + var8), (float)par3, (float)((float)par4.floatValue() + var8), (float)((float)(par2.floatValue() + 1) - var8), (float)((float)(par3 + 1) - var8), (float)((float)(par4.floatValue() + 1) - var8)));
if (!var9.isEmpty()) if (!var9.isEmpty())
{ {

@ -165,9 +165,9 @@ public class BlockDispenser extends BlockContainer
} }
else else
{ {
double var13 = (double)par2.doubleValue() + (double)var9 * 0.6D + 0.5D; double var13 = (float)par2.doubleValue() + (float)var9 * 0.6D + 0.5D;
double var15 = (double)par3 + 0.5D; double var15 = (float)par3 + 0.5D;
double var17 = (double)par4.doubleValue() + (double)var10 * 0.6D + 0.5D; double var17 = (float)par4.doubleValue() + (float)var10 * 0.6D + 0.5D;
ItemStack var19 = var11.getStackInSlot(var12); ItemStack var19 = var11.getStackInSlot(var12);
int var20 = spawnEntityWithAction(var11, par1World, var19, par5Random, par2, par3, par4, var9, var10, var13, var15, var17); int var20 = spawnEntityWithAction(var11, par1World, var19, par5Random, par2, par3, par4, var9, var10, var13, var15, var17);
@ -228,7 +228,7 @@ public class BlockDispenser extends BlockContainer
*/ */
public void onBlockPlacedBy(World par1World, BigInteger par2, int par3, BigInteger par4, EntityLiving par5EntityLiving) public void onBlockPlacedBy(World par1World, BigInteger par2, int par3, BigInteger par4, EntityLiving par5EntityLiving)
{ {
int var6 = MathHelper.floor_double((double)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3; int var6 = MathHelper.floor_double((float)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
if (var6 == 0) if (var6 == 0)
{ {
@ -280,7 +280,7 @@ public class BlockDispenser extends BlockContainer
} }
var9.stackSize -= var13; var9.stackSize -= var13;
EntityItem var14 = new EntityItem(par1World, (double)((float)par2.floatValue() + var10), (double)((float)par3 + var11), (double)((float)par4.floatValue() + var12), new ItemStack(var9.itemID, var13, var9.getItemDamage())); EntityItem var14 = new EntityItem(par1World, (float)((float)par2.floatValue() + var10), (float)((float)par3 + var11), (float)((float)par4.floatValue() + var12), new ItemStack(var9.itemID, var13, var9.getItemDamage()));
if (var9.hasTagCompound()) if (var9.hasTagCompound())
{ {
@ -288,9 +288,9 @@ public class BlockDispenser extends BlockContainer
} }
float var15 = 0.05F; float var15 = 0.05F;
var14.motionX = (double)((float)this.random.nextGaussian() * var15); var14.motionX = (float)((float)this.random.nextGaussian() * var15);
var14.motionY = (double)((float)this.random.nextGaussian() * var15 + 0.2F); var14.motionY = (float)((float)this.random.nextGaussian() * var15 + 0.2F);
var14.motionZ = (double)((float)this.random.nextGaussian() * var15); var14.motionZ = (float)((float)this.random.nextGaussian() * var15);
par1World.spawnEntityInWorld(var14); par1World.spawnEntityInWorld(var14);
} }
} }
@ -304,12 +304,12 @@ public class BlockDispenser extends BlockContainer
{ {
EntityItem var12 = new EntityItem(par0World, par6, par8 - 0.3D, par10, par1ItemStack); EntityItem var12 = new EntityItem(par0World, par6, par8 - 0.3D, par10, par1ItemStack);
double var13 = par2Random.nextDouble() * 0.1D + 0.2D; double var13 = par2Random.nextDouble() * 0.1D + 0.2D;
var12.motionX = (double)par4 * var13; var12.motionX = (float)par4 * var13;
var12.motionY = 0.20000000298023224D; var12.motionY = 0.20000000298023224D;
var12.motionZ = (double)par5 * var13; var12.motionZ = (float)par5 * var13;
var12.motionX += par2Random.nextGaussian() * 0.007499999832361937D * (double)par3; var12.motionX += par2Random.nextGaussian() * 0.007499999832361937D * (float)par3;
var12.motionY += par2Random.nextGaussian() * 0.007499999832361937D * (double)par3; var12.motionY += par2Random.nextGaussian() * 0.007499999832361937D * (float)par3;
var12.motionZ += par2Random.nextGaussian() * 0.007499999832361937D * (double)par3; var12.motionZ += par2Random.nextGaussian() * 0.007499999832361937D * (float)par3;
par0World.spawnEntityInWorld(var12); par0World.spawnEntityInWorld(var12);
} }
@ -324,7 +324,7 @@ public class BlockDispenser extends BlockContainer
if (par2ItemStack.itemID == Item.arrow.shiftedIndex) if (par2ItemStack.itemID == Item.arrow.shiftedIndex)
{ {
EntityArrow var29 = new EntityArrow(par1World, par9, par11, par13); EntityArrow var29 = new EntityArrow(par1World, par9, par11, par13);
var29.setArrowHeading((double)par7, 0.10000000149011612D, (double)par8, var15, (float)var16); var29.setArrowHeading((float)par7, 0.10000000149011612D, (float)par8, var15, (float)var16);
var29.canBePickedUp = 1; var29.canBePickedUp = 1;
par1World.spawnEntityInWorld(var29); par1World.spawnEntityInWorld(var29);
par1World.playAuxSFX(1002, par4, par5, par6, 0); par1World.playAuxSFX(1002, par4, par5, par6, 0);
@ -333,7 +333,7 @@ public class BlockDispenser extends BlockContainer
else if (par2ItemStack.itemID == Item.egg.shiftedIndex) else if (par2ItemStack.itemID == Item.egg.shiftedIndex)
{ {
EntityEgg var28 = new EntityEgg(par1World, par9, par11, par13); EntityEgg var28 = new EntityEgg(par1World, par9, par11, par13);
var28.setThrowableHeading((double)par7, 0.10000000149011612D, (double)par8, var15, (float)var16); var28.setThrowableHeading((float)par7, 0.10000000149011612D, (float)par8, var15, (float)var16);
par1World.spawnEntityInWorld(var28); par1World.spawnEntityInWorld(var28);
par1World.playAuxSFX(1002, par4, par5, par6, 0); par1World.playAuxSFX(1002, par4, par5, par6, 0);
return 1; return 1;
@ -341,7 +341,7 @@ public class BlockDispenser extends BlockContainer
else if (par2ItemStack.itemID == Item.snowball.shiftedIndex) else if (par2ItemStack.itemID == Item.snowball.shiftedIndex)
{ {
EntitySnowball var27 = new EntitySnowball(par1World, par9, par11, par13); EntitySnowball var27 = new EntitySnowball(par1World, par9, par11, par13);
var27.setThrowableHeading((double)par7, 0.10000000149011612D, (double)par8, var15, (float)var16); var27.setThrowableHeading((float)par7, 0.10000000149011612D, (float)par8, var15, (float)var16);
par1World.spawnEntityInWorld(var27); par1World.spawnEntityInWorld(var27);
par1World.playAuxSFX(1002, par4, par5, par6, 0); par1World.playAuxSFX(1002, par4, par5, par6, 0);
return 1; return 1;
@ -349,7 +349,7 @@ public class BlockDispenser extends BlockContainer
else if (par2ItemStack.itemID == Item.potion.shiftedIndex && ItemPotion.isSplash(par2ItemStack.getItemDamage())) else if (par2ItemStack.itemID == Item.potion.shiftedIndex && ItemPotion.isSplash(par2ItemStack.getItemDamage()))
{ {
EntityPotion var26 = new EntityPotion(par1World, par9, par11, par13, par2ItemStack.getItemDamage()); EntityPotion var26 = new EntityPotion(par1World, par9, par11, par13, par2ItemStack.getItemDamage());
var26.setThrowableHeading((double)par7, 0.10000000149011612D, (double)par8, var15 * 1.25F, (float)var16 * 0.5F); var26.setThrowableHeading((float)par7, 0.10000000149011612D, (float)par8, var15 * 1.25F, (float)var16 * 0.5F);
par1World.spawnEntityInWorld(var26); par1World.spawnEntityInWorld(var26);
par1World.playAuxSFX(1002, par4, par5, par6, 0); par1World.playAuxSFX(1002, par4, par5, par6, 0);
return 1; return 1;
@ -357,20 +357,20 @@ public class BlockDispenser extends BlockContainer
else if (par2ItemStack.itemID == Item.expBottle.shiftedIndex) else if (par2ItemStack.itemID == Item.expBottle.shiftedIndex)
{ {
EntityExpBottle var25 = new EntityExpBottle(par1World, par9, par11, par13); EntityExpBottle var25 = new EntityExpBottle(par1World, par9, par11, par13);
var25.setThrowableHeading((double)par7, 0.10000000149011612D, (double)par8, var15 * 1.25F, (float)var16 * 0.5F); var25.setThrowableHeading((float)par7, 0.10000000149011612D, (float)par8, var15 * 1.25F, (float)var16 * 0.5F);
par1World.spawnEntityInWorld(var25); par1World.spawnEntityInWorld(var25);
par1World.playAuxSFX(1002, par4, par5, par6, 0); par1World.playAuxSFX(1002, par4, par5, par6, 0);
return 1; return 1;
} }
else if (par2ItemStack.itemID == Item.monsterPlacer.shiftedIndex) else if (par2ItemStack.itemID == Item.monsterPlacer.shiftedIndex)
{ {
ItemMonsterPlacer.spawnCreature(par1World, par2ItemStack.getItemDamage(), par9 + (double)par7 * 0.3D, par11 - 0.3D, par13 + (double)par8 * 0.3D); ItemMonsterPlacer.spawnCreature(par1World, par2ItemStack.getItemDamage(), par9 + (float)par7 * 0.3D, par11 - 0.3D, par13 + (float)par8 * 0.3D);
par1World.playAuxSFX(1002, par4, par5, par6, 0); par1World.playAuxSFX(1002, par4, par5, par6, 0);
return 1; return 1;
} }
else if (par2ItemStack.itemID == Item.fireballCharge.shiftedIndex) else if (par2ItemStack.itemID == Item.fireballCharge.shiftedIndex)
{ {
EntitySmallFireball var24 = new EntitySmallFireball(par1World, par9 + (double)par7 * 0.3D, par11, par13 + (double)par8 * 0.3D, (double)par7 + par3Random.nextGaussian() * 0.05D, par3Random.nextGaussian() * 0.05D, (double)par8 + par3Random.nextGaussian() * 0.05D); EntitySmallFireball var24 = new EntitySmallFireball(par1World, par9 + (float)par7 * 0.3D, par11, par13 + (float)par8 * 0.3D, (float)par7 + par3Random.nextGaussian() * 0.05D, par3Random.nextGaussian() * 0.05D, (float)par8 + par3Random.nextGaussian() * 0.05D);
par1World.spawnEntityInWorld(var24); par1World.spawnEntityInWorld(var24);
par1World.playAuxSFX(1009, par4, par5, par6, 0); par1World.playAuxSFX(1009, par4, par5, par6, 0);
return 1; return 1;
@ -425,12 +425,12 @@ public class BlockDispenser extends BlockContainer
{ {
BigInteger var23 = par4.add(BigInteger.valueOf(par7)); BigInteger var23 = par4.add(BigInteger.valueOf(par7));
BigInteger var18 = par6.add(BigInteger.valueOf(par8)); BigInteger var18 = par6.add(BigInteger.valueOf(par8));
par9 = (double)par4.doubleValue() + (par7 < 0 ? (double)par7 * 0.8D : (double)((float)par7 * 1.8F)) + (double)((float)Math.abs(par8) * 0.5F); par9 = (float)par4.doubleValue() + (par7 < 0 ? (float)par7 * 0.8D : (float)((float)par7 * 1.8F)) + (float)((float)Math.abs(par8) * 0.5F);
par13 = (double)par6.doubleValue() + (par8 < 0 ? (double)par8 * 0.8D : (double)((float)par8 * 1.8F)) + (double)((float)Math.abs(par7) * 0.5F); par13 = (float)par6.doubleValue() + (par8 < 0 ? (float)par8 * 0.8D : (float)((float)par8 * 1.8F)) + (float)((float)Math.abs(par7) * 0.5F);
if (BlockRail.isRailBlockAt(par1World, var23, par5, var18)) if (BlockRail.isRailBlockAt(par1World, var23, par5, var18))
{ {
par11 = (double)((float)par5 + 0.5F); par11 = (float)((float)par5 + 0.5F);
} }
else else
{ {
@ -439,7 +439,7 @@ public class BlockDispenser extends BlockContainer
return 0; return 0;
} }
par11 = (double)((float)par5 - 0.5F); par11 = (float)((float)par5 - 0.5F);
} }
EntityMinecart var22 = new EntityMinecart(par1World, par9, par11, par13, ((ItemMinecart)par2ItemStack.getItem()).minecartType); EntityMinecart var22 = new EntityMinecart(par1World, par9, par11, par13, ((ItemMinecart)par2ItemStack.getItem()).minecartType);
@ -451,12 +451,12 @@ public class BlockDispenser extends BlockContainer
{ {
BigInteger var23 = par4.add(BigInteger.valueOf(par7)); BigInteger var23 = par4.add(BigInteger.valueOf(par7));
BigInteger var18 = par6.add(BigInteger.valueOf(par8)); BigInteger var18 = par6.add(BigInteger.valueOf(par8));
par9 = (double)par4.doubleValue() + (par7 < 0 ? (double)par7 * 0.8D : (double)((float)par7 * 1.8F)) + (double)((float)Math.abs(par8) * 0.5F); par9 = (float)par4.doubleValue() + (par7 < 0 ? (float)par7 * 0.8D : (float)((float)par7 * 1.8F)) + (float)((float)Math.abs(par8) * 0.5F);
par13 = (double)par6.doubleValue() + (par8 < 0 ? (double)par8 * 0.8D : (double)((float)par8 * 1.8F)) + (double)((float)Math.abs(par7) * 0.5F); par13 = (float)par6.doubleValue() + (par8 < 0 ? (float)par8 * 0.8D : (float)((float)par8 * 1.8F)) + (float)((float)Math.abs(par7) * 0.5F);
if (par1World.getBlockMaterial(var23, par5, var18) == Material.water) if (par1World.getBlockMaterial(var23, par5, var18) == Material.water)
{ {
par11 = (double)((float)par5 + 1.0F); par11 = (float)((float)par5 + 1.0F);
} }
else else
{ {
@ -465,7 +465,7 @@ public class BlockDispenser extends BlockContainer
return 0; return 0;
} }
par11 = (double)par5; par11 = (float)par5;
} }
EntityBoat var21 = new EntityBoat(par1World, par9, par11, par13); EntityBoat var21 = new EntityBoat(par1World, par9, par11, par13);
@ -482,7 +482,7 @@ public class BlockDispenser extends BlockContainer
{ {
ItemBucket var17 = (ItemBucket)par2ItemStack.getItem(); ItemBucket var17 = (ItemBucket)par2ItemStack.getItem();
if (var17.func_77875_a(par1World, (double)par4.doubleValue(), (double)par5, (double)par6.doubleValue(), par4.add(BigInteger.valueOf(par7)), par5, par6.add(BigInteger.valueOf(par8)))) if (var17.func_77875_a(par1World, (float)par4.doubleValue(), (float)par5, (float)par6.doubleValue(), par4.add(BigInteger.valueOf(par7)), par5, par6.add(BigInteger.valueOf(par8))))
{ {
par2ItemStack.itemID = Item.bucketEmpty.shiftedIndex; par2ItemStack.itemID = Item.bucketEmpty.shiftedIndex;
par2ItemStack.stackSize = 1; par2ItemStack.stackSize = 1;

@ -46,7 +46,7 @@ public class BlockDragonEgg extends Block
if (!BlockSand.fallInstantly/* && par1World.checkChunksExist(par2 - var5, par3 - var5, par4 - var5, par2 + var5, par3 + var5, par4 + var5) */) if (!BlockSand.fallInstantly/* && par1World.checkChunksExist(par2 - var5, par3 - var5, par4 - var5, par2 + var5, par3 + var5, par4 + var5) */)
{ {
EntityFallingSand var6 = new EntityFallingSand(par1World, (double)((float)par2.floatValue() + 0.5F), (double)((float)par3 + 0.5F), (double)((float)par4.floatValue() + 0.5F), this.blockID); EntityFallingSand var6 = new EntityFallingSand(par1World, (float)((float)par2.floatValue() + 0.5F), (float)((float)par3 + 0.5F), (float)((float)par4.floatValue() + 0.5F), this.blockID);
par1World.spawnEntityInWorld(var6); par1World.spawnEntityInWorld(var6);
} }
else else
@ -110,10 +110,10 @@ public class BlockDragonEgg extends Block
float var13 = (par1World.rand.nextFloat() - 0.5F) * 0.2F; float var13 = (par1World.rand.nextFloat() - 0.5F) * 0.2F;
float var14 = (par1World.rand.nextFloat() - 0.5F) * 0.2F; float var14 = (par1World.rand.nextFloat() - 0.5F) * 0.2F;
float var15 = (par1World.rand.nextFloat() - 0.5F) * 0.2F; float var15 = (par1World.rand.nextFloat() - 0.5F) * 0.2F;
double var16 = (double)var6.doubleValue() + (double)(par2.subtract(var6)).doubleValue() * var11 + (par1World.rand.nextDouble() - 0.5D) * 1.0D + 0.5D; double var16 = (float)var6.doubleValue() + (float)(par2.subtract(var6)).doubleValue() * var11 + (par1World.rand.nextDouble() - 0.5D) * 1.0D + 0.5D;
double var18 = (double)var7 + (double)(par3 - var7) * var11 + par1World.rand.nextDouble() * 1.0D - 0.5D; double var18 = (float)var7 + (float)(par3 - var7) * var11 + par1World.rand.nextDouble() * 1.0D - 0.5D;
double var20 = (double)var8.doubleValue() + (double)(par4.subtract(var8)).doubleValue() * var11 + (par1World.rand.nextDouble() - 0.5D) * 1.0D + 0.5D; double var20 = (float)var8.doubleValue() + (float)(par4.subtract(var8)).doubleValue() * var11 + (par1World.rand.nextDouble() - 0.5D) * 1.0D + 0.5D;
par1World.spawnParticle("portal", var16, var18, var20, (double)var13, (double)var14, (double)var15); par1World.spawnParticle("portal", var16, var18, var20, (float)var13, (float)var14, (float)var15);
} }
return; return;

@ -51,7 +51,7 @@ public class BlockEnchantmentTable extends BlockContainer
break; break;
} }
par1World.spawnParticle("enchantmenttable", (double)par2.doubleValue() + 0.5D, (double)par3 + 2.0D, (double)par4.doubleValue() + 0.5D, (double)((float)(var6) + par5Random.nextFloat()) - 0.5D, (double)((float)(var8 - par3) - par5Random.nextFloat() - 1.0F), (double)((float)(var7) + par5Random.nextFloat()) - 0.5D); par1World.spawnParticle("enchantmenttable", (float)par2.doubleValue() + 0.5D, (float)par3 + 2.0D, (float)par4.doubleValue() + 0.5D, (float)((float)(var6) + par5Random.nextFloat()) - 0.5D, (float)((float)(var8 - par3) - par5Random.nextFloat() - 1.0F), (float)((float)(var7) + par5Random.nextFloat()) - 0.5D);
} }
} }
} }

@ -89,9 +89,9 @@ public class BlockEndPortal extends BlockContainer
*/ */
public void randomDisplayTick(World par1World, BigInteger par2, int par3, BigInteger par4, Random par5Random) public void randomDisplayTick(World par1World, BigInteger par2, int par3, BigInteger par4, Random par5Random)
{ {
double var6 = (double)((float)par2.floatValue() + par5Random.nextFloat()); double var6 = (float)((float)par2.floatValue() + par5Random.nextFloat());
double var8 = (double)((float)par3 + 0.8F); double var8 = (float)((float)par3 + 0.8F);
double var10 = (double)((float)par4.floatValue() + par5Random.nextFloat()); double var10 = (float)((float)par4.floatValue() + par5Random.nextFloat());
double var12 = 0.0D; double var12 = 0.0D;
double var14 = 0.0D; double var14 = 0.0D;
double var16 = 0.0D; double var16 = 0.0D;

@ -83,7 +83,7 @@ public class BlockEndPortalFrame extends Block
*/ */
public void onBlockPlacedBy(World par1World, BigInteger par2, int par3, BigInteger par4, EntityLiving par5EntityLiving) public void onBlockPlacedBy(World par1World, BigInteger par2, int par3, BigInteger par4, EntityLiving par5EntityLiving)
{ {
int var6 = ((MathHelper.floor_double((double)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3) + 2) % 4; int var6 = ((MathHelper.floor_double((float)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3) + 2) % 4;
par1World.setBlockMetadataWithNotify(par2, par3, par4, var6); par1World.setBlockMetadataWithNotify(par2, par3, par4, var6);
} }
} }

@ -67,7 +67,7 @@ public class BlockEnderChest extends BlockContainer
public void onBlockPlacedBy(World par1World, BigInteger par2, int par3, BigInteger par4, EntityLiving par5EntityLiving) public void onBlockPlacedBy(World par1World, BigInteger par2, int par3, BigInteger par4, EntityLiving par5EntityLiving)
{ {
byte var6 = 0; byte var6 = 0;
int var7 = MathHelper.floor_double((double)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3; int var7 = MathHelper.floor_double((float)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
if (var7 == 0) if (var7 == 0)
{ {
@ -138,21 +138,21 @@ public class BlockEnderChest extends BlockContainer
{ {
for (int var6 = 0; var6 < 3; ++var6) for (int var6 = 0; var6 < 3; ++var6)
{ {
double var10000 = (double)((float)par2 + par5Random.nextFloat()); double var10000 = (float)((float)par2 + par5Random.nextFloat());
double var9 = (double)((float)par3 + par5Random.nextFloat()); double var9 = (float)((float)par3 + par5Random.nextFloat());
var10000 = (double)((float)par4 + par5Random.nextFloat()); var10000 = (float)((float)par4 + par5Random.nextFloat());
double var13 = 0.0D; double var13 = 0.0D;
double var15 = 0.0D; double var15 = 0.0D;
double var17 = 0.0D; double var17 = 0.0D;
int var19 = par5Random.nextInt(2) * 2 - 1; int var19 = par5Random.nextInt(2) * 2 - 1;
int var20 = par5Random.nextInt(2) * 2 - 1; int var20 = par5Random.nextInt(2) * 2 - 1;
var13 = ((double)par5Random.nextFloat() - 0.5D) * 0.125D; var13 = ((float)par5Random.nextFloat() - 0.5D) * 0.125D;
var15 = ((double)par5Random.nextFloat() - 0.5D) * 0.125D; var15 = ((float)par5Random.nextFloat() - 0.5D) * 0.125D;
var17 = ((double)par5Random.nextFloat() - 0.5D) * 0.125D; var17 = ((float)par5Random.nextFloat() - 0.5D) * 0.125D;
double var11 = (double)par4 + 0.5D + 0.25D * (double)var20; double var11 = (float)par4 + 0.5D + 0.25D * (float)var20;
var17 = (double)(par5Random.nextFloat() * 1.0F * (float)var20); var17 = (float)(par5Random.nextFloat() * 1.0F * (float)var20);
double var7 = (double)par2 + 0.5D + 0.25D * (double)var19; double var7 = (float)par2 + 0.5D + 0.25D * (float)var19;
var13 = (double)(par5Random.nextFloat() * 1.0F * (float)var19); var13 = (float)(par5Random.nextFloat() * 1.0F * (float)var19);
par1World.spawnParticle("portal", var7, var9, var11, var13, var15, var17); par1World.spawnParticle("portal", var7, var9, var11, var13, var15, var17);
} }
} }

@ -20,7 +20,7 @@ public class BlockFarmland extends Block
// */ // */
// public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4) // public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
// { // {
// return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)(par2 + 0), (double)(par3 + 0), (double)(par4 + 0), (double)(par2 + 1), (double)(par3 + 1), (double)(par4 + 1)); // return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)(par2 + 0), (float)(par3 + 0), (float)(par4 + 0), (float)(par2 + 1), (float)(par3 + 1), (float)(par4 + 1));
// } // }
/** /**

@ -51,7 +51,7 @@ public class BlockFence extends Block
var10 = 1.0F; var10 = 1.0F;
} }
return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)((float)par2.floatValue() + var9), (double)par3, (double)((float)par4.floatValue() + var11), (double)((float)par2.floatValue() + var10), (double)((float)par3 + 1.5F), (double)((float)par4.floatValue() + var12)); return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)((float)par2.floatValue() + var9), (float)par3, (float)((float)par4.floatValue() + var11), (float)((float)par2.floatValue() + var10), (float)((float)par3 + 1.5F), (float)((float)par4.floatValue() + var12));
} }
/** /**

@ -25,7 +25,7 @@ public class BlockFenceGate extends BlockDirectional
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, BigInteger par2, int par3, BigInteger par4) public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, BigInteger par2, int par3, BigInteger par4)
{ {
int var5 = par1World.getBlockMetadata(par2, par3, par4); int var5 = par1World.getBlockMetadata(par2, par3, par4);
return isFenceGateOpen(var5) ? null : (var5 != 2 && var5 != 0 ? AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)((float)par2.floatValue() + 0.375F), (double)par3, (double)par4.doubleValue(), (double)((float)par2.floatValue() + 0.625F), (double)((float)par3 + 1.5F), (double)(par4.doubleValue() + 1)) : AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)par2.doubleValue(), (double)par3, (double)((float)par4.floatValue() + 0.375F), (double)(par2.doubleValue() + 1), (double)((float)par3 + 1.5F), (double)((float)par4.floatValue() + 0.625F))); return isFenceGateOpen(var5) ? null : (var5 != 2 && var5 != 0 ? AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)((float)par2.floatValue() + 0.375F), (float)par3, (float)par4.doubleValue(), (float)((float)par2.floatValue() + 0.625F), (float)((float)par3 + 1.5F), (float)(par4.doubleValue() + 1)) : AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)par2.doubleValue(), (float)par3, (float)((float)par4.floatValue() + 0.375F), (float)(par2.doubleValue() + 1), (float)((float)par3 + 1.5F), (float)((float)par4.floatValue() + 0.625F)));
} }
/** /**
@ -80,7 +80,7 @@ public class BlockFenceGate extends BlockDirectional
*/ */
public void onBlockPlacedBy(World par1World, BigInteger par2, int par3, BigInteger par4, EntityLiving par5EntityLiving) public void onBlockPlacedBy(World par1World, BigInteger par2, int par3, BigInteger par4, EntityLiving par5EntityLiving)
{ {
int var6 = (MathHelper.floor_double((double)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3) % 4; int var6 = (MathHelper.floor_double((float)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3) % 4;
par1World.setBlockMetadataWithNotify(par2, par3, par4, var6); par1World.setBlockMetadataWithNotify(par2, par3, par4, var6);
} }
@ -97,7 +97,7 @@ public class BlockFenceGate extends BlockDirectional
} }
else else
{ {
int var11 = (MathHelper.floor_double((double)(par5EntityPlayer.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3) % 4; int var11 = (MathHelper.floor_double((float)(par5EntityPlayer.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3) % 4;
int var12 = getDirection(var10); int var12 = getDirection(var10);
if (var12 == (var11 + 2) % 4) if (var12 == (var11 + 2) % 4)

@ -347,7 +347,7 @@ public class BlockFire extends Block
{ {
if (par5Random.nextInt(24) == 0) if (par5Random.nextInt(24) == 0)
{ {
par1World.playSound((double)((float)par2.floatValue() + 0.5F), (double)((float)par3 + 0.5F), (double)((float)par4.floatValue() + 0.5F), "fire.fire", 1.0F + par5Random.nextFloat(), par5Random.nextFloat() * 0.7F + 0.3F); par1World.playSound((float)((float)par2.floatValue() + 0.5F), (float)((float)par3 + 0.5F), (float)((float)par4.floatValue() + 0.5F), "fire.fire", 1.0F + par5Random.nextFloat(), par5Random.nextFloat() * 0.7F + 0.3F);
} }
int var6; int var6;
@ -364,7 +364,7 @@ public class BlockFire extends Block
var7 = (float)par2.floatValue() + par5Random.nextFloat() * 0.1F; var7 = (float)par2.floatValue() + par5Random.nextFloat() * 0.1F;
var8 = (float)par3 + par5Random.nextFloat(); var8 = (float)par3 + par5Random.nextFloat();
var9 = (float)par4.floatValue() + par5Random.nextFloat(); var9 = (float)par4.floatValue() + par5Random.nextFloat();
par1World.spawnParticle("largesmoke", (double)var7, (double)var8, (double)var9, 0.0D, 0.0D, 0.0D); par1World.spawnParticle("largesmoke", (float)var7, (float)var8, (float)var9, 0.0D, 0.0D, 0.0D);
} }
} }
@ -375,7 +375,7 @@ public class BlockFire extends Block
var7 = (float)(par2.add(BigInteger.ONE)).floatValue() - par5Random.nextFloat() * 0.1F; var7 = (float)(par2.add(BigInteger.ONE)).floatValue() - par5Random.nextFloat() * 0.1F;
var8 = (float)par3 + par5Random.nextFloat(); var8 = (float)par3 + par5Random.nextFloat();
var9 = (float)par4.floatValue() + par5Random.nextFloat(); var9 = (float)par4.floatValue() + par5Random.nextFloat();
par1World.spawnParticle("largesmoke", (double)var7, (double)var8, (double)var9, 0.0D, 0.0D, 0.0D); par1World.spawnParticle("largesmoke", (float)var7, (float)var8, (float)var9, 0.0D, 0.0D, 0.0D);
} }
} }
@ -386,7 +386,7 @@ public class BlockFire extends Block
var7 = (float)par2.floatValue() + par5Random.nextFloat(); var7 = (float)par2.floatValue() + par5Random.nextFloat();
var8 = (float)par3 + par5Random.nextFloat(); var8 = (float)par3 + par5Random.nextFloat();
var9 = (float)par4.floatValue() + par5Random.nextFloat() * 0.1F; var9 = (float)par4.floatValue() + par5Random.nextFloat() * 0.1F;
par1World.spawnParticle("largesmoke", (double)var7, (double)var8, (double)var9, 0.0D, 0.0D, 0.0D); par1World.spawnParticle("largesmoke", (float)var7, (float)var8, (float)var9, 0.0D, 0.0D, 0.0D);
} }
} }
@ -397,7 +397,7 @@ public class BlockFire extends Block
var7 = (float)par2.floatValue() + par5Random.nextFloat(); var7 = (float)par2.floatValue() + par5Random.nextFloat();
var8 = (float)par3 + par5Random.nextFloat(); var8 = (float)par3 + par5Random.nextFloat();
var9 = (float)(par4.add(BigInteger.ONE)).floatValue() - par5Random.nextFloat() * 0.1F; var9 = (float)(par4.add(BigInteger.ONE)).floatValue() - par5Random.nextFloat() * 0.1F;
par1World.spawnParticle("largesmoke", (double)var7, (double)var8, (double)var9, 0.0D, 0.0D, 0.0D); par1World.spawnParticle("largesmoke", (float)var7, (float)var8, (float)var9, 0.0D, 0.0D, 0.0D);
} }
} }
@ -408,7 +408,7 @@ public class BlockFire extends Block
var7 = (float)par2.floatValue() + par5Random.nextFloat(); var7 = (float)par2.floatValue() + par5Random.nextFloat();
var8 = (float)(par3 + 1) - par5Random.nextFloat() * 0.1F; var8 = (float)(par3 + 1) - par5Random.nextFloat() * 0.1F;
var9 = (float)par4.floatValue() + par5Random.nextFloat(); var9 = (float)par4.floatValue() + par5Random.nextFloat();
par1World.spawnParticle("largesmoke", (double)var7, (double)var8, (double)var9, 0.0D, 0.0D, 0.0D); par1World.spawnParticle("largesmoke", (float)var7, (float)var8, (float)var9, 0.0D, 0.0D, 0.0D);
} }
} }
} }
@ -419,7 +419,7 @@ public class BlockFire extends Block
var7 = (float)par2.floatValue() + par5Random.nextFloat(); var7 = (float)par2.floatValue() + par5Random.nextFloat();
var8 = (float)par3 + par5Random.nextFloat() * 0.5F + 0.5F; var8 = (float)par3 + par5Random.nextFloat() * 0.5F + 0.5F;
var9 = (float)par4.floatValue() + par5Random.nextFloat(); var9 = (float)par4.floatValue() + par5Random.nextFloat();
par1World.spawnParticle("largesmoke", (double)var7, (double)var8, (double)var9, 0.0D, 0.0D, 0.0D); par1World.spawnParticle("largesmoke", (float)var7, (float)var8, (float)var9, 0.0D, 0.0D, 0.0D);
} }
} }
} }

@ -231,14 +231,14 @@ public abstract class BlockFluid extends Block
if (var11 >= 0) if (var11 >= 0)
{ {
var12 = var11 - (var6 - 8); var12 = var11 - (var6 - 8);
var5 = var5.addVector((double)((var8.subtract(par2)).doubleValue() * var12), (double)((par3 - par3) * var12), (double)((var10.subtract(par4)).doubleValue() * var12)); var5 = var5.addVector((float)((var8.subtract(par2)).doubleValue() * var12), (float)((par3 - par3) * var12), (float)((var10.subtract(par4)).doubleValue() * var12));
} }
} }
} }
else if (var11 >= 0) else if (var11 >= 0)
{ {
var12 = var11 - var6; var12 = var11 - var6;
var5 = var5.addVector((double)((var8.subtract(par2)).doubleValue() * var12), (double)((par3 - par3) * var12), (double)((var10.subtract(par4)).doubleValue() * var12)); var5 = var5.addVector((float)((var8.subtract(par2)).doubleValue() * var12), (float)((par3 - par3) * var12), (float)((var10.subtract(par4)).doubleValue() * var12));
} }
} }
@ -362,7 +362,7 @@ public abstract class BlockFluid extends Block
if (var6 <= 0 || var6 >= 8) if (var6 <= 0 || var6 >= 8)
{ {
par1World.spawnParticle("suspended", (double)((float)par2.floatValue() + par5Random.nextFloat()), (double)((float)par3 + par5Random.nextFloat()), (double)((float)par4.floatValue() + par5Random.nextFloat()), 0.0D, 0.0D, 0.0D); par1World.spawnParticle("suspended", (float)((float)par2.floatValue() + par5Random.nextFloat()), (float)((float)par3 + par5Random.nextFloat()), (float)((float)par4.floatValue() + par5Random.nextFloat()), 0.0D, 0.0D, 0.0D);
} }
} }
@ -395,28 +395,28 @@ public abstract class BlockFluid extends Block
if (par1World.getBlockMaterial(var8, par3, var9) == Material.air && (par1World.getBlockMaterial(var8, par3 - 1, var9).blocksMovement() || par1World.getBlockMaterial(var8, par3 - 1, var9).isLiquid())) if (par1World.getBlockMaterial(var8, par3, var9) == Material.air && (par1World.getBlockMaterial(var8, par3 - 1, var9).blocksMovement() || par1World.getBlockMaterial(var8, par3 - 1, var9).isLiquid()))
{ {
float var10 = 0.0625F; float var10 = 0.0625F;
double var11 = (double)((float)par2.floatValue() + par5Random.nextFloat()); double var11 = (float)((float)par2.floatValue() + par5Random.nextFloat());
double var13 = (double)((float)par3 + par5Random.nextFloat()); double var13 = (float)((float)par3 + par5Random.nextFloat());
double var15 = (double)((float)par4.floatValue() + par5Random.nextFloat()); double var15 = (float)((float)par4.floatValue() + par5Random.nextFloat());
if (var7 == 0) if (var7 == 0)
{ {
var11 = (double)((float)par2.floatValue() - var10); var11 = (float)((float)par2.floatValue() - var10);
} }
if (var7 == 1) if (var7 == 1)
{ {
var11 = (double)((float)(par2.add(BigInteger.ONE)).floatValue() + var10); var11 = (float)((float)(par2.add(BigInteger.ONE)).floatValue() + var10);
} }
if (var7 == 2) if (var7 == 2)
{ {
var15 = (double)((float)par4.floatValue() - var10); var15 = (float)((float)par4.floatValue() - var10);
} }
if (var7 == 3) if (var7 == 3)
{ {
var15 = (double)((float)(par4.add(BigInteger.ONE)).floatValue() + var10); var15 = (float)((float)(par4.add(BigInteger.ONE)).floatValue() + var10);
} }
double var17 = 0.0D; double var17 = 0.0D;
@ -424,22 +424,22 @@ public abstract class BlockFluid extends Block
if (var7 == 0) if (var7 == 0)
{ {
var17 = (double)(-var10); var17 = (float)(-var10);
} }
if (var7 == 1) if (var7 == 1)
{ {
var17 = (double)var10; var17 = (float)var10;
} }
if (var7 == 2) if (var7 == 2)
{ {
var19 = (double)(-var10); var19 = (float)(-var10);
} }
if (var7 == 3) if (var7 == 3)
{ {
var19 = (double)var10; var19 = (float)var10;
} }
par1World.spawnParticle("splash", var11, var13, var15, var17, 0.0D, var19); par1World.spawnParticle("splash", var11, var13, var15, var17, 0.0D, var19);
@ -453,7 +453,7 @@ public abstract class BlockFluid extends Block
if (var6 > 0 && var6 < 8) if (var6 > 0 && var6 < 8)
{ {
par1World.playSound((double)((float)par2.floatValue() + 0.5F), (double)((float)par3 + 0.5F), (double)((float)par4.floatValue() + 0.5F), "liquid.water", par5Random.nextFloat() * 0.25F + 0.75F, par5Random.nextFloat() * 1.0F + 0.5F); par1World.playSound((float)((float)par2.floatValue() + 0.5F), (float)((float)par3 + 0.5F), (float)((float)par4.floatValue() + 0.5F), "liquid.water", par5Random.nextFloat() * 0.25F + 0.75F, par5Random.nextFloat() * 1.0F + 0.5F);
} }
} }
@ -465,24 +465,24 @@ public abstract class BlockFluid extends Block
{ {
if (par5Random.nextInt(100) == 0) if (par5Random.nextInt(100) == 0)
{ {
var21 = (double)((float)par2.floatValue() + par5Random.nextFloat()); var21 = (float)((float)par2.floatValue() + par5Random.nextFloat());
var22 = (double)par3 + this.maxY; var22 = (float)par3 + this.maxY;
var23 = (double)((float)par4.floatValue() + par5Random.nextFloat()); var23 = (float)((float)par4.floatValue() + par5Random.nextFloat());
par1World.spawnParticle("lava", var21, var22, var23, 0.0D, 0.0D, 0.0D); par1World.spawnParticle("lava", var21, var22, var23, 0.0D, 0.0D, 0.0D);
par1World.playSound(var21, var22, var23, "liquid.lavapop", 0.2F + par5Random.nextFloat() * 0.2F, 0.9F + par5Random.nextFloat() * 0.15F); par1World.playSound(var21, var22, var23, "liquid.lavapop", 0.2F + par5Random.nextFloat() * 0.2F, 0.9F + par5Random.nextFloat() * 0.15F);
} }
if (par5Random.nextInt(200) == 0) if (par5Random.nextInt(200) == 0)
{ {
par1World.playSound((double)par2.doubleValue(), (double)par3, (double)par4.doubleValue(), "liquid.lava", 0.2F + par5Random.nextFloat() * 0.2F, 0.9F + par5Random.nextFloat() * 0.15F); par1World.playSound((float)par2.doubleValue(), (float)par3, (float)par4.doubleValue(), "liquid.lava", 0.2F + par5Random.nextFloat() * 0.2F, 0.9F + par5Random.nextFloat() * 0.15F);
} }
} }
if (par5Random.nextInt(10) == 0 && par1World.doesBlockHaveSolidTopSurface(par2, par3 - 1, par4) && !par1World.getBlockMaterial(par2, par3 - 2, par4).blocksMovement()) if (par5Random.nextInt(10) == 0 && par1World.doesBlockHaveSolidTopSurface(par2, par3 - 1, par4) && !par1World.getBlockMaterial(par2, par3 - 2, par4).blocksMovement())
{ {
var21 = (double)((float)par2.floatValue() + par5Random.nextFloat()); var21 = (float)((float)par2.floatValue() + par5Random.nextFloat());
var22 = (double)par3 - 1.05D; var22 = (float)par3 - 1.05D;
var23 = (double)((float)par4.floatValue() + par5Random.nextFloat()); var23 = (float)((float)par4.floatValue() + par5Random.nextFloat());
if (this.blockMaterial == Material.water) if (this.blockMaterial == Material.water)
{ {
@ -512,7 +512,7 @@ public abstract class BlockFluid extends Block
var5 = ((BlockFluid)Block.lavaMoving).getFlowVector(par0IBlockAccess, par1, par2, par3); var5 = ((BlockFluid)Block.lavaMoving).getFlowVector(par0IBlockAccess, par1, par2, par3);
} }
return var5.xCoord == 0.0D && var5.zCoord == 0.0D ? -1000.0D : Math.atan2(var5.zCoord, var5.xCoord) - (Math.PI / 2D); return var5.xCoord == 0.0D && var5.zCoord == 0.0D ? -1000.0D : Math.atan2(var5.zCoord, var5.xCoord) - ((float)Math.PI / 2D);
} }
/** /**
@ -592,11 +592,11 @@ public abstract class BlockFluid extends Block
*/ */
protected void triggerLavaMixEffects(World par1World, BigInteger par2, int par3, BigInteger par4) protected void triggerLavaMixEffects(World par1World, BigInteger par2, int par3, BigInteger par4)
{ {
par1World.playSoundEffect((double)((float)par2.floatValue() + 0.5F), (double)((float)par3 + 0.5F), (double)((float)par4.floatValue() + 0.5F), "random.fizz", 0.5F, 2.6F + (par1World.rand.nextFloat() - par1World.rand.nextFloat()) * 0.8F); par1World.playSoundEffect((float)((float)par2.floatValue() + 0.5F), (float)((float)par3 + 0.5F), (float)((float)par4.floatValue() + 0.5F), "random.fizz", 0.5F, 2.6F + (par1World.rand.nextFloat() - par1World.rand.nextFloat()) * 0.8F);
for (int var5 = 0; var5 < 8; ++var5) for (int var5 = 0; var5 < 8; ++var5)
{ {
par1World.spawnParticle("largesmoke", (double)par2.doubleValue() + Math.random(), (double)par3 + 1.2D, (double)par4.doubleValue() + Math.random(), 0.0D, 0.0D, 0.0D); par1World.spawnParticle("largesmoke", (float)par2.doubleValue() + Math.random(), (float)par3 + 1.2D, (float)par4.doubleValue() + Math.random(), 0.0D, 0.0D, 0.0D);
} }
} }
} }

@ -116,23 +116,23 @@ public class BlockFurnace extends BlockContainer
if (var6 == 4) if (var6 == 4)
{ {
par1World.spawnParticle("smoke", (double)(var7 - var10), (double)var8, (double)(var9 + var11), 0.0D, 0.0D, 0.0D); par1World.spawnParticle("smoke", (float)(var7 - var10), (float)var8, (float)(var9 + var11), 0.0D, 0.0D, 0.0D);
par1World.spawnParticle("flame", (double)(var7 - var10), (double)var8, (double)(var9 + var11), 0.0D, 0.0D, 0.0D); par1World.spawnParticle("flame", (float)(var7 - var10), (float)var8, (float)(var9 + var11), 0.0D, 0.0D, 0.0D);
} }
else if (var6 == 5) else if (var6 == 5)
{ {
par1World.spawnParticle("smoke", (double)(var7 + var10), (double)var8, (double)(var9 + var11), 0.0D, 0.0D, 0.0D); par1World.spawnParticle("smoke", (float)(var7 + var10), (float)var8, (float)(var9 + var11), 0.0D, 0.0D, 0.0D);
par1World.spawnParticle("flame", (double)(var7 + var10), (double)var8, (double)(var9 + var11), 0.0D, 0.0D, 0.0D); par1World.spawnParticle("flame", (float)(var7 + var10), (float)var8, (float)(var9 + var11), 0.0D, 0.0D, 0.0D);
} }
else if (var6 == 2) else if (var6 == 2)
{ {
par1World.spawnParticle("smoke", (double)(var7 + var11), (double)var8, (double)(var9 - var10), 0.0D, 0.0D, 0.0D); par1World.spawnParticle("smoke", (float)(var7 + var11), (float)var8, (float)(var9 - var10), 0.0D, 0.0D, 0.0D);
par1World.spawnParticle("flame", (double)(var7 + var11), (double)var8, (double)(var9 - var10), 0.0D, 0.0D, 0.0D); par1World.spawnParticle("flame", (float)(var7 + var11), (float)var8, (float)(var9 - var10), 0.0D, 0.0D, 0.0D);
} }
else if (var6 == 3) else if (var6 == 3)
{ {
par1World.spawnParticle("smoke", (double)(var7 + var11), (double)var8, (double)(var9 + var10), 0.0D, 0.0D, 0.0D); par1World.spawnParticle("smoke", (float)(var7 + var11), (float)var8, (float)(var9 + var10), 0.0D, 0.0D, 0.0D);
par1World.spawnParticle("flame", (double)(var7 + var11), (double)var8, (double)(var9 + var10), 0.0D, 0.0D, 0.0D); par1World.spawnParticle("flame", (float)(var7 + var11), (float)var8, (float)(var9 + var10), 0.0D, 0.0D, 0.0D);
} }
} }
} }
@ -208,7 +208,7 @@ public class BlockFurnace extends BlockContainer
*/ */
public void onBlockPlacedBy(World par1World, BigInteger par2, int par3, BigInteger par4, EntityLiving par5EntityLiving) public void onBlockPlacedBy(World par1World, BigInteger par2, int par3, BigInteger par4, EntityLiving par5EntityLiving)
{ {
int var6 = MathHelper.floor_double((double)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3; int var6 = MathHelper.floor_double((float)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
if (var6 == 0) if (var6 == 0)
{ {
@ -262,7 +262,7 @@ public class BlockFurnace extends BlockContainer
} }
var9.stackSize -= var13; var9.stackSize -= var13;
EntityItem var14 = new EntityItem(par1World, (double)((float)par2.floatValue() + var10), (double)((float)par3 + var11), (double)((float)par4.floatValue() + var12), new ItemStack(var9.itemID, var13, var9.getItemDamage())); EntityItem var14 = new EntityItem(par1World, (float)((float)par2.floatValue() + var10), (float)((float)par3 + var11), (float)((float)par4.floatValue() + var12), new ItemStack(var9.itemID, var13, var9.getItemDamage()));
if (var9.hasTagCompound()) if (var9.hasTagCompound())
{ {
@ -270,9 +270,9 @@ public class BlockFurnace extends BlockContainer
} }
float var15 = 0.05F; float var15 = 0.05F;
var14.motionX = (double)((float)this.furnaceRand.nextGaussian() * var15); var14.motionX = (float)((float)this.furnaceRand.nextGaussian() * var15);
var14.motionY = (double)((float)this.furnaceRand.nextGaussian() * var15 + 0.2F); var14.motionY = (float)((float)this.furnaceRand.nextGaussian() * var15 + 0.2F);
var14.motionZ = (double)((float)this.furnaceRand.nextGaussian() * var15); var14.motionZ = (float)((float)this.furnaceRand.nextGaussian() * var15);
par1World.spawnEntityInWorld(var14); par1World.spawnEntityInWorld(var14);
} }
} }

@ -97,7 +97,7 @@ public abstract class BlockHalfSlab extends Block
{ {
if (!this.isDoubleSlab) if (!this.isDoubleSlab)
{ {
if (par5 == 0 || par5 != 1 && (double)par7 > 0.5D) if (par5 == 0 || par5 != 1 && (float)par7 > 0.5D)
{ {
int var9 = par1World.getBlockMetadata(par2, par3, par4) & 7; int var9 = par1World.getBlockMetadata(par2, par3, par4) & 7;
par1World.setBlockMetadataWithNotify(par2, par3, par4, var9 | 8); par1World.setBlockMetadataWithNotify(par2, par3, par4, var9 | 8);

@ -73,10 +73,10 @@ public class BlockJukeBox extends BlockContainer
var5.onInventoryChanged(); var5.onInventoryChanged();
par1World.setBlockMetadataWithNotify(par2, par3, par4, 0); par1World.setBlockMetadataWithNotify(par2, par3, par4, 0);
float var7 = 0.7F; float var7 = 0.7F;
double var8 = (double)(par1World.rand.nextFloat() * var7) + (double)(1.0F - var7) * 0.5D; double var8 = (float)(par1World.rand.nextFloat() * var7) + (float)(1.0F - var7) * 0.5D;
double var10 = (double)(par1World.rand.nextFloat() * var7) + (double)(1.0F - var7) * 0.2D + 0.6D; double var10 = (float)(par1World.rand.nextFloat() * var7) + (float)(1.0F - var7) * 0.2D + 0.6D;
double var12 = (double)(par1World.rand.nextFloat() * var7) + (double)(1.0F - var7) * 0.5D; double var12 = (float)(par1World.rand.nextFloat() * var7) + (float)(1.0F - var7) * 0.5D;
EntityItem var14 = new EntityItem(par1World, (double)par2.doubleValue() + var8, (double)par3 + var10, (double)par4.doubleValue() + var12, new ItemStack(var6, 1, 0)); EntityItem var14 = new EntityItem(par1World, (float)par2.doubleValue() + var8, (float)par3 + var10, (float)par4.doubleValue() + var12, new ItemStack(var6, 1, 0));
var14.delayBeforeCanPickup = 10; var14.delayBeforeCanPickup = 10;
par1World.spawnEntityInWorld(var14); par1World.spawnEntityInWorld(var14);
} }

@ -226,9 +226,9 @@ public class BlockLeaves extends BlockLeavesBase
{ {
if (par1World.canLightningStrikeAt(par2, par3 + 1, par4) && !par1World.doesBlockHaveSolidTopSurface(par2, par3 - 1, par4) && par5Random.nextInt(15) == 1) if (par1World.canLightningStrikeAt(par2, par3 + 1, par4) && !par1World.doesBlockHaveSolidTopSurface(par2, par3 - 1, par4) && par5Random.nextInt(15) == 1)
{ {
double var6 = (double)((float)par2.floatValue() + par5Random.nextFloat()); double var6 = (float)((float)par2.floatValue() + par5Random.nextFloat());
double var8 = (double)par3 - 0.05D; double var8 = (float)par3 - 0.05D;
double var10 = (double)((float)par4.floatValue() + par5Random.nextFloat()); double var10 = (float)((float)par4.floatValue() + par5Random.nextFloat());
par1World.spawnParticle("dripWater", var6, var8, var10, 0.0D, 0.0D, 0.0D); par1World.spawnParticle("dripWater", var6, var8, var10, 0.0D, 0.0D, 0.0D);
} }
} }

@ -281,7 +281,7 @@ public class BlockLever extends Block
int var12 = 8 - (var10 & 8); int var12 = 8 - (var10 & 8);
par1World.setBlockMetadataWithNotify(par2, par3, par4, var11 + var12); par1World.setBlockMetadataWithNotify(par2, par3, par4, var11 + var12);
par1World.markBlocksDirty(par2, par3, par4, par2, par3, par4); par1World.markBlocksDirty(par2, par3, par4, par2, par3, par4);
par1World.playSoundEffect((double)par2.doubleValue() + 0.5D, (double)par3 + 0.5D, (double)par4.doubleValue() + 0.5D, "random.click", 0.3F, var12 > 0 ? 0.6F : 0.5F); par1World.playSoundEffect((float)par2.doubleValue() + 0.5D, (float)par3 + 0.5D, (float)par4.doubleValue() + 0.5D, "random.click", 0.3F, var12 > 0 ? 0.6F : 0.5F);
par1World.notifyBlocksOfNeighborChange(par2, par3, par4, this.blockID); par1World.notifyBlocksOfNeighborChange(par2, par3, par4, this.blockID);
if (var11 == 1) if (var11 == 1)

@ -39,7 +39,7 @@ public class BlockLilyPad extends BlockFlower
*/ */
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, BigInteger par2, int par3, BigInteger par4) public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, BigInteger par2, int par3, BigInteger par4)
{ {
return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)par2.doubleValue() + this.minX, (double)par3 + this.minY, (double)par4.doubleValue() + this.minZ, (double)par2.doubleValue() + this.maxX, (double)par3 + this.maxY, (double)par4.doubleValue() + this.maxZ); return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)par2.doubleValue() + this.minX, (float)par3 + this.minY, (float)par4.doubleValue() + this.minZ, (float)par2.doubleValue() + this.maxX, (float)par3 + this.maxY, (float)par4.doubleValue() + this.maxZ);
} }
public int getBlockColor() public int getBlockColor()

@ -79,7 +79,7 @@ public class BlockMycelium extends Block
if (par5Random.nextInt(10) == 0) if (par5Random.nextInt(10) == 0)
{ {
par1World.spawnParticle("townaura", (double)((float)par2.floatValue() + par5Random.nextFloat()), (double)((float)par3 + 1.1F), (double)((float)par4.floatValue() + par5Random.nextFloat()), 0.0D, 0.0D, 0.0D); par1World.spawnParticle("townaura", (float)((float)par2.floatValue() + par5Random.nextFloat()), (float)((float)par3 + 1.1F), (float)((float)par4.floatValue() + par5Random.nextFloat()), 0.0D, 0.0D, 0.0D);
} }
} }

@ -94,7 +94,7 @@ public class BlockNote extends BlockContainer
*/ */
public void onBlockEventReceived(World par1World, BigInteger par2, int par3, BigInteger par4, int par5, int par6) public void onBlockEventReceived(World par1World, BigInteger par2, int par3, BigInteger par4, int par5, int par6)
{ {
float var7 = (float)Math.pow(2.0D, (double)(par6 - 12) / 12.0D); float var7 = (float)Math.pow(2.0D, (float)(par6 - 12) / 12.0D);
String var8 = "harp"; String var8 = "harp";
if (par5 == 1) if (par5 == 1)
@ -117,7 +117,7 @@ public class BlockNote extends BlockContainer
var8 = "bassattack"; var8 = "bassattack";
} }
par1World.playSoundEffect((double)par2.doubleValue() + 0.5D, (double)par3 + 0.5D, (double)par4.doubleValue() + 0.5D, "note." + var8, 3.0F, var7); par1World.playSoundEffect((float)par2.doubleValue() + 0.5D, (float)par3 + 0.5D, (float)par4.doubleValue() + 0.5D, "note." + var8, 3.0F, var7);
par1World.spawnParticle("note", (double)par2.doubleValue() + 0.5D, (double)par3 + 1.2D, (double)par4.doubleValue() + 0.5D, (double)par6 / 24.0D, 0.0D, 0.0D); par1World.spawnParticle("note", (float)par2.doubleValue() + 0.5D, (float)par3 + 1.2D, (float)par4.doubleValue() + 0.5D, (float)par6 / 24.0D, 0.0D, 0.0D);
} }
} }

@ -152,7 +152,7 @@ public class BlockPistonBase extends Block
if (this.tryExtend(par1World, par2, par3, par4, par6)) if (this.tryExtend(par1World, par2, par3, par4, par6))
{ {
par1World.setBlockMetadataWithNotify(par2, par3, par4, par6 | 8); par1World.setBlockMetadataWithNotify(par2, par3, par4, par6 | 8);
par1World.playSoundEffect((double)par2.doubleValue() + 0.5D, (double)par3 + 0.5D, (double)par4.doubleValue() + 0.5D, "tile.piston.out", 0.5F, par1World.rand.nextFloat() * 0.25F + 0.6F); par1World.playSoundEffect((float)par2.doubleValue() + 0.5D, (float)par3 + 0.5D, (float)par4.doubleValue() + 0.5D, "tile.piston.out", 0.5F, par1World.rand.nextFloat() * 0.25F + 0.6F);
} }
else else
{ {
@ -217,7 +217,7 @@ public class BlockPistonBase extends Block
par1World.setBlockWithNotify(par2.add(Facing.offsetsXForSide[par6]), par3 + Facing.offsetsYForSide[par6], par4.add(Facing.offsetsZForSide[par6]), 0); par1World.setBlockWithNotify(par2.add(Facing.offsetsXForSide[par6]), par3 + Facing.offsetsYForSide[par6], par4.add(Facing.offsetsZForSide[par6]), 0);
} }
par1World.playSoundEffect((double)par2.doubleValue() + 0.5D, (double)par3 + 0.5D, (double)par4.doubleValue() + 0.5D, "tile.piston.in", 0.5F, par1World.rand.nextFloat() * 0.15F + 0.6F); par1World.playSoundEffect((float)par2.doubleValue() + 0.5D, (float)par3 + 0.5D, (float)par4.doubleValue() + 0.5D, "tile.piston.in", 0.5F, par1World.rand.nextFloat() * 0.15F + 0.6F);
} }
} }
@ -320,20 +320,20 @@ public class BlockPistonBase extends Block
{ {
if (MathHelper.abs((float)par4EntityPlayer.posX - (float)par1.floatValue()) < 2.0F && MathHelper.abs((float)par4EntityPlayer.posZ - (float)par3.floatValue()) < 2.0F) if (MathHelper.abs((float)par4EntityPlayer.posX - (float)par1.floatValue()) < 2.0F && MathHelper.abs((float)par4EntityPlayer.posZ - (float)par3.floatValue()) < 2.0F)
{ {
double var5 = par4EntityPlayer.posY + 1.82D - (double)par4EntityPlayer.yOffset; double var5 = par4EntityPlayer.posY + 1.82D - (float)par4EntityPlayer.yOffset;
if (var5 - (double)par2 > 2.0D) if (var5 - (float)par2 > 2.0D)
{ {
return 1; return 1;
} }
if ((double)par2 - var5 > 0.0D) if ((float)par2 - var5 > 0.0D)
{ {
return 0; return 0;
} }
} }
int var7 = MathHelper.floor_double((double)(par4EntityPlayer.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3; int var7 = MathHelper.floor_double((float)(par4EntityPlayer.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
return var7 == 0 ? 2 : (var7 == 1 ? 5 : (var7 == 2 ? 3 : (var7 == 3 ? 4 : 0))); return var7 == 0 ? 2 : (var7 == 1 ? 5 : (var7 == 2 ? 3 : (var7 == 3 ? 4 : 0)));
} }

@ -196,12 +196,12 @@ public class BlockPistonMoving extends BlockContainer
float x = Facing.offsetsXForSide[var8].floatValue(), float x = Facing.offsetsXForSide[var8].floatValue(),
z = Facing.offsetsZForSide[var8].floatValue(); z = Facing.offsetsZForSide[var8].floatValue();
this.minX = var6.minX - (double)((float)x * var7); this.minX = var6.minX - (float)((float)x * var7);
this.minY = var6.minY - (double)((float)Facing.offsetsYForSide[var8] * var7); this.minY = var6.minY - (float)((float)Facing.offsetsYForSide[var8] * var7);
this.minZ = var6.minZ - (double)((float)z * var7); this.minZ = var6.minZ - (float)((float)z * var7);
this.maxX = var6.maxX - (double)((float)x * var7); this.maxX = var6.maxX - (float)((float)x * var7);
this.maxY = var6.maxY - (double)((float)Facing.offsetsYForSide[var8] * var7); this.maxY = var6.maxY - (float)((float)Facing.offsetsYForSide[var8] * var7);
this.maxZ = var6.maxZ - (double)((float)z * var7); this.maxZ = var6.maxZ - (float)((float)z * var7);
} }
} }
@ -221,29 +221,29 @@ public class BlockPistonMoving extends BlockContainer
z = Facing.offsetsZForSide[par7].floatValue(); z = Facing.offsetsZForSide[par7].floatValue();
if (x < 0) if (x < 0)
{ {
var8.minX -= (double)((float)x * par6); var8.minX -= (float)((float)x * par6);
} }
else else
{ {
var8.maxX -= (double)((float)x * par6); var8.maxX -= (float)((float)x * par6);
} }
if (Facing.offsetsYForSide[par7] < 0) if (Facing.offsetsYForSide[par7] < 0)
{ {
var8.minY -= (double)((float)Facing.offsetsYForSide[par7] * par6); var8.minY -= (float)((float)Facing.offsetsYForSide[par7] * par6);
} }
else else
{ {
var8.maxY -= (double)((float)Facing.offsetsYForSide[par7] * par6); var8.maxY -= (float)((float)Facing.offsetsYForSide[par7] * par6);
} }
if (z < 0) if (z < 0)
{ {
var8.minZ -= (double)((float)z * par6); var8.minZ -= (float)((float)z * par6);
} }
else else
{ {
var8.maxZ -= (double)((float)z * par6); var8.maxZ -= (float)((float)z * par6);
} }
return var8; return var8;

@ -29,7 +29,7 @@ public class BlockPortal extends BlockBreakable
if (var6 > 0 && !par1World.isBlockNormalCube(par2, var6 + 1, par4)) if (var6 > 0 && !par1World.isBlockNormalCube(par2, var6 + 1, par4))
{ {
ItemMonsterPlacer.spawnCreature(par1World, 57, (double)par2.doubleValue() + 0.5D, (double)var6 + 1.1D, (double)par4.doubleValue() + 0.5D); ItemMonsterPlacer.spawnCreature(par1World, 57, (float)par2.doubleValue() + 0.5D, (float)var6 + 1.1D, (float)par4.doubleValue() + 0.5D);
} }
} }
} }
@ -270,31 +270,31 @@ public class BlockPortal extends BlockBreakable
{ {
if (par5Random.nextInt(100) == 0) if (par5Random.nextInt(100) == 0)
{ {
par1World.playSound((double)par2.doubleValue() + 0.5D, (double)par3 + 0.5D, (double)par4.doubleValue() + 0.5D, "portal.portal", 0.5F, par5Random.nextFloat() * 0.4F + 0.8F); par1World.playSound((float)par2.doubleValue() + 0.5D, (float)par3 + 0.5D, (float)par4.doubleValue() + 0.5D, "portal.portal", 0.5F, par5Random.nextFloat() * 0.4F + 0.8F);
} }
for (int var6 = 0; var6 < 4; ++var6) for (int var6 = 0; var6 < 4; ++var6)
{ {
double var7 = (double)((float)par2.floatValue() + par5Random.nextFloat()); double var7 = (float)((float)par2.floatValue() + par5Random.nextFloat());
double var9 = (double)((float)par3 + par5Random.nextFloat()); double var9 = (float)((float)par3 + par5Random.nextFloat());
double var11 = (double)((float)par4.floatValue() + par5Random.nextFloat()); double var11 = (float)((float)par4.floatValue() + par5Random.nextFloat());
double var13 = 0.0D; double var13 = 0.0D;
double var15 = 0.0D; double var15 = 0.0D;
double var17 = 0.0D; double var17 = 0.0D;
int var19 = par5Random.nextInt(2) * 2 - 1; int var19 = par5Random.nextInt(2) * 2 - 1;
var13 = ((double)par5Random.nextFloat() - 0.5D) * 0.5D; var13 = ((float)par5Random.nextFloat() - 0.5D) * 0.5D;
var15 = ((double)par5Random.nextFloat() - 0.5D) * 0.5D; var15 = ((float)par5Random.nextFloat() - 0.5D) * 0.5D;
var17 = ((double)par5Random.nextFloat() - 0.5D) * 0.5D; var17 = ((float)par5Random.nextFloat() - 0.5D) * 0.5D;
if (par1World.getBlockId(par2.subtract(BigInteger.ONE), par3, par4) != this.blockID && par1World.getBlockId(par2.add(BigInteger.ONE), par3, par4) != this.blockID) if (par1World.getBlockId(par2.subtract(BigInteger.ONE), par3, par4) != this.blockID && par1World.getBlockId(par2.add(BigInteger.ONE), par3, par4) != this.blockID)
{ {
var7 = (double)par2.doubleValue() + 0.5D + 0.25D * (double)var19; var7 = (float)par2.doubleValue() + 0.5D + 0.25D * (float)var19;
var13 = (double)(par5Random.nextFloat() * 2.0F * (float)var19); var13 = (float)(par5Random.nextFloat() * 2.0F * (float)var19);
} }
else else
{ {
var11 = (double)par4.doubleValue() + 0.5D + 0.25D * (double)var19; var11 = (float)par4.doubleValue() + 0.5D + 0.25D * (float)var19;
var17 = (double)(par5Random.nextFloat() * 2.0F * (float)var19); var17 = (float)(par5Random.nextFloat() * 2.0F * (float)var19);
} }
par1World.spawnParticle("portal", var7, var9, var11, var13, var15, var17); par1World.spawnParticle("portal", var7, var9, var11, var13, var15, var17);

@ -126,17 +126,17 @@ public class BlockPressurePlate extends Block
if (this.triggerMobType == EnumMobType.everything) if (this.triggerMobType == EnumMobType.everything)
{ {
var8 = par1World.getEntitiesWithinAABBExcludingEntity((Entity)null, AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)((float)par2.floatValue() + var7), (double)par3, (double)((float)par4 .floatValue()+ var7), (double)((float)(par2.doubleValue() + 1) - var7), (double)par3 + 0.25D, (double)((float)(par4.doubleValue() + 1) - var7))); var8 = par1World.getEntitiesWithinAABBExcludingEntity((Entity)null, AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)((float)par2.floatValue() + var7), (float)par3, (float)((float)par4 .floatValue()+ var7), (float)((float)(par2.doubleValue() + 1) - var7), (float)par3 + 0.25D, (float)((float)(par4.doubleValue() + 1) - var7)));
} }
if (this.triggerMobType == EnumMobType.mobs) if (this.triggerMobType == EnumMobType.mobs)
{ {
var8 = par1World.getEntitiesWithinAABB(EntityLiving.class, AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)((float)par2.floatValue() + var7), (double)par3, (double)((float)par4.floatValue() + var7), (double)((float)(par2.doubleValue() + 1) - var7), (double)par3 + 0.25D, (double)((float)(par4.doubleValue() + 1) - var7))); var8 = par1World.getEntitiesWithinAABB(EntityLiving.class, AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)((float)par2.floatValue() + var7), (float)par3, (float)((float)par4.floatValue() + var7), (float)((float)(par2.doubleValue() + 1) - var7), (float)par3 + 0.25D, (float)((float)(par4.doubleValue() + 1) - var7)));
} }
if (this.triggerMobType == EnumMobType.players) if (this.triggerMobType == EnumMobType.players)
{ {
var8 = par1World.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)((float)par2.floatValue() + var7), (double)par3, (double)((float)par4.floatValue() + var7), (double)((float)(par2.doubleValue() + 1) - var7), (double)par3 + 0.25D, (double)((float)(par4.doubleValue() + 1) - var7))); var8 = par1World.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)((float)par2.floatValue() + var7), (float)par3, (float)((float)par4.floatValue() + var7), (float)((float)(par2.doubleValue() + 1) - var7), (float)par3 + 0.25D, (float)((float)(par4.doubleValue() + 1) - var7)));
} }
if (!var8.isEmpty()) if (!var8.isEmpty())
@ -150,7 +150,7 @@ public class BlockPressurePlate extends Block
par1World.notifyBlocksOfNeighborChange(par2, par3, par4, this.blockID); par1World.notifyBlocksOfNeighborChange(par2, par3, par4, this.blockID);
par1World.notifyBlocksOfNeighborChange(par2, par3 - 1, par4, this.blockID); par1World.notifyBlocksOfNeighborChange(par2, par3 - 1, par4, this.blockID);
par1World.markBlocksDirty(par2, par3, par4, par2, par3, par4); par1World.markBlocksDirty(par2, par3, par4, par2, par3, par4);
par1World.playSoundEffect((double)par2.doubleValue() + 0.5D, (double)par3 + 0.1D, (double)par4.doubleValue() + 0.5D, "random.click", 0.3F, 0.6F); par1World.playSoundEffect((float)par2.doubleValue() + 0.5D, (float)par3 + 0.1D, (float)par4.doubleValue() + 0.5D, "random.click", 0.3F, 0.6F);
} }
if (!var6 && var5) if (!var6 && var5)
@ -159,7 +159,7 @@ public class BlockPressurePlate extends Block
par1World.notifyBlocksOfNeighborChange(par2, par3, par4, this.blockID); par1World.notifyBlocksOfNeighborChange(par2, par3, par4, this.blockID);
par1World.notifyBlocksOfNeighborChange(par2, par3 - 1, par4, this.blockID); par1World.notifyBlocksOfNeighborChange(par2, par3 - 1, par4, this.blockID);
par1World.markBlocksDirty(par2, par3, par4, par2, par3, par4); par1World.markBlocksDirty(par2, par3, par4, par2, par3, par4);
par1World.playSoundEffect((double)par2.doubleValue() + 0.5D, (double)par3 + 0.1D, (double)par4.doubleValue() + 0.5D, "random.click", 0.3F, 0.5F); par1World.playSoundEffect((float)par2.doubleValue() + 0.5D, (float)par3 + 0.1D, (float)par4.doubleValue() + 0.5D, "random.click", 0.3F, 0.5F);
} }
if (var6) if (var6)

@ -65,7 +65,7 @@ public class BlockPumpkin extends BlockDirectional
par1World.setBlock(par2, par3 - 1, par4, 0); par1World.setBlock(par2, par3 - 1, par4, 0);
par1World.setBlock(par2, par3 - 2, par4, 0); par1World.setBlock(par2, par3 - 2, par4, 0);
EntitySnowman var9 = new EntitySnowman(par1World); EntitySnowman var9 = new EntitySnowman(par1World);
var9.setLocationAndAngles((double)par2.doubleValue() + 0.5D, (double)par3 - 1.95D, (double)par4.doubleValue() + 0.5D, 0.0F, 0.0F); var9.setLocationAndAngles((float)par2.doubleValue() + 0.5D, (float)par3 - 1.95D, (float)par4.doubleValue() + 0.5D, 0.0F, 0.0F);
par1World.spawnEntityInWorld(var9); par1World.spawnEntityInWorld(var9);
par1World.notifyBlockChange(par2, par3, par4, 0); par1World.notifyBlockChange(par2, par3, par4, 0);
par1World.notifyBlockChange(par2, par3 - 1, par4, 0); par1World.notifyBlockChange(par2, par3 - 1, par4, 0);
@ -74,7 +74,7 @@ public class BlockPumpkin extends BlockDirectional
for (int var10 = 0; var10 < 120; ++var10) for (int var10 = 0; var10 < 120; ++var10)
{ {
par1World.spawnParticle("snowshovel", (double)par2.doubleValue() + par1World.rand.nextDouble(), (double)(par3 - 2) + par1World.rand.nextDouble() * 2.5D, (double)par4.doubleValue() + par1World.rand.nextDouble(), 0.0D, 0.0D, 0.0D); par1World.spawnParticle("snowshovel", (float)par2.doubleValue() + par1World.rand.nextDouble(), (float)(par3 - 2) + par1World.rand.nextDouble() * 2.5D, (float)par4.doubleValue() + par1World.rand.nextDouble(), 0.0D, 0.0D, 0.0D);
} }
} }
else if (par1World.getBlockId(par2, par3 - 1, par4) == Block.blockSteel.blockID && par1World.getBlockId(par2, par3 - 2, par4) == Block.blockSteel.blockID) else if (par1World.getBlockId(par2, par3 - 1, par4) == Block.blockSteel.blockID && par1World.getBlockId(par2, par3 - 2, par4) == Block.blockSteel.blockID)
@ -101,12 +101,12 @@ public class BlockPumpkin extends BlockDirectional
EntityIronGolem var7 = new EntityIronGolem(par1World); EntityIronGolem var7 = new EntityIronGolem(par1World);
var7.setBit1FlagTo(true); var7.setBit1FlagTo(true);
var7.setLocationAndAngles((double)par2.doubleValue() + 0.5D, (double)par3 - 1.95D, (double)par4.doubleValue() + 0.5D, 0.0F, 0.0F); var7.setLocationAndAngles((float)par2.doubleValue() + 0.5D, (float)par3 - 1.95D, (float)par4.doubleValue() + 0.5D, 0.0F, 0.0F);
par1World.spawnEntityInWorld(var7); par1World.spawnEntityInWorld(var7);
for (int var8 = 0; var8 < 120; ++var8) for (int var8 = 0; var8 < 120; ++var8)
{ {
par1World.spawnParticle("snowballpoof", (double)par2.doubleValue() + par1World.rand.nextDouble(), (double)(par3 - 2) + par1World.rand.nextDouble() * 3.9D, (double)par4.doubleValue() + par1World.rand.nextDouble(), 0.0D, 0.0D, 0.0D); par1World.spawnParticle("snowballpoof", (float)par2.doubleValue() + par1World.rand.nextDouble(), (float)(par3 - 2) + par1World.rand.nextDouble() * 3.9D, (float)par4.doubleValue() + par1World.rand.nextDouble(), 0.0D, 0.0D, 0.0D);
} }
par1World.notifyBlockChange(par2, par3, par4, 0); par1World.notifyBlockChange(par2, par3, par4, 0);
@ -141,7 +141,7 @@ public class BlockPumpkin extends BlockDirectional
*/ */
public void onBlockPlacedBy(World par1World, BigInteger par2, int par3, BigInteger par4, EntityLiving par5EntityLiving) public void onBlockPlacedBy(World par1World, BigInteger par2, int par3, BigInteger par4, EntityLiving par5EntityLiving)
{ {
int var6 = MathHelper.floor_double((double)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 2.5D) & 3; int var6 = MathHelper.floor_double((float)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 2.5D) & 3;
par1World.setBlockMetadataWithNotify(par2, par3, par4, var6); par1World.setBlockMetadataWithNotify(par2, par3, par4, var6);
} }
} }

@ -137,41 +137,41 @@ public class BlockRedstoneOre extends Block
for (int var8 = 0; var8 < 6; ++var8) for (int var8 = 0; var8 < 6; ++var8)
{ {
double var9 = (double)((float)par2.floatValue() + var5.nextFloat()); double var9 = (float)((float)par2.floatValue() + var5.nextFloat());
double var11 = (double)((float)par3 + var5.nextFloat()); double var11 = (float)((float)par3 + var5.nextFloat());
double var13 = (double)((float)par4.floatValue() + var5.nextFloat()); double var13 = (float)((float)par4.floatValue() + var5.nextFloat());
if (var8 == 0 && !par1World.isBlockOpaqueCube(par2, par3 + 1, par4)) if (var8 == 0 && !par1World.isBlockOpaqueCube(par2, par3 + 1, par4))
{ {
var11 = (double)(par3 + 1) + var6; var11 = (float)(par3 + 1) + var6;
} }
if (var8 == 1 && !par1World.isBlockOpaqueCube(par2, par3 - 1, par4)) if (var8 == 1 && !par1World.isBlockOpaqueCube(par2, par3 - 1, par4))
{ {
var11 = (double)(par3 + 0) - var6; var11 = (float)(par3 + 0) - var6;
} }
if (var8 == 2 && !par1World.isBlockOpaqueCube(par2, par3, par4.add(BigInteger.ONE))) if (var8 == 2 && !par1World.isBlockOpaqueCube(par2, par3, par4.add(BigInteger.ONE)))
{ {
var13 = (double)(par4.add(BigInteger.ONE).doubleValue()) + var6; var13 = (float)(par4.add(BigInteger.ONE).doubleValue()) + var6;
} }
if (var8 == 3 && !par1World.isBlockOpaqueCube(par2, par3, par4.subtract(BigInteger.ONE))) if (var8 == 3 && !par1World.isBlockOpaqueCube(par2, par3, par4.subtract(BigInteger.ONE)))
{ {
var13 = (double)(par4.doubleValue()) - var6; var13 = (float)(par4.doubleValue()) - var6;
} }
if (var8 == 4 && !par1World.isBlockOpaqueCube(par2.add(BigInteger.ONE), par3, par4)) if (var8 == 4 && !par1World.isBlockOpaqueCube(par2.add(BigInteger.ONE), par3, par4))
{ {
var9 = (double)(par2.add(BigInteger.ONE).doubleValue()) + var6; var9 = (float)(par2.add(BigInteger.ONE).doubleValue()) + var6;
} }
if (var8 == 5 && !par1World.isBlockOpaqueCube(par2.subtract(BigInteger.ONE), par3, par4)) if (var8 == 5 && !par1World.isBlockOpaqueCube(par2.subtract(BigInteger.ONE), par3, par4))
{ {
var9 = (double)(par2.doubleValue()) - var6; var9 = (float)(par2.doubleValue()) - var6;
} }
if (var9 < (double)par2.doubleValue() || var9 > (double)(par2.add(BigInteger.ONE).doubleValue()) || var11 < 0.0D || var11 > (double)(par3 + 1) || var13 < (double)par4.doubleValue() || var13 > (double)(par4.add(BigInteger.ONE).doubleValue())) if (var9 < (float)par2.doubleValue() || var9 > (float)(par2.add(BigInteger.ONE).doubleValue()) || var11 < 0.0D || var11 > (float)(par3 + 1) || var13 < (float)par4.doubleValue() || var13 > (float)(par4.add(BigInteger.ONE).doubleValue()))
{ {
par1World.spawnParticle("reddust", var9, var11, var13, 0.0D, 0.0D, 0.0D); par1World.spawnParticle("reddust", var9, var11, var13, 0.0D, 0.0D, 0.0D);
} }

@ -204,7 +204,7 @@ public class BlockRedstoneRepeater extends BlockDirectional
*/ */
public void onBlockPlacedBy(World par1World, BigInteger par2, int par3, BigInteger par4, EntityLiving par5EntityLiving) public void onBlockPlacedBy(World par1World, BigInteger par2, int par3, BigInteger par4, EntityLiving par5EntityLiving)
{ {
int var6 = ((MathHelper.floor_double((double)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3) + 2) % 4; int var6 = ((MathHelper.floor_double((float)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3) + 2) % 4;
par1World.setBlockMetadataWithNotify(par2, par3, par4, var6); par1World.setBlockMetadataWithNotify(par2, par3, par4, var6);
boolean var7 = this.ignoreTick(par1World, par2, par3, par4, var6); boolean var7 = this.ignoreTick(par1World, par2, par3, par4, var6);
@ -271,9 +271,9 @@ public class BlockRedstoneRepeater extends BlockDirectional
{ {
int var6 = par1World.getBlockMetadata(par2, par3, par4); int var6 = par1World.getBlockMetadata(par2, par3, par4);
int var7 = getDirection(var6); int var7 = getDirection(var6);
double var8 = (double)((float)par2.floatValue() + 0.5F) + (double)(par5Random.nextFloat() - 0.5F) * 0.2D; double var8 = (float)((float)par2.floatValue() + 0.5F) + (float)(par5Random.nextFloat() - 0.5F) * 0.2D;
double var10 = (double)((float)par3 + 0.4F) + (double)(par5Random.nextFloat() - 0.5F) * 0.2D; double var10 = (float)((float)par3 + 0.4F) + (float)(par5Random.nextFloat() - 0.5F) * 0.2D;
double var12 = (double)((float)par4.floatValue() + 0.5F) + (double)(par5Random.nextFloat() - 0.5F) * 0.2D; double var12 = (float)((float)par4.floatValue() + 0.5F) + (float)(par5Random.nextFloat() - 0.5F) * 0.2D;
double var14 = 0.0D; double var14 = 0.0D;
double var16 = 0.0D; double var16 = 0.0D;

@ -156,13 +156,13 @@ public class BlockRedstoneTorch extends BlockTorch
if (this.checkForBurnout(par1World, par2, par3, par4, true)) if (this.checkForBurnout(par1World, par2, par3, par4, true))
{ {
par1World.playSoundEffect((double)((float)par2.floatValue() + 0.5F), (double)((float)par3 + 0.5F), (double)((float)par4.floatValue() + 0.5F), "random.fizz", 0.5F, 2.6F + (par1World.rand.nextFloat() - par1World.rand.nextFloat()) * 0.8F); par1World.playSoundEffect((float)((float)par2.floatValue() + 0.5F), (float)((float)par3 + 0.5F), (float)((float)par4.floatValue() + 0.5F), "random.fizz", 0.5F, 2.6F + (par1World.rand.nextFloat() - par1World.rand.nextFloat()) * 0.8F);
for (int var8 = 0; var8 < 5; ++var8) for (int var8 = 0; var8 < 5; ++var8)
{ {
double var9 = (double)par2.doubleValue() + par5Random.nextDouble() * 0.6D + 0.2D; double var9 = (float)par2.doubleValue() + par5Random.nextDouble() * 0.6D + 0.2D;
double var11 = (double)par3 + par5Random.nextDouble() * 0.6D + 0.2D; double var11 = (float)par3 + par5Random.nextDouble() * 0.6D + 0.2D;
double var13 = (double)par4.doubleValue() + par5Random.nextDouble() * 0.6D + 0.2D; double var13 = (float)par4.doubleValue() + par5Random.nextDouble() * 0.6D + 0.2D;
par1World.spawnParticle("smoke", var9, var11, var13, 0.0D, 0.0D, 0.0D); par1World.spawnParticle("smoke", var9, var11, var13, 0.0D, 0.0D, 0.0D);
} }
} }
@ -216,9 +216,9 @@ public class BlockRedstoneTorch extends BlockTorch
if (this.torchActive) if (this.torchActive)
{ {
int var6 = par1World.getBlockMetadata(par2, par3, par4); int var6 = par1World.getBlockMetadata(par2, par3, par4);
double var7 = (double)((float)par2.floatValue() + 0.5F) + (double)(par5Random.nextFloat() - 0.5F) * 0.2D; double var7 = (float)((float)par2.floatValue() + 0.5F) + (float)(par5Random.nextFloat() - 0.5F) * 0.2D;
double var9 = (double)((float)par3 + 0.7F) + (double)(par5Random.nextFloat() - 0.5F) * 0.2D; double var9 = (float)((float)par3 + 0.7F) + (float)(par5Random.nextFloat() - 0.5F) * 0.2D;
double var11 = (double)((float)par4.floatValue() + 0.5F) + (double)(par5Random.nextFloat() - 0.5F) * 0.2D; double var11 = (float)((float)par4.floatValue() + 0.5F) + (float)(par5Random.nextFloat() - 0.5F) * 0.2D;
double var13 = 0.2199999988079071D; double var13 = 0.2199999988079071D;
double var15 = 0.27000001072883606D; double var15 = 0.27000001072883606D;

@ -506,9 +506,9 @@ public class BlockRedstoneWire extends Block
if (var6 > 0) if (var6 > 0)
{ {
double var7 = (double)par2.doubleValue() + 0.5D + ((double)par5Random.nextFloat() - 0.5D) * 0.2D; double var7 = (float)par2.doubleValue() + 0.5D + ((float)par5Random.nextFloat() - 0.5D) * 0.2D;
double var9 = (double)((float)par3 + 0.0625F); double var9 = (float)((float)par3 + 0.0625F);
double var11 = (double)par4.doubleValue() + 0.5D + ((double)par5Random.nextFloat() - 0.5D) * 0.2D; double var11 = (float)par4.doubleValue() + 0.5D + ((float)par5Random.nextFloat() - 0.5D) * 0.2D;
float var13 = (float)var6 / 15.0F; float var13 = (float)var6 / 15.0F;
float var14 = var13 * 0.6F + 0.4F; float var14 = var13 * 0.6F + 0.4F;
@ -530,7 +530,7 @@ public class BlockRedstoneWire extends Block
var16 = 0.0F; var16 = 0.0F;
} }
par1World.spawnParticle("reddust", var7, var9, var11, (double)var14, (double)var15, (double)var16); par1World.spawnParticle("reddust", var7, var9, var11, (float)var14, (float)var15, (float)var16);
} }
} }

@ -55,7 +55,7 @@ public class BlockSand extends Block
{ {
if (!par1World.isRemote) if (!par1World.isRemote)
{ {
EntityFallingSand var9 = new EntityFallingSand(par1World, (double)((float)par2.floatValue() + 0.5F), (double)((float)par3 + 0.5F), (double)((float)par4.floatValue() + 0.5F), this.blockID); EntityFallingSand var9 = new EntityFallingSand(par1World, (float)((float)par2.floatValue() + 0.5F), (float)((float)par3 + 0.5F), (float)((float)par4.floatValue() + 0.5F), this.blockID);
par1World.spawnEntityInWorld(var9); par1World.spawnEntityInWorld(var9);
} }
} }

@ -31,7 +31,7 @@ public class BlockSilverfish extends Block
if (!par1World.isRemote) if (!par1World.isRemote)
{ {
EntitySilverfish var6 = new EntitySilverfish(par1World); EntitySilverfish var6 = new EntitySilverfish(par1World);
var6.setLocationAndAngles((double)par2.doubleValue() + 0.5D, (double)par3, (double)par4.doubleValue() + 0.5D, 0.0F, 0.0F); var6.setLocationAndAngles((float)par2.doubleValue() + 0.5D, (float)par3, (float)par4.doubleValue() + 0.5D, 0.0F, 0.0F);
par1World.spawnEntityInWorld(var6); par1World.spawnEntityInWorld(var6);
var6.spawnExplosionParticle(); var6.spawnExplosionParticle();
} }

@ -20,7 +20,7 @@ public class BlockSnow extends Block
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, BigInteger par2, int par3, BigInteger par4) public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, BigInteger par2, int par3, BigInteger par4)
{ {
int var5 = par1World.getBlockMetadata(par2, par3, par4) & 7; int var5 = par1World.getBlockMetadata(par2, par3, par4) & 7;
return var5 >= 3 ? AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)par2.doubleValue() + this.minX, (double)par3 + this.minY, (double)par4.doubleValue() + this.minZ, (double)par2.doubleValue() + this.maxX, (double)((float)par3 + 0.5F), (double)par4.doubleValue() + this.maxZ) : null; return var5 >= 3 ? AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)par2.doubleValue() + this.minX, (float)par3 + this.minY, (float)par4.doubleValue() + this.minZ, (float)par2.doubleValue() + this.maxX, (float)((float)par3 + 0.5F), (float)par4.doubleValue() + this.maxZ) : null;
} }
/** /**
@ -93,10 +93,10 @@ public class BlockSnow extends Block
{ {
int var7 = Item.snowball.shiftedIndex; int var7 = Item.snowball.shiftedIndex;
float var8 = 0.7F; float var8 = 0.7F;
double var9 = (double)(par1World.rand.nextFloat() * var8) + (double)(1.0F - var8) * 0.5D; double var9 = (float)(par1World.rand.nextFloat() * var8) + (float)(1.0F - var8) * 0.5D;
double var11 = (double)(par1World.rand.nextFloat() * var8) + (double)(1.0F - var8) * 0.5D; double var11 = (float)(par1World.rand.nextFloat() * var8) + (float)(1.0F - var8) * 0.5D;
double var13 = (double)(par1World.rand.nextFloat() * var8) + (double)(1.0F - var8) * 0.5D; double var13 = (float)(par1World.rand.nextFloat() * var8) + (float)(1.0F - var8) * 0.5D;
EntityItem var15 = new EntityItem(par1World, (double)par3.doubleValue() + var9, (double)par4 + var11, (double)par5 .doubleValue()+ var13, new ItemStack(var7, 1, 0)); EntityItem var15 = new EntityItem(par1World, (float)par3.doubleValue() + var9, (float)par4 + var11, (float)par5 .doubleValue()+ var13, new ItemStack(var7, 1, 0));
var15.delayBeforeCanPickup = 10; var15.delayBeforeCanPickup = 10;
par1World.spawnEntityInWorld(var15); par1World.spawnEntityInWorld(var15);
par1World.setBlockWithNotify(par3, par4, par5, 0); par1World.setBlockWithNotify(par3, par4, par5, 0);

@ -17,7 +17,7 @@ public class BlockSoulSand extends Block
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, BigInteger par2, int par3, BigInteger par4) public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, BigInteger par2, int par3, BigInteger par4)
{ {
float var5 = 0.125F; float var5 = 0.125F;
return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)par2.doubleValue(), (double)par3, (double)par4.doubleValue(), (double)(par2.doubleValue() + 1), (double)((float)(par3 + 1) - var5), (double)(par4.doubleValue() + 1)); return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)par2.doubleValue(), (float)par3, (float)par4.doubleValue(), (float)(par2.doubleValue() + 1), (float)((float)(par3 + 1) - var5), (float)(par4.doubleValue() + 1));
} }
/** /**

@ -287,7 +287,7 @@ public class BlockStairs extends Block
*/ */
public void onBlockPlacedBy(World par1World, BigInteger par2, int par3, BigInteger par4, EntityLiving par5EntityLiving) public void onBlockPlacedBy(World par1World, BigInteger par2, int par3, BigInteger par4, EntityLiving par5EntityLiving)
{ {
int var6 = MathHelper.floor_double((double)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3; int var6 = MathHelper.floor_double((float)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
int var7 = par1World.getBlockMetadata(par2, par3, par4) & 4; int var7 = par1World.getBlockMetadata(par2, par3, par4) & 4;
if (var6 == 0) if (var6 == 0)
@ -316,7 +316,7 @@ public class BlockStairs extends Block
*/ */
public void updateBlockMetadata(World par1World, BigInteger par2, int par3, BigInteger par4, int par5, float par6, float par7, float par8) public void updateBlockMetadata(World par1World, BigInteger par2, int par3, BigInteger par4, int par5, float par6, float par7, float par8)
{ {
if (par5 == 0 || par5 != 1 && (double)par7 > 0.5D) if (par5 == 0 || par5 != 1 && (float)par7 > 0.5D)
{ {
int var9 = par1World.getBlockMetadata(par2, par3, par4); int var9 = par1World.getBlockMetadata(par2, par3, par4);
par1World.setBlockMetadataWithNotify(par2, par3, par4, var9 | 4); par1World.setBlockMetadataWithNotify(par2, par3, par4, var9 | 4);

@ -204,7 +204,7 @@ public class BlockStem extends BlockFlower
*/ */
public void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, BigInteger par2, int par3, BigInteger par4) public void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, BigInteger par2, int par3, BigInteger par4)
{ {
this.maxY = (double)((float)(par1IBlockAccess.getBlockMetadata(par2, par3, par4) * 2 + 2) / 16.0F); this.maxY = (float)((float)(par1IBlockAccess.getBlockMetadata(par2, par3, par4) * 2 + 2) / 16.0F);
float var5 = 0.125F; float var5 = 0.125F;
this.setBlockBounds(0.5F - var5, 0.0F, 0.5F - var5, 0.5F + var5, (float)this.maxY, 0.5F + var5); this.setBlockBounds(0.5F - var5, 0.0F, 0.5F - var5, 0.5F + var5, (float)this.maxY, 0.5F + var5);
} }
@ -256,7 +256,7 @@ public class BlockStem extends BlockFlower
float var11 = par1World.rand.nextFloat() * var10 + (1.0F - var10) * 0.5F; float var11 = par1World.rand.nextFloat() * var10 + (1.0F - var10) * 0.5F;
float var12 = par1World.rand.nextFloat() * var10 + (1.0F - var10) * 0.5F; float var12 = par1World.rand.nextFloat() * var10 + (1.0F - var10) * 0.5F;
float var13 = par1World.rand.nextFloat() * var10 + (1.0F - var10) * 0.5F; float var13 = par1World.rand.nextFloat() * var10 + (1.0F - var10) * 0.5F;
EntityItem var14 = new EntityItem(par1World, (double)((float)par2.floatValue() + var11), (double)((float)par3 + var12), (double)((float)par4.floatValue() + var13), new ItemStack(var8)); EntityItem var14 = new EntityItem(par1World, (float)((float)par2.floatValue() + var11), (float)((float)par3 + var12), (float)((float)par4.floatValue() + var13), new ItemStack(var8));
var14.delayBeforeCanPickup = 10; var14.delayBeforeCanPickup = 10;
par1World.spawnEntityInWorld(var14); par1World.spawnEntityInWorld(var14);
} }

@ -61,7 +61,7 @@ public class BlockTNT extends Block
{ {
if (!par1World.isRemote) if (!par1World.isRemote)
{ {
EntityTNTPrimed var5 = new EntityTNTPrimed(par1World, (double)((float)par2.floatValue() + 0.5F), (double)((float)par3 + 0.5F), (double)((float)par4.floatValue() + 0.5F)); EntityTNTPrimed var5 = new EntityTNTPrimed(par1World, (float)((float)par2.floatValue() + 0.5F), (float)((float)par3 + 0.5F), (float)((float)par4.floatValue() + 0.5F));
var5.fuse = par1World.rand.nextInt(var5.fuse / 4) + var5.fuse / 8; var5.fuse = par1World.rand.nextInt(var5.fuse / 4) + var5.fuse / 8;
par1World.spawnEntityInWorld(var5); par1World.spawnEntityInWorld(var5);
} }
@ -76,7 +76,7 @@ public class BlockTNT extends Block
{ {
if ((par5 & 1) == 1) if ((par5 & 1) == 1)
{ {
EntityTNTPrimed var6 = new EntityTNTPrimed(par1World, (double)((float)par2.floatValue() + 0.5F), (double)((float)par3 + 0.5F), (double)((float)par4.floatValue() + 0.5F)); EntityTNTPrimed var6 = new EntityTNTPrimed(par1World, (float)((float)par2.floatValue() + 0.5F), (float)((float)par3 + 0.5F), (float)((float)par4.floatValue() + 0.5F));
par1World.spawnEntityInWorld(var6); par1World.spawnEntityInWorld(var6);
par1World.playSoundAtEntity(var6, "random.fuse", 1.0F, 1.0F); par1World.playSoundAtEntity(var6, "random.fuse", 1.0F, 1.0F);
} }

@ -253,9 +253,9 @@ public class BlockTorch extends Block
public void randomDisplayTick(World par1World, BigInteger par2, int par3, BigInteger par4, Random par5Random) public void randomDisplayTick(World par1World, BigInteger par2, int par3, BigInteger par4, Random par5Random)
{ {
int var6 = par1World.getBlockMetadata(par2, par3, par4); int var6 = par1World.getBlockMetadata(par2, par3, par4);
double var7 = (double)((float)par2.floatValue() + 0.5F); double var7 = (float)((float)par2.floatValue() + 0.5F);
double var9 = (double)((float)par3 + 0.7F); double var9 = (float)((float)par3 + 0.7F);
double var11 = (double)((float)par4.floatValue() + 0.5F); double var11 = (float)((float)par4.floatValue() + 0.5F);
double var13 = 0.2199999988079071D; double var13 = 0.2199999988079071D;
double var15 = 0.27000001072883606D; double var15 = 0.27000001072883606D;

@ -222,7 +222,7 @@ public class BlockTripWire extends Block
int var5 = par1World.getBlockMetadata(par2, par3, par4); int var5 = par1World.getBlockMetadata(par2, par3, par4);
boolean var6 = (var5 & 1) == 1; boolean var6 = (var5 & 1) == 1;
boolean var7 = false; boolean var7 = false;
List var8 = par1World.getEntitiesWithinAABBExcludingEntity((Entity)null, AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)par2.doubleValue() + this.minX, (double)par3 + this.minY, (double)par4.doubleValue() + this.minZ, (double)par2.doubleValue() + this.maxX, (double)par3 + this.maxY, (double)par4.doubleValue() + this.maxZ)); List var8 = par1World.getEntitiesWithinAABBExcludingEntity((Entity)null, AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((float)par2.doubleValue() + this.minX, (float)par3 + this.minY, (float)par4.doubleValue() + this.minZ, (float)par2.doubleValue() + this.maxX, (float)par3 + this.maxY, (float)par4.doubleValue() + this.maxZ));
if (!var8.isEmpty()) if (!var8.isEmpty())
{ {

@ -269,19 +269,19 @@ public class BlockTripWireSource extends Block
{ {
if (par6 && !par8) if (par6 && !par8)
{ {
par1World.playSoundEffect((double)par2.doubleValue() + 0.5D, (double)par3 + 0.1D, (double)par4.doubleValue() + 0.5D, "random.click", 0.4F, 0.6F); par1World.playSoundEffect((float)par2.doubleValue() + 0.5D, (float)par3 + 0.1D, (float)par4.doubleValue() + 0.5D, "random.click", 0.4F, 0.6F);
} }
else if (!par6 && par8) else if (!par6 && par8)
{ {
par1World.playSoundEffect((double)par2.doubleValue() + 0.5D, (double)par3 + 0.1D, (double)par4.doubleValue() + 0.5D, "random.click", 0.4F, 0.5F); par1World.playSoundEffect((float)par2.doubleValue() + 0.5D, (float)par3 + 0.1D, (float)par4.doubleValue() + 0.5D, "random.click", 0.4F, 0.5F);
} }
else if (par5 && !par7) else if (par5 && !par7)
{ {
par1World.playSoundEffect((double)par2.doubleValue() + 0.5D, (double)par3 + 0.1D, (double)par4.doubleValue() + 0.5D, "random.click", 0.4F, 0.7F); par1World.playSoundEffect((float)par2.doubleValue() + 0.5D, (float)par3 + 0.1D, (float)par4.doubleValue() + 0.5D, "random.click", 0.4F, 0.7F);
} }
else if (!par5 && par7) else if (!par5 && par7)
{ {
par1World.playSoundEffect((double)par2.doubleValue() + 0.5D, (double)par3 + 0.1D, (double)par4.doubleValue() + 0.5D, "random.bowhit", 0.4F, 1.2F / (par1World.rand.nextFloat() * 0.2F + 0.9F)); par1World.playSoundEffect((float)par2.doubleValue() + 0.5D, (float)par3 + 0.1D, (float)par4.doubleValue() + 0.5D, "random.bowhit", 0.4F, 1.2F / (par1World.rand.nextFloat() * 0.2F + 0.9F));
} }
} }

@ -255,14 +255,14 @@ public class ChunkProviderEnd implements IChunkProvider
} }
var16 += 0.5D; var16 += 0.5D;
var18 = var18 * (double)par6 / 16.0D; var18 = var18 * (float)par6 / 16.0D;
++var13; ++var13;
double var23 = (double)par6 / 2.0D; double var23 = (float)par6 / 2.0D;
for (int var25 = 0; var25 < par6; ++var25) for (int var25 = 0; var25 < par6; ++var25)
{ {
double var26 = 0.0D; double var26 = 0.0D;
double var28 = ((double)var25 - var23) * 8.0D / var16; double var28 = ((float)var25 - var23) * 8.0D / var16;
if (var28 < 0.0D) if (var28 < 0.0D)
{ {
@ -287,13 +287,13 @@ public class ChunkProviderEnd implements IChunkProvider
} }
var26 -= 8.0D; var26 -= 8.0D;
var26 += (double)var22; var26 += (float)var22;
byte var36 = 2; byte var36 = 2;
double var37; double var37;
if (var25 > par6 / 2 - var36) if (var25 > par6 / 2 - var36)
{ {
var37 = (double)((float)(var25 - (par6 / 2 - var36)) / 64.0F); var37 = (float)((float)(var25 - (par6 / 2 - var36)) / 64.0F);
if (var37 < 0.0D) if (var37 < 0.0D)
{ {
@ -312,7 +312,7 @@ public class ChunkProviderEnd implements IChunkProvider
if (var25 < var36) if (var25 < var36)
{ {
var37 = (double)((float)(var36 - var25) / ((float)var36 - 1.0F)); var37 = (float)((float)(var36 - var25) / ((float)var36 - 1.0F));
var26 = var26 * (1.0D - var37) + -30.0D * var37; var26 = var26 * (1.0D - var37) + -30.0D * var37;
} }

@ -417,13 +417,13 @@ public class ChunkProviderGenerate implements IChunkProvider
for (int var47 = 0; var47 < par6; ++var47) for (int var47 = 0; var47 < par6; ++var47)
{ {
double var48 = (double)var17; double var48 = (float)var17;
double var26 = (double)var16; double var26 = (float)var16;
var48 += var46 * 0.2D; var48 += var46 * 0.2D;
var48 = var48 * (double)par6 / 16.0D; var48 = var48 * (float)par6 / 16.0D;
double var28 = (double)par6 / 2.0D + var48 * 4.0D; double var28 = (float)par6 / 2.0D + var48 * 4.0D;
double var30 = 0.0D; double var30 = 0.0D;
double var32 = ((double)var47 - var28) * 12.0D * 128.0D / 128.0D / var26; double var32 = ((float)var47 - var28) * 12.0D * 128.0D / 128.0D / var26;
if (var32 < 0.0D) if (var32 < 0.0D)
{ {
@ -451,7 +451,7 @@ public class ChunkProviderGenerate implements IChunkProvider
if (var47 > par6 - 4) if (var47 > par6 - 4)
{ {
double var40 = (double)((float)(var47 - (par6 - 4)) / 3.0F); double var40 = (float)((float)(var47 - (par6 - 4)) / 3.0F);
var30 = var30 * (1.0D - var40) + -10.0D * var40; var30 = var30 * (1.0D - var40) + -10.0D * var40;
} }

@ -295,12 +295,12 @@ public class ChunkProviderHell implements IChunkProvider
for (var15 = 0; var15 < par6; ++var15) for (var15 = 0; var15 < par6; ++var15)
{ {
var14[var15] = Math.cos((double)var15 * Math.PI * 6.0D / (double)par6) * 2.0D; var14[var15] = (float)Math.cos((float)var15 * (float)Math.PI * 6.0D / (float)par6) * 2.0D;
double var16 = (double)var15; double var16 = (float)var15;
if (var15 > par6 / 2) if (var15 > par6 / 2)
{ {
var16 = (double)(par6 - 1 - var15); var16 = (float)(par6 - 1 - var15);
} }
if (var16 < 4.0D) if (var16 < 4.0D)
@ -355,7 +355,7 @@ public class ChunkProviderHell implements IChunkProvider
} }
var17 += 0.5D; var17 += 0.5D;
var21 = var21 * (double)par6 / 16.0D; var21 = var21 * (float)par6 / 16.0D;
++var13; ++var13;
for (int var23 = 0; var23 < par6; ++var23) for (int var23 = 0; var23 < par6; ++var23)
@ -384,13 +384,13 @@ public class ChunkProviderHell implements IChunkProvider
if (var23 > par6 - 4) if (var23 > par6 - 4)
{ {
var34 = (double)((float)(var23 - (par6 - 4)) / 3.0F); var34 = (float)((float)(var23 - (par6 - 4)) / 3.0F);
var24 = var24 * (1.0D - var34) + -10.0D * var34; var24 = var24 * (1.0D - var34) + -10.0D * var34;
} }
if ((double)var23 < var19) if ((float)var23 < var19)
{ {
var34 = (var19 - (double)var23) / 4.0D; var34 = (var19 - (float)var23) / 4.0D;
if (var34 < 0.0D) if (var34 < 0.0D)
{ {

@ -14,7 +14,7 @@ public class ClippingHelper
{ {
for (int var13 = 0; var13 < 6; ++var13) for (int var13 = 0; var13 < 6; ++var13)
{ {
if ((double)this.frustum[var13][0] * par1 + (double)this.frustum[var13][1] * par3 + (double)this.frustum[var13][2] * par5 + (double)this.frustum[var13][3] <= 0.0D && (double)this.frustum[var13][0] * par7 + (double)this.frustum[var13][1] * par3 + (double)this.frustum[var13][2] * par5 + (double)this.frustum[var13][3] <= 0.0D && (double)this.frustum[var13][0] * par1 + (double)this.frustum[var13][1] * par9 + (double)this.frustum[var13][2] * par5 + (double)this.frustum[var13][3] <= 0.0D && (double)this.frustum[var13][0] * par7 + (double)this.frustum[var13][1] * par9 + (double)this.frustum[var13][2] * par5 + (double)this.frustum[var13][3] <= 0.0D && (double)this.frustum[var13][0] * par1 + (double)this.frustum[var13][1] * par3 + (double)this.frustum[var13][2] * par11 + (double)this.frustum[var13][3] <= 0.0D && (double)this.frustum[var13][0] * par7 + (double)this.frustum[var13][1] * par3 + (double)this.frustum[var13][2] * par11 + (double)this.frustum[var13][3] <= 0.0D && (double)this.frustum[var13][0] * par1 + (double)this.frustum[var13][1] * par9 + (double)this.frustum[var13][2] * par11 + (double)this.frustum[var13][3] <= 0.0D && (double)this.frustum[var13][0] * par7 + (double)this.frustum[var13][1] * par9 + (double)this.frustum[var13][2] * par11 + (double)this.frustum[var13][3] <= 0.0D) if ((float)this.frustum[var13][0] * par1 + (float)this.frustum[var13][1] * par3 + (float)this.frustum[var13][2] * par5 + (float)this.frustum[var13][3] <= 0.0D && (float)this.frustum[var13][0] * par7 + (float)this.frustum[var13][1] * par3 + (float)this.frustum[var13][2] * par5 + (float)this.frustum[var13][3] <= 0.0D && (float)this.frustum[var13][0] * par1 + (float)this.frustum[var13][1] * par9 + (float)this.frustum[var13][2] * par5 + (float)this.frustum[var13][3] <= 0.0D && (float)this.frustum[var13][0] * par7 + (float)this.frustum[var13][1] * par9 + (float)this.frustum[var13][2] * par5 + (float)this.frustum[var13][3] <= 0.0D && (float)this.frustum[var13][0] * par1 + (float)this.frustum[var13][1] * par3 + (float)this.frustum[var13][2] * par11 + (float)this.frustum[var13][3] <= 0.0D && (float)this.frustum[var13][0] * par7 + (float)this.frustum[var13][1] * par3 + (float)this.frustum[var13][2] * par11 + (float)this.frustum[var13][3] <= 0.0D && (float)this.frustum[var13][0] * par1 + (float)this.frustum[var13][1] * par9 + (float)this.frustum[var13][2] * par11 + (float)this.frustum[var13][3] <= 0.0D && (float)this.frustum[var13][0] * par7 + (float)this.frustum[var13][1] * par9 + (float)this.frustum[var13][2] * par11 + (float)this.frustum[var13][3] <= 0.0D)
{ {
return false; return false;
} }

@ -65,7 +65,7 @@ public class CommandServerTp extends CommandBase
BigDecimal var7 = parseBigDecimal(par1ICommandSender, par2ArrayOfStr[var5++]); BigDecimal var7 = parseBigDecimal(par1ICommandSender, par2ArrayOfStr[var5++]);
int var8 = parseInt(par1ICommandSender, par2ArrayOfStr[var5++]); int var8 = parseInt(par1ICommandSender, par2ArrayOfStr[var5++]);
BigDecimal var9 = parseBigDecimal(par1ICommandSender, par2ArrayOfStr[var5++]); BigDecimal var9 = parseBigDecimal(par1ICommandSender, par2ArrayOfStr[var5++]);
var4.serverForThisPlayer.setPlayerLocation(var7.add(BigDecimal.valueOf(0.5)), (double)var8, var9.add(BigDecimal.valueOf(0.5)), var4.rotationYaw, var4.rotationPitch); var4.serverForThisPlayer.setPlayerLocation(var7.add(BigDecimal.valueOf(0.5)), (float)var8, var9.add(BigDecimal.valueOf(0.5)), var4.rotationYaw, var4.rotationPitch);
notifyAdmins(par1ICommandSender, "commands.tp.coordinates", new Object[] {var4.getEntityName(), var7.toString(), Integer.valueOf(var8), var9.toString()}); notifyAdmins(par1ICommandSender, "commands.tp.coordinates", new Object[] {var4.getEntityName(), var7.toString(), Integer.valueOf(var8), var9.toString()});
} }
} }

@ -121,7 +121,7 @@ abstract class ComponentVillage extends StructureComponent
++this.villagersSpawned; ++this.villagersSpawned;
EntityVillager var11 = new EntityVillager(par1World, this.getVillagerType(var7)); EntityVillager var11 = new EntityVillager(par1World, this.getVillagerType(var7));
var11.setLocationAndAngles((double)var8 + 0.5D, (double)var9, (double)var10 + 0.5D, 0.0F, 0.0F); var11.setLocationAndAngles((float)var8 + 0.5D, (float)var9, (float)var10 + 0.5D, 0.0F, 0.0F);
par1World.spawnEntityInWorld(var11); par1World.spawnEntityInWorld(var11);
} }
} }

@ -40,7 +40,7 @@ class ContainerCreative extends Container
public void scrollTo(float par1) public void scrollTo(float par1)
{ {
int var2 = this.itemList.size() / 9 - 5 + 1; int var2 = this.itemList.size() / 9 - 5 + 1;
int var3 = (int)((double)(par1 * (float)var2) + 0.5D); int var3 = (int)((float)(par1 * (float)var2) + 0.5D);
if (var3 < 0) if (var3 < 0)
{ {

@ -218,7 +218,7 @@ public class ContainerEnchantment extends Container
public boolean canInteractWith(EntityPlayer par1EntityPlayer) public boolean canInteractWith(EntityPlayer par1EntityPlayer)
{ {
return this.worldPointer.getBlockId(this.posX, this.posY, this.posZ) != Block.enchantmentTable.blockID ? false : par1EntityPlayer.getDistanceSq((double)this.posX.doubleValue() + 0.5D, (double)this.posY + 0.5D, (double)this.posZ.doubleValue() + 0.5D) <= 64.0D; return this.worldPointer.getBlockId(this.posX, this.posY, this.posZ) != Block.enchantmentTable.blockID ? false : par1EntityPlayer.getDistanceSq((float)this.posX.doubleValue() + 0.5D, (float)this.posY + 0.5D, (float)this.posZ.doubleValue() + 0.5D) <= 64.0D;
} }
/** /**

@ -77,7 +77,7 @@ public class ContainerWorkbench extends Container
public boolean canInteractWith(EntityPlayer par1EntityPlayer) public boolean canInteractWith(EntityPlayer par1EntityPlayer)
{ {
return this.worldObj.getBlockId(this.posX, this.posY, this.posZ) != Block.workbench.blockID ? false : par1EntityPlayer.getDistanceSq((double)this.posX.doubleValue() + 0.5D, (double)this.posY + 0.5D, (double)this.posZ.doubleValue() + 0.5D) <= 64.0D; return this.worldObj.getBlockId(this.posX, this.posY, this.posZ) != Block.workbench.blockID ? false : par1EntityPlayer.getDistanceSq((float)this.posX.doubleValue() + 0.5D, (float)this.posY + 0.5D, (float)this.posZ.doubleValue() + 0.5D) <= 64.0D;
} }
/** /**

@ -145,7 +145,7 @@ public class DedicatedServer extends MinecraftServer implements IServer
logger.info("Preparing level \"" + this.getFolderName() + "\""); logger.info("Preparing level \"" + this.getFolderName() + "\"");
this.loadAllDimensions(this.getFolderName(), this.getFolderName(), var8, var16); this.loadAllDimensions(this.getFolderName(), this.getFolderName(), var8, var16);
long var11 = System.nanoTime() - var4; long var11 = System.nanoTime() - var4;
String var13 = String.format("%.3fs", new Object[] {Double.valueOf((double)var11 / 1.0E9D)}); String var13 = String.format("%.3fs", new Object[] {Double.valueOf((float)var11 / 1.0E9D)});
logger.info("Done (" + var13 + ")! For help, type \"help\" or \"?\""); logger.info("Done (" + var13 + ")! For help, type \"help\" or \"?\"");
if (this.settings.getOrSetBoolProperty("enable-query", false)) if (this.settings.getOrSetBoolProperty("enable-query", false))

@ -70,9 +70,9 @@ public class EffectRenderer
float var5 = ActiveRenderInfo.rotationYZ; float var5 = ActiveRenderInfo.rotationYZ;
float var6 = ActiveRenderInfo.rotationXY; float var6 = ActiveRenderInfo.rotationXY;
float var7 = ActiveRenderInfo.rotationXZ; float var7 = ActiveRenderInfo.rotationXZ;
EntityFX.interpPosX = par1Entity.lastTickPosX + (par1Entity.posX - par1Entity.lastTickPosX) * (double)par2; EntityFX.interpPosX = par1Entity.lastTickPosX + (par1Entity.posX - par1Entity.lastTickPosX) * (float)par2;
EntityFX.interpPosY = par1Entity.lastTickPosY + (par1Entity.posY - par1Entity.lastTickPosY) * (double)par2; EntityFX.interpPosY = par1Entity.lastTickPosY + (par1Entity.posY - par1Entity.lastTickPosY) * (float)par2;
EntityFX.interpPosZ = par1Entity.lastTickPosZ + (par1Entity.posZ - par1Entity.lastTickPosZ) * (double)par2; EntityFX.interpPosZ = par1Entity.lastTickPosZ + (par1Entity.posZ - par1Entity.lastTickPosZ) * (float)par2;
for (int var8 = 0; var8 < 3; ++var8) for (int var8 = 0; var8 < 3; ++var8)
{ {
@ -157,11 +157,11 @@ public class EffectRenderer
{ {
for (int var10 = 0; var10 < var7; ++var10) for (int var10 = 0; var10 < var7; ++var10)
{ {
double var11 = (double)par1.doubleValue() + ((double)var8 + 0.5D) / (double)var7; double var11 = (float)par1.doubleValue() + ((float)var8 + 0.5D) / (float)var7;
double var13 = (double)par2 + ((double)var9 + 0.5D) / (double)var7; double var13 = (float)par2 + ((float)var9 + 0.5D) / (float)var7;
double var15 = (double)par3.doubleValue() + ((double)var10 + 0.5D) / (double)var7; double var15 = (float)par3.doubleValue() + ((float)var10 + 0.5D) / (float)var7;
int var17 = this.rand.nextInt(6); int var17 = this.rand.nextInt(6);
this.addEffect((new EntityDiggingFX(this.worldObj, var11, var13, var15, var11 - (double)par1.doubleValue() - 0.5D, var13 - (double)par2 - 0.5D, var15 - (double)par3.doubleValue() - 0.5D, var6, var17, par5)).func_70596_a(par1, par2, par3)); this.addEffect((new EntityDiggingFX(this.worldObj, var11, var13, var15, var11 - (float)par1.doubleValue() - 0.5D, var13 - (float)par2 - 0.5D, var15 - (float)par3.doubleValue() - 0.5D, var6, var17, par5)).func_70596_a(par1, par2, par3));
} }
} }
} }
@ -179,38 +179,38 @@ public class EffectRenderer
{ {
Block var6 = Block.blocksList[var5]; Block var6 = Block.blocksList[var5];
float var7 = 0.1F; float var7 = 0.1F;
double var8 = (double)par1.doubleValue() + this.rand.nextDouble() * (var6.maxX - var6.minX - (double)(var7 * 2.0F)) + (double)var7 + var6.minX; double var8 = (float)par1.doubleValue() + this.rand.nextDouble() * (var6.maxX - var6.minX - (float)(var7 * 2.0F)) + (float)var7 + var6.minX;
double var10 = (double)par2 + this.rand.nextDouble() * (var6.maxY - var6.minY - (double)(var7 * 2.0F)) + (double)var7 + var6.minY; double var10 = (float)par2 + this.rand.nextDouble() * (var6.maxY - var6.minY - (float)(var7 * 2.0F)) + (float)var7 + var6.minY;
double var12 = (double)par3.doubleValue() + this.rand.nextDouble() * (var6.maxZ - var6.minZ - (double)(var7 * 2.0F)) + (double)var7 + var6.minZ; double var12 = (float)par3.doubleValue() + this.rand.nextDouble() * (var6.maxZ - var6.minZ - (float)(var7 * 2.0F)) + (float)var7 + var6.minZ;
if (par4 == 0) if (par4 == 0)
{ {
var10 = (double)par2 + var6.minY - (double)var7; var10 = (float)par2 + var6.minY - (float)var7;
} }
if (par4 == 1) if (par4 == 1)
{ {
var10 = (double)par2 + var6.maxY + (double)var7; var10 = (float)par2 + var6.maxY + (float)var7;
} }
if (par4 == 2) if (par4 == 2)
{ {
var12 = (double)par3.doubleValue() + var6.minZ - (double)var7; var12 = (float)par3.doubleValue() + var6.minZ - (float)var7;
} }
if (par4 == 3) if (par4 == 3)
{ {
var12 = (double)par3.doubleValue() + var6.maxZ + (double)var7; var12 = (float)par3.doubleValue() + var6.maxZ + (float)var7;
} }
if (par4 == 4) if (par4 == 4)
{ {
var8 = (double)par1.doubleValue() + var6.minX - (double)var7; var8 = (float)par1.doubleValue() + var6.minX - (float)var7;
} }
if (par4 == 5) if (par4 == 5)
{ {
var8 = (double)par1.doubleValue() + var6.maxX + (double)var7; var8 = (float)par1.doubleValue() + var6.maxX + (float)var7;
} }
this.addEffect((new EntityDiggingFX(this.worldObj, var8, var10, var12, 0.0D, 0.0D, 0.0D, var6, par4, this.worldObj.getBlockMetadata(par1, par2, par3))).func_70596_a(par1, par2, par3).multiplyVelocity(0.2F).multipleParticleScaleBy(0.6F)); this.addEffect((new EntityDiggingFX(this.worldObj, var8, var10, var12, 0.0D, 0.0D, 0.0D, var6, par4, this.worldObj.getBlockMetadata(par1, par2, par3))).func_70596_a(par1, par2, par3).multiplyVelocity(0.2F).multipleParticleScaleBy(0.6F));

@ -280,23 +280,23 @@ public abstract class Entity
this.height = par2; this.height = par2;
float var3 = par1 % 2.0F; float var3 = par1 % 2.0F;
if ((double)var3 < 0.375D) if ((float)var3 < 0.375D)
{ {
this.myEntitySize = EnumEntitySize.SIZE_1; this.myEntitySize = EnumEntitySize.SIZE_1;
} }
else if ((double)var3 < 0.75D) else if ((float)var3 < 0.75D)
{ {
this.myEntitySize = EnumEntitySize.SIZE_2; this.myEntitySize = EnumEntitySize.SIZE_2;
} }
else if ((double)var3 < 1.0D) else if ((float)var3 < 1.0D)
{ {
this.myEntitySize = EnumEntitySize.SIZE_3; this.myEntitySize = EnumEntitySize.SIZE_3;
} }
else if ((double)var3 < 1.375D) else if ((float)var3 < 1.375D)
{ {
this.myEntitySize = EnumEntitySize.SIZE_4; this.myEntitySize = EnumEntitySize.SIZE_4;
} }
else if ((double)var3 < 1.75D) else if ((float)var3 < 1.75D)
{ {
this.myEntitySize = EnumEntitySize.SIZE_5; this.myEntitySize = EnumEntitySize.SIZE_5;
} }
@ -325,7 +325,7 @@ public abstract class Entity
this.posZ = par5; this.posZ = par5;
float var7 = this.width / 2.0F; float var7 = this.width / 2.0F;
float var8 = this.height; float var8 = this.height;
this.boundingBox.setBounds(par1 - (double)var7, par3 - (double)this.yOffset + (double)this.ySize, par5 - (double)var7, par1 + (double)var7, par3 - (double)this.yOffset + (double)this.ySize + (double)var8, par5 + (double)var7); this.boundingBox.setBounds(par1 - (float)var7, par3 - (float)this.yOffset + (float)this.ySize, par5 - (float)var7, par1 + (float)var7, par3 - (float)this.yOffset + (float)this.ySize + (float)var8, par5 + (float)var7);
} }
/** /**
@ -336,8 +336,8 @@ public abstract class Entity
{ {
float var3 = this.rotationPitch; float var3 = this.rotationPitch;
float var4 = this.rotationYaw; float var4 = this.rotationYaw;
this.rotationYaw = (float)((double)this.rotationYaw + (double)par1 * 0.15D); this.rotationYaw = (float)((float)this.rotationYaw + (float)par1 * 0.15D);
this.rotationPitch = (float)((double)this.rotationPitch - (double)par2 * 0.15D); this.rotationPitch = (float)((float)this.rotationPitch - (float)par2 * 0.15D);
if (this.rotationPitch < -90.0F) if (this.rotationPitch < -90.0F)
{ {
@ -385,13 +385,13 @@ public abstract class Entity
if (this.isSprinting() && !this.isInWater()) if (this.isSprinting() && !this.isInWater())
{ {
BigInteger x = MathHelper.floor_double_BigInteger(this.posX); BigInteger x = MathHelper.floor_double_BigInteger(this.posX);
int y = MathHelper.floor_double(this.posY - 0.20000000298023224D - (double)this.yOffset); int y = MathHelper.floor_double(this.posY - 0.20000000298023224D - (float)this.yOffset);
BigInteger z = MathHelper.floor_double_BigInteger(this.posZ); BigInteger z = MathHelper.floor_double_BigInteger(this.posZ);
int var4 = this.worldObj.getBlockId(x, y, z); int var4 = this.worldObj.getBlockId(x, y, z);
if (var4 > 0) if (var4 > 0)
{ {
this.worldObj.spawnParticle("tilecrack_" + var4, this.posX + ((double)this.rand.nextFloat() - 0.5D) * (double)this.width, this.boundingBox.minY + 0.1D, this.posZ + ((double)this.rand.nextFloat() - 0.5D) * (double)this.width, -this.motionX * 4.0D, 1.5D, -this.motionZ * 4.0D); this.worldObj.spawnParticle("tilecrack_" + var4, this.posX + ((float)this.rand.nextFloat() - 0.5D) * (float)this.width, this.boundingBox.minY + 0.1D, this.posZ + ((float)this.rand.nextFloat() - 0.5D) * (float)this.width, -this.motionX * 4.0D, 1.5D, -this.motionZ * 4.0D);
} }
} }
@ -415,14 +415,14 @@ public abstract class Entity
{ {
var8 = (this.rand.nextFloat() * 2.0F - 1.0F) * this.width; var8 = (this.rand.nextFloat() * 2.0F - 1.0F) * this.width;
var5 = (this.rand.nextFloat() * 2.0F - 1.0F) * this.width; var5 = (this.rand.nextFloat() * 2.0F - 1.0F) * this.width;
this.worldObj.spawnParticle("bubble", this.posX + (double)var8, (double)(var7 + 1.0F), this.posZ + (double)var5, this.motionX, this.motionY - (double)(this.rand.nextFloat() * 0.2F), this.motionZ); this.worldObj.spawnParticle("bubble", this.posX + (float)var8, (float)(var7 + 1.0F), this.posZ + (float)var5, this.motionX, this.motionY - (float)(this.rand.nextFloat() * 0.2F), this.motionZ);
} }
for (var3 = 0; (float)var3 < 1.0F + this.width * 20.0F; ++var3) for (var3 = 0; (float)var3 < 1.0F + this.width * 20.0F; ++var3)
{ {
var8 = (this.rand.nextFloat() * 2.0F - 1.0F) * this.width; var8 = (this.rand.nextFloat() * 2.0F - 1.0F) * this.width;
var5 = (this.rand.nextFloat() * 2.0F - 1.0F) * this.width; var5 = (this.rand.nextFloat() * 2.0F - 1.0F) * this.width;
this.worldObj.spawnParticle("splash", this.posX + (double)var8, (double)(var7 + 1.0F), this.posZ + (double)var5, this.motionX, this.motionY, this.motionZ); this.worldObj.spawnParticle("splash", this.posX + (float)var8, (float)(var7 + 1.0F), this.posZ + (float)var5, this.motionX, this.motionY, this.motionZ);
} }
} }
@ -542,7 +542,7 @@ public abstract class Entity
{ {
this.boundingBox.offset(par1, par3, par5); this.boundingBox.offset(par1, par3, par5);
this.posX = (this.boundingBox.minX + this.boundingBox.maxX) / 2.0D; this.posX = (this.boundingBox.minX + this.boundingBox.maxX) / 2.0D;
this.posY = this.boundingBox.minY + (double)this.yOffset - (double)this.ySize; this.posY = this.boundingBox.minY + (float)this.yOffset - (float)this.ySize;
this.posZ = (this.boundingBox.minZ + this.boundingBox.maxZ) / 2.0D; this.posZ = (this.boundingBox.minZ + this.boundingBox.maxZ) / 2.0D;
} }
else else
@ -696,7 +696,7 @@ public abstract class Entity
var23 = par3; var23 = par3;
double var25 = par5; double var25 = par5;
par1 = var11; par1 = var11;
par3 = (double)this.stepHeight; par3 = (float)this.stepHeight;
par5 = var15; par5 = var15;
AxisAlignedBB var27 = this.boundingBox.copy(); AxisAlignedBB var27 = this.boundingBox.copy();
this.boundingBox.setBB(var17); this.boundingBox.setBB(var17);
@ -754,7 +754,7 @@ public abstract class Entity
} }
else else
{ {
par3 = (double)(-this.stepHeight); par3 = (float)(-this.stepHeight);
for (var28 = var30.iterator(); var28.hasNext(); par3 = var29.calculateYOffset(this.boundingBox, par3)) for (var28 = var30.iterator(); var28.hasNext(); par3 = var29.calculateYOffset(this.boundingBox, par3))
{ {
@ -773,11 +773,11 @@ public abstract class Entity
} }
else else
{ {
double var37 = this.boundingBox.minY - (double)((int)this.boundingBox.minY); double var37 = this.boundingBox.minY - (float)((int)this.boundingBox.minY);
if (var37 > 0.0D) if (var37 > 0.0D)
{ {
this.ySize = (float)((double)this.ySize + var37 + 0.01D); this.ySize = (float)((float)this.ySize + var37 + 0.01D);
} }
} }
} }
@ -785,7 +785,7 @@ public abstract class Entity
this.worldObj.theProfiler.endSection(); this.worldObj.theProfiler.endSection();
this.worldObj.theProfiler.startSection("rest"); this.worldObj.theProfiler.startSection("rest");
this.posX = (this.boundingBox.minX + this.boundingBox.maxX) / 2.0D; this.posX = (this.boundingBox.minX + this.boundingBox.maxX) / 2.0D;
this.posY = this.boundingBox.minY + (double)this.yOffset - (double)this.ySize; this.posY = this.boundingBox.minY + (float)this.yOffset - (float)this.ySize;
this.posZ = (this.boundingBox.minZ + this.boundingBox.maxZ) / 2.0D; this.posZ = (this.boundingBox.minZ + this.boundingBox.maxZ) / 2.0D;
this.isCollidedHorizontally = var11 != par1 || var15 != par5; this.isCollidedHorizontally = var11 != par1 || var15 != par5;
this.isCollidedVertically = var13 != par3; this.isCollidedVertically = var13 != par3;
@ -813,9 +813,9 @@ public abstract class Entity
if (this.canTriggerWalking() && !var18 && this.ridingEntity == null) if (this.canTriggerWalking() && !var18 && this.ridingEntity == null)
{ {
this.distanceWalkedModified = (float)((double)this.distanceWalkedModified + (double)MathHelper.sqrt_double(var33 * var33 + var23 * var23) * 0.6D); this.distanceWalkedModified = (float)((float)this.distanceWalkedModified + (float)MathHelper.sqrt_double(var33 * var33 + var23 * var23) * 0.6D);
BigInteger var34 = MathHelper.floor_double_BigInteger(this.posX); BigInteger var34 = MathHelper.floor_double_BigInteger(this.posX);
int var26 = MathHelper.floor_double(this.posY - 0.20000000298023224D - (double)this.yOffset); int var26 = MathHelper.floor_double(this.posY - 0.20000000298023224D - (float)this.yOffset);
BigInteger var36 = MathHelper.floor_double_BigInteger(this.posZ); BigInteger var36 = MathHelper.floor_double_BigInteger(this.posZ);
int var38 = this.worldObj.getBlockId(var34, var26, var36); int var38 = this.worldObj.getBlockId(var34, var26, var36);
@ -940,7 +940,7 @@ public abstract class Entity
if (this instanceof EntityLiving) if (this instanceof EntityLiving)
{ {
BigInteger var4 = MathHelper.floor_double_BigInteger(this.posX); BigInteger var4 = MathHelper.floor_double_BigInteger(this.posX);
int var5 = MathHelper.floor_double(this.posY - 0.20000000298023224D - (double)this.yOffset); int var5 = MathHelper.floor_double(this.posY - 0.20000000298023224D - (float)this.yOffset);
BigInteger var6 = MathHelper.floor_double_BigInteger(this.posZ); BigInteger var6 = MathHelper.floor_double_BigInteger(this.posZ);
int var7 = this.worldObj.getBlockId(var4, var5, var6); int var7 = this.worldObj.getBlockId(var4, var5, var6);
@ -961,7 +961,7 @@ public abstract class Entity
} }
else if (par1 < 0.0D) else if (par1 < 0.0D)
{ {
this.fallDistance = (float)((double)this.fallDistance - par1); this.fallDistance = (float)((float)this.fallDistance - par1);
} }
} }
@ -1031,7 +1031,7 @@ public abstract class Entity
*/ */
public boolean isInsideOfMaterial(Material par1Material) public boolean isInsideOfMaterial(Material par1Material)
{ {
double var2 = this.posY + (double)this.getEyeHeight(); double var2 = this.posY + (float)this.getEyeHeight();
BigInteger var4 = MathHelper.floor_double_BigInteger(this.posX); BigInteger var4 = MathHelper.floor_double_BigInteger(this.posX);
int var5 = MathHelper.floor_float((float)MathHelper.floor_double(var2)); int var5 = MathHelper.floor_float((float)MathHelper.floor_double(var2));
BigInteger var6 = MathHelper.floor_double_BigInteger(this.posZ); BigInteger var6 = MathHelper.floor_double_BigInteger(this.posZ);
@ -1041,7 +1041,7 @@ public abstract class Entity
{ {
float var8 = BlockFluid.getFluidHeightPercent(this.worldObj.getBlockMetadata(var4, var5, var6)) - 0.11111111F; float var8 = BlockFluid.getFluidHeightPercent(this.worldObj.getBlockMetadata(var4, var5, var6)) - 0.11111111F;
float var9 = (float)(var5 + 1) - var8; float var9 = (float)(var5 + 1) - var8;
return var2 < (double)var9; return var2 < (float)var9;
} }
else else
{ {
@ -1081,10 +1081,10 @@ public abstract class Entity
var4 = par3 / var4; var4 = par3 / var4;
par1 *= var4; par1 *= var4;
par2 *= var4; par2 *= var4;
float var5 = MathHelper.sin(this.rotationYaw * (float)Math.PI / 180.0F); float var5 = MathHelper.sin(this.rotationYaw * (float)(float)Math.PI / 180.0F);
float var6 = MathHelper.cos(this.rotationYaw * (float)Math.PI / 180.0F); float var6 = MathHelper.cos(this.rotationYaw * (float)(float)Math.PI / 180.0F);
this.motionX += (double)(par1 * var6 - par2 * var5); this.motionX += (float)(par1 * var6 - par2 * var5);
this.motionZ += (double)(par2 * var6 + par1 * var5); this.motionZ += (float)(par2 * var6 + par1 * var5);
} }
} }
@ -1096,7 +1096,7 @@ public abstract class Entity
if (this.worldObj.blockExists(var2, 0, var3)) if (this.worldObj.blockExists(var2, 0, var3))
{ {
double var4 = (this.boundingBox.maxY - this.boundingBox.minY) * 0.66D; double var4 = (this.boundingBox.maxY - this.boundingBox.minY) * 0.66D;
int var6 = MathHelper.floor_double(this.posY - (double)this.yOffset + var4); int var6 = MathHelper.floor_double(this.posY - (float)this.yOffset + var4);
return this.worldObj.getLightBrightnessForSkyBlocks(var2, var6, var3, 0); return this.worldObj.getLightBrightnessForSkyBlocks(var2, var6, var3, 0);
} }
else else
@ -1116,7 +1116,7 @@ public abstract class Entity
if (this.worldObj.blockExists(var2, 0, var3)) if (this.worldObj.blockExists(var2, 0, var3))
{ {
double var4 = (this.boundingBox.maxY - this.boundingBox.minY) * 0.66D; double var4 = (this.boundingBox.maxY - this.boundingBox.minY) * 0.66D;
int var6 = MathHelper.floor_double(this.posY - (double)this.yOffset + var4); int var6 = MathHelper.floor_double(this.posY - (float)this.yOffset + var4);
return this.worldObj.getLightBrightness(var2, var6, var3); return this.worldObj.getLightBrightness(var2, var6, var3);
} }
else else
@ -1144,7 +1144,7 @@ public abstract class Entity
this.prevRotationYaw = this.rotationYaw = par7; this.prevRotationYaw = this.rotationYaw = par7;
this.prevRotationPitch = this.rotationPitch = par8; this.prevRotationPitch = this.rotationPitch = par8;
this.ySize = 0.0F; this.ySize = 0.0F;
double var9 = (double)(this.prevRotationYaw - par7); double var9 = (float)(this.prevRotationYaw - par7);
if (var9 < -180.0D) if (var9 < -180.0D)
{ {
@ -1166,7 +1166,7 @@ public abstract class Entity
public void setLocationAndAngles(double par1, double par3, double par5, float par7, float par8) public void setLocationAndAngles(double par1, double par3, double par5, float par7, float par8)
{ {
this.lastTickPosX = this.prevPosX = this.posX = par1; this.lastTickPosX = this.prevPosX = this.posX = par1;
this.lastTickPosY = this.prevPosY = this.posY = par3 + (double)this.yOffset; this.lastTickPosY = this.prevPosY = this.posY = par3 + (float)this.yOffset;
this.lastTickPosZ = this.prevPosZ = this.posZ = par5; this.lastTickPosZ = this.prevPosZ = this.posZ = par5;
this.rotationYaw = par7; this.rotationYaw = par7;
this.rotationPitch = par8; this.rotationPitch = par8;
@ -1203,7 +1203,7 @@ public abstract class Entity
double var7 = this.posX - par1; double var7 = this.posX - par1;
double var9 = this.posY - par3; double var9 = this.posY - par3;
double var11 = this.posZ - par5; double var11 = this.posZ - par5;
return (double)MathHelper.sqrt_double(var7 * var7 + var9 * var9 + var11 * var11); return (float)MathHelper.sqrt_double(var7 * var7 + var9 * var9 + var11 * var11);
} }
/** /**
@ -1235,7 +1235,7 @@ public abstract class Entity
if (var6 >= 0.009999999776482582D) if (var6 >= 0.009999999776482582D)
{ {
var6 = (double)MathHelper.sqrt_double(var6); var6 = (float)MathHelper.sqrt_double(var6);
var2 /= var6; var2 /= var6;
var4 /= var6; var4 /= var6;
double var8 = 1.0D / var6; double var8 = 1.0D / var6;
@ -1249,8 +1249,8 @@ public abstract class Entity
var4 *= var8; var4 *= var8;
var2 *= 0.05000000074505806D; var2 *= 0.05000000074505806D;
var4 *= 0.05000000074505806D; var4 *= 0.05000000074505806D;
var2 *= (double)(1.0F - this.entityCollisionReduction); var2 *= (float)(1.0F - this.entityCollisionReduction);
var4 *= (double)(1.0F - this.entityCollisionReduction); var4 *= (float)(1.0F - this.entityCollisionReduction);
this.addVelocity(-var2, 0.0D, -var4); this.addVelocity(-var2, 0.0D, -var4);
par1Entity.addVelocity(var2, 0.0D, var4); par1Entity.addVelocity(var2, 0.0D, var4);
} }
@ -1362,7 +1362,7 @@ public abstract class Entity
*/ */
public void writeToNBT(NBTTagCompound par1NBTTagCompound) public void writeToNBT(NBTTagCompound par1NBTTagCompound)
{ {
par1NBTTagCompound.setTag("Pos", this.newDoubleNBTList(new double[] {this.posX, this.posY + (double)this.ySize, this.posZ})); par1NBTTagCompound.setTag("Pos", this.newDoubleNBTList(new double[] {this.posX, this.posY + (float)this.ySize, this.posZ}));
par1NBTTagCompound.setTag("Motion", this.newDoubleNBTList(new double[] {this.motionX, this.motionY, this.motionZ})); par1NBTTagCompound.setTag("Motion", this.newDoubleNBTList(new double[] {this.motionX, this.motionY, this.motionZ}));
par1NBTTagCompound.setTag("Rotation", this.newFloatNBTList(new float[] {this.rotationYaw, this.rotationPitch})); par1NBTTagCompound.setTag("Rotation", this.newFloatNBTList(new float[] {this.rotationYaw, this.rotationPitch}));
par1NBTTagCompound.setFloat("FallDistance", this.fallDistance); par1NBTTagCompound.setFloat("FallDistance", this.fallDistance);
@ -1493,7 +1493,7 @@ public abstract class Entity
*/ */
public EntityItem entityDropItem(ItemStack par1ItemStack, float par2) public EntityItem entityDropItem(ItemStack par1ItemStack, float par2)
{ {
EntityItem var3 = new EntityItem(this.worldObj, this.posX, this.posY + (double)par2, this.posZ, par1ItemStack); EntityItem var3 = new EntityItem(this.worldObj, this.posX, this.posY + (float)par2, this.posZ, par1ItemStack);
var3.delayBeforeCanPickup = 10; var3.delayBeforeCanPickup = 10;
this.worldObj.spawnEntityInWorld(var3); this.worldObj.spawnEntityInWorld(var3);
return var3; return var3;
@ -1517,9 +1517,9 @@ public abstract class Entity
float var2 = ((float)((var1 >> 0) % 2) - 0.5F) * this.width * 0.8F; float var2 = ((float)((var1 >> 0) % 2) - 0.5F) * this.width * 0.8F;
float var3 = ((float)((var1 >> 1) % 2) - 0.5F) * 0.1F; float var3 = ((float)((var1 >> 1) % 2) - 0.5F) * 0.1F;
float var4 = ((float)((var1 >> 2) % 2) - 0.5F) * this.width * 0.8F; float var4 = ((float)((var1 >> 2) % 2) - 0.5F) * this.width * 0.8F;
BigInteger var5 = MathHelper.floor_double_BigInteger(this.posX + (double)var2); BigInteger var5 = MathHelper.floor_double_BigInteger(this.posX + (float)var2);
int var6 = MathHelper.floor_double(this.posY + (double)this.getEyeHeight() + (double)var3); int var6 = MathHelper.floor_double(this.posY + (float)this.getEyeHeight() + (float)var3);
BigInteger var7 = MathHelper.floor_double_BigInteger(this.posZ + (double)var4); BigInteger var7 = MathHelper.floor_double_BigInteger(this.posZ + (float)var4);
if (this.worldObj.isBlockNormalCube(var5, var6, var7)) if (this.worldObj.isBlockNormalCube(var5, var6, var7))
{ {
@ -1566,9 +1566,9 @@ public abstract class Entity
if (this.ridingEntity != null) if (this.ridingEntity != null)
{ {
this.ridingEntity.updateRiderPosition(); this.ridingEntity.updateRiderPosition();
this.entityRiderYawDelta += (double)(this.ridingEntity.rotationYaw - this.ridingEntity.prevRotationYaw); this.entityRiderYawDelta += (float)(this.ridingEntity.rotationYaw - this.ridingEntity.prevRotationYaw);
for (this.entityRiderPitchDelta += (double)(this.ridingEntity.rotationPitch - this.ridingEntity.prevRotationPitch); this.entityRiderYawDelta >= 180.0D; this.entityRiderYawDelta -= 360.0D) for (this.entityRiderPitchDelta += (float)(this.ridingEntity.rotationPitch - this.ridingEntity.prevRotationPitch); this.entityRiderYawDelta >= 180.0D; this.entityRiderYawDelta -= 360.0D)
{ {
; ;
} }
@ -1592,30 +1592,30 @@ public abstract class Entity
double var3 = this.entityRiderPitchDelta * 0.5D; double var3 = this.entityRiderPitchDelta * 0.5D;
float var5 = 10.0F; float var5 = 10.0F;
if (var1 > (double)var5) if (var1 > (float)var5)
{ {
var1 = (double)var5; var1 = (float)var5;
} }
if (var1 < (double)(-var5)) if (var1 < (float)(-var5))
{ {
var1 = (double)(-var5); var1 = (float)(-var5);
} }
if (var3 > (double)var5) if (var3 > (float)var5)
{ {
var3 = (double)var5; var3 = (float)var5;
} }
if (var3 < (double)(-var5)) if (var3 < (float)(-var5))
{ {
var3 = (double)(-var5); var3 = (float)(-var5);
} }
this.entityRiderYawDelta -= var1; this.entityRiderYawDelta -= var1;
this.entityRiderPitchDelta -= var3; this.entityRiderPitchDelta -= var3;
this.rotationYaw = (float)((double)this.rotationYaw + var1); this.rotationYaw = (float)((float)this.rotationYaw + var1);
this.rotationPitch = (float)((double)this.rotationPitch + var3); this.rotationPitch = (float)((float)this.rotationPitch + var3);
} }
} }
} }
@ -1637,7 +1637,7 @@ public abstract class Entity
*/ */
public double getYOffset() public double getYOffset()
{ {
return (double)this.yOffset; return (float)this.yOffset;
} }
/** /**
@ -1645,7 +1645,7 @@ public abstract class Entity
*/ */
public double getMountedYOffset() public double getMountedYOffset()
{ {
return (double)this.height * 0.75D; return (float)this.height * 0.75D;
} }
/** /**
@ -1660,7 +1660,7 @@ public abstract class Entity
{ {
if (this.ridingEntity != null) if (this.ridingEntity != null)
{ {
this.setLocationAndAngles(this.ridingEntity.posX, this.ridingEntity.boundingBox.minY + (double)this.ridingEntity.height, this.ridingEntity.posZ, this.rotationYaw, this.rotationPitch); this.setLocationAndAngles(this.ridingEntity.posX, this.ridingEntity.boundingBox.minY + (float)this.ridingEntity.height, this.ridingEntity.posZ, this.rotationYaw, this.rotationPitch);
this.ridingEntity.riddenByEntity = null; this.ridingEntity.riddenByEntity = null;
} }
@ -1695,7 +1695,7 @@ public abstract class Entity
public void unmountEntity(Entity par1Entity) public void unmountEntity(Entity par1Entity)
{ {
double var3 = par1Entity.posX; double var3 = par1Entity.posX;
double var5 = par1Entity.boundingBox.minY + (double)par1Entity.height; double var5 = par1Entity.boundingBox.minY + (float)par1Entity.height;
double var7 = par1Entity.posZ; double var7 = par1Entity.posZ;
for (double var9 = -1.5D; var9 < 2.0D; ++var9) for (double var9 = -1.5D; var9 < 2.0D; ++var9)
@ -1926,9 +1926,9 @@ public abstract class Entity
BigInteger var7 = MathHelper.floor_double_BigInteger(par1); BigInteger var7 = MathHelper.floor_double_BigInteger(par1);
int var8 = MathHelper.floor_double(par3); int var8 = MathHelper.floor_double(par3);
BigInteger var9 = MathHelper.floor_double_BigInteger(par5); BigInteger var9 = MathHelper.floor_double_BigInteger(par5);
double var10 = par1 - (double)var7.doubleValue(); double var10 = par1 - (float)var7.doubleValue();
double var12 = par3 - (double)var8; double var12 = par3 - (float)var8;
double var14 = par5 - (double)var9.doubleValue(); double var14 = par5 - (float)var9.doubleValue();
if (this.worldObj.isBlockNormalCube(var7, var8, var9)) if (this.worldObj.isBlockNormalCube(var7, var8, var9))
{ {
@ -1981,32 +1981,32 @@ public abstract class Entity
if (var22 == 0) if (var22 == 0)
{ {
this.motionX = (double)(-var25); this.motionX = (float)(-var25);
} }
if (var22 == 1) if (var22 == 1)
{ {
this.motionX = (double)var25; this.motionX = (float)var25;
} }
if (var22 == 2) if (var22 == 2)
{ {
this.motionY = (double)(-var25); this.motionY = (float)(-var25);
} }
if (var22 == 3) if (var22 == 3)
{ {
this.motionY = (double)var25; this.motionY = (float)var25;
} }
if (var22 == 4) if (var22 == 4)
{ {
this.motionZ = (double)(-var25); this.motionZ = (float)(-var25);
} }
if (var22 == 5) if (var22 == 5)
{ {
this.motionZ = (double)var25; this.motionZ = (float)var25;
} }
return true; return true;

@ -125,10 +125,10 @@ public class EntityAIArrowAttack extends EntityAIBase
{ {
EntitySnowball var9 = new EntitySnowball(this.worldObj, this.entityHost); EntitySnowball var9 = new EntitySnowball(this.worldObj, this.entityHost);
double var2 = this.attackTarget.posX - this.entityHost.posX; double var2 = this.attackTarget.posX - this.entityHost.posX;
double var4 = this.attackTarget.posY + (double)this.attackTarget.getEyeHeight() - 1.100000023841858D - var9.posY; double var4 = this.attackTarget.posY + (float)this.attackTarget.getEyeHeight() - 1.100000023841858D - var9.posY;
double var6 = this.attackTarget.posZ - this.entityHost.posZ; double var6 = this.attackTarget.posZ - this.entityHost.posZ;
float var8 = MathHelper.sqrt_double(var2 * var2 + var6 * var6) * 0.2F; float var8 = MathHelper.sqrt_double(var2 * var2 + var6 * var6) * 0.2F;
var9.setThrowableHeading(var2, var4 + (double)var8, var6, 1.6F, 12.0F); var9.setThrowableHeading(var2, var4 + (float)var8, var6, 1.6F, 12.0F);
this.worldObj.playSoundAtEntity(this.entityHost, "random.bow", 1.0F, 1.0F / (this.entityHost.getRNG().nextFloat() * 0.4F + 0.8F)); this.worldObj.playSoundAtEntity(this.entityHost, "random.bow", 1.0F, 1.0F / (this.entityHost.getRNG().nextFloat() * 0.4F + 0.8F));
this.worldObj.spawnEntityInWorld(var9); this.worldObj.spawnEntityInWorld(var9);
} }

@ -96,7 +96,7 @@ public class EntityAIAttackOnCollide extends EntityAIBase
} }
this.attackTick = Math.max(this.attackTick - 1, 0); this.attackTick = Math.max(this.attackTick - 1, 0);
double var1 = (double)(this.attacker.width * 2.0F * this.attacker.width * 2.0F); double var1 = (float)(this.attacker.width * 2.0F * this.attacker.width * 2.0F);
if (this.attacker.getDistanceSq(this.entityTarget.posX, this.entityTarget.boundingBox.minY, this.entityTarget.posZ) <= var1) if (this.attacker.getDistanceSq(this.entityTarget.posX, this.entityTarget.boundingBox.minY, this.entityTarget.posZ) <= var1)
{ {

@ -41,7 +41,7 @@ public class EntityAIAvoidEntity extends EntityAIBase
return false; return false;
} }
this.closestLivingEntity = this.theEntity.worldObj.getClosestPlayerToEntity(this.theEntity, (double)this.distanceFromEntity); this.closestLivingEntity = this.theEntity.worldObj.getClosestPlayerToEntity(this.theEntity, (float)this.distanceFromEntity);
if (this.closestLivingEntity == null) if (this.closestLivingEntity == null)
{ {
@ -50,7 +50,7 @@ public class EntityAIAvoidEntity extends EntityAIBase
} }
else else
{ {
List var1 = this.theEntity.worldObj.getEntitiesWithinAABB(this.targetEntityClass, this.theEntity.boundingBox.expand((double)this.distanceFromEntity, 3.0D, (double)this.distanceFromEntity)); List var1 = this.theEntity.worldObj.getEntitiesWithinAABB(this.targetEntityClass, this.theEntity.boundingBox.expand((float)this.distanceFromEntity, 3.0D, (float)this.distanceFromEntity));
if (var1.isEmpty()) if (var1.isEmpty())
{ {

@ -21,7 +21,7 @@ public class EntityAIBeg extends EntityAIBase
*/ */
public boolean shouldExecute() public boolean shouldExecute()
{ {
this.field_75385_b = this.worldObject.getClosestPlayerToEntity(this.theWolf, (double)this.minPlayerDistance); this.field_75385_b = this.worldObject.getClosestPlayerToEntity(this.theWolf, (float)this.minPlayerDistance);
return this.field_75385_b == null ? false : this.func_75382_a(this.field_75385_b); return this.field_75385_b == null ? false : this.func_75382_a(this.field_75385_b);
} }
@ -30,7 +30,7 @@ public class EntityAIBeg extends EntityAIBase
*/ */
public boolean continueExecuting() public boolean continueExecuting()
{ {
return !this.field_75385_b.isEntityAlive() ? false : (this.theWolf.getDistanceSqToEntity(this.field_75385_b) > (double)(this.minPlayerDistance * this.minPlayerDistance) ? false : this.field_75384_e > 0 && this.func_75382_a(this.field_75385_b)); return !this.field_75385_b.isEntityAlive() ? false : (this.theWolf.getDistanceSqToEntity(this.field_75385_b) > (float)(this.minPlayerDistance * this.minPlayerDistance) ? false : this.field_75384_e > 0 && this.func_75382_a(this.field_75385_b));
} }
/** /**
@ -56,7 +56,7 @@ public class EntityAIBeg extends EntityAIBase
*/ */
public void updateTask() public void updateTask()
{ {
this.theWolf.getLookHelper().setLookPosition(this.field_75385_b.posX, this.field_75385_b.posY + (double)this.field_75385_b.getEyeHeight(), this.field_75385_b.posZ, 10.0F, (float)this.theWolf.getVerticalFaceSpeed()); this.theWolf.getLookHelper().setLookPosition(this.field_75385_b.posX, this.field_75385_b.posY + (float)this.field_75385_b.getEyeHeight(), this.field_75385_b.posZ, 10.0F, (float)this.theWolf.getVerticalFaceSpeed());
--this.field_75384_e; --this.field_75384_e;
} }

@ -32,7 +32,7 @@ public class EntityAIBreakDoor extends EntityAIDoorInteract
*/ */
public boolean continueExecuting() public boolean continueExecuting()
{ {
double var1 = this.theEntity.getDistanceSq((double)this.entityPosX.doubleValue(), (double)this.entityPosY, (double)this.entityPosZ.doubleValue()); double var1 = this.theEntity.getDistanceSq((float)this.entityPosX.doubleValue(), (float)this.entityPosY, (float)this.entityPosZ.doubleValue());
return this.breakingTime <= 240 && !this.targetDoor.isDoorOpen(this.theEntity.worldObj, this.entityPosX, this.entityPosY, this.entityPosZ) && var1 < 4.0D; return this.breakingTime <= 240 && !this.targetDoor.isDoorOpen(this.theEntity.worldObj, this.entityPosX, this.entityPosY, this.entityPosZ) && var1 < 4.0D;
} }

@ -41,7 +41,7 @@ public abstract class EntityAIDoorInteract extends EntityAIBase
this.entityPosY = var4.yCoord + 1; this.entityPosY = var4.yCoord + 1;
this.entityPosZ = var4.zCoord; this.entityPosZ = var4.zCoord;
if (this.theEntity.getDistanceSq((double)this.entityPosX.doubleValue(), this.theEntity.posY, (double)this.entityPosZ.doubleValue()) <= 2.25D) if (this.theEntity.getDistanceSq((float)this.entityPosX.doubleValue(), this.theEntity.posY, (float)this.entityPosZ.doubleValue()) <= 2.25D)
{ {
this.targetDoor = this.findUsableDoor(this.entityPosX, this.entityPosY, this.entityPosZ); this.targetDoor = this.findUsableDoor(this.entityPosX, this.entityPosY, this.entityPosZ);
@ -79,8 +79,8 @@ public abstract class EntityAIDoorInteract extends EntityAIBase
public void startExecuting() public void startExecuting()
{ {
this.field_75350_f = false; this.field_75350_f = false;
this.entityPositionX = (float)((double)((float)this.entityPosX.floatValue() + 0.5F) - this.theEntity.posX); this.entityPositionX = (float)((float)((float)this.entityPosX.floatValue() + 0.5F) - this.theEntity.posX);
this.entityPositionZ = (float)((double)((float)this.entityPosZ.floatValue() + 0.5F) - this.theEntity.posZ); this.entityPositionZ = (float)((float)((float)this.entityPosZ.floatValue() + 0.5F) - this.theEntity.posZ);
} }
/** /**
@ -88,8 +88,8 @@ public abstract class EntityAIDoorInteract extends EntityAIBase
*/ */
public void updateTask() public void updateTask()
{ {
float var1 = (float)((double)((float)this.entityPosX.floatValue() + 0.5F) - this.theEntity.posX); float var1 = (float)((float)((float)this.entityPosX.floatValue() + 0.5F) - this.theEntity.posX);
float var2 = (float)((double)((float)this.entityPosZ.floatValue() + 0.5F) - this.theEntity.posZ); float var2 = (float)((float)((float)this.entityPosZ.floatValue() + 0.5F) - this.theEntity.posZ);
float var3 = this.entityPositionX * var1 + this.entityPositionZ * var2; float var3 = this.entityPositionX * var1 + this.entityPositionZ * var2;
if (var3 < 0.0F) if (var3 < 0.0F)

@ -77,13 +77,13 @@ public class EntityAIFleeSun extends EntityAIBase
for (int var2 = 0; var2 < 10; ++var2) for (int var2 = 0; var2 < 10; ++var2)
{ {
BigInteger var3 = MathHelper.floor_double_BigInteger(this.theCreature.posX + (double)var1.nextInt(20) - 10.0D); BigInteger var3 = MathHelper.floor_double_BigInteger(this.theCreature.posX + (float)var1.nextInt(20) - 10.0D);
int var4 = MathHelper.floor_double(this.theCreature.boundingBox.minY + (double)var1.nextInt(6) - 3.0D); int var4 = MathHelper.floor_double(this.theCreature.boundingBox.minY + (float)var1.nextInt(6) - 3.0D);
BigInteger var5 = MathHelper.floor_double_BigInteger(this.theCreature.posZ + (double)var1.nextInt(20) - 10.0D); BigInteger var5 = MathHelper.floor_double_BigInteger(this.theCreature.posZ + (float)var1.nextInt(20) - 10.0D);
if (!this.theWorld.canBlockSeeTheSky(var3, var4, var5) && this.theCreature.getBlockPathWeight(var3, var4, var5) < 0.0F) if (!this.theWorld.canBlockSeeTheSky(var3, var4, var5) && this.theCreature.getBlockPathWeight(var3, var4, var5) < 0.0F)
{ {
return Vec3.getVec3Pool().getVecFromPool((double)var3.doubleValue(), (double)var4, (double)var5.doubleValue()); return Vec3.getVec3Pool().getVecFromPool((float)var3.doubleValue(), (float)var4, (float)var5.doubleValue());
} }
} }

@ -40,7 +40,7 @@ public class EntityAIFollowOwner extends EntityAIBase
{ {
return false; return false;
} }
else if (this.thePet.getDistanceSqToEntity(var1) < (double)(this.minDist * this.minDist)) else if (this.thePet.getDistanceSqToEntity(var1) < (float)(this.minDist * this.minDist))
{ {
return false; return false;
} }
@ -56,7 +56,7 @@ public class EntityAIFollowOwner extends EntityAIBase
*/ */
public boolean continueExecuting() public boolean continueExecuting()
{ {
return !this.petPathfinder.noPath() && this.thePet.getDistanceSqToEntity(this.theOwner) > (double)(this.maxDist * this.maxDist) && !this.thePet.isSitting(); return !this.petPathfinder.noPath() && this.thePet.getDistanceSqToEntity(this.theOwner) > (float)(this.maxDist * this.maxDist) && !this.thePet.isSitting();
} }
/** /**
@ -106,7 +106,7 @@ public class EntityAIFollowOwner extends EntityAIBase
{ {
if ((var4 < 1 || var5 < 1 || var4 > 3 || var5 > 3) && this.theWorld.doesBlockHaveSolidTopSurface(var1.add(BigInteger.valueOf(var4)), var3 - 1, var2.add(BigInteger.valueOf(var5))) && !this.theWorld.isBlockNormalCube(var1.add(BigInteger.valueOf(var4)), var3, var2.add(BigInteger.valueOf(var5))) && !this.theWorld.isBlockNormalCube(var1.add(BigInteger.valueOf(var4)), var3 + 1, var2.add(BigInteger.valueOf(var5)))) if ((var4 < 1 || var5 < 1 || var4 > 3 || var5 > 3) && this.theWorld.doesBlockHaveSolidTopSurface(var1.add(BigInteger.valueOf(var4)), var3 - 1, var2.add(BigInteger.valueOf(var5))) && !this.theWorld.isBlockNormalCube(var1.add(BigInteger.valueOf(var4)), var3, var2.add(BigInteger.valueOf(var5))) && !this.theWorld.isBlockNormalCube(var1.add(BigInteger.valueOf(var4)), var3 + 1, var2.add(BigInteger.valueOf(var5))))
{ {
this.thePet.setLocationAndAngles((double)((float)(var1.add(BigInteger.valueOf(var4))).floatValue() + 0.5F), (double)var3, (double)((float)(var2.add(BigInteger.valueOf(var5))).floatValue() + 0.5F), this.thePet.rotationYaw, this.thePet.rotationPitch); this.thePet.setLocationAndAngles((float)((float)(var1.add(BigInteger.valueOf(var4))).floatValue() + 0.5F), (float)var3, (float)((float)(var2.add(BigInteger.valueOf(var5))).floatValue() + 0.5F), this.thePet.rotationYaw, this.thePet.rotationPitch);
this.petPathfinder.clearPathEntity(); this.petPathfinder.clearPathEntity();
return; return;
} }

@ -41,7 +41,7 @@ public class EntityAIHurtByTarget extends EntityAITarget
if (this.field_75312_a) if (this.field_75312_a)
{ {
List var1 = this.taskOwner.worldObj.getEntitiesWithinAABB(this.taskOwner.getClass(), AxisAlignedBB.getAABBPool().addOrModifyAABBInPool(this.taskOwner.posX, this.taskOwner.posY, this.taskOwner.posZ, this.taskOwner.posX + 1.0D, this.taskOwner.posY + 1.0D, this.taskOwner.posZ + 1.0D).expand((double)this.targetDistance, 4.0D, (double)this.targetDistance)); List var1 = this.taskOwner.worldObj.getEntitiesWithinAABB(this.taskOwner.getClass(), AxisAlignedBB.getAABBPool().addOrModifyAABBInPool(this.taskOwner.posX, this.taskOwner.posY, this.taskOwner.posZ, this.taskOwner.posX + 1.0D, this.taskOwner.posY + 1.0D, this.taskOwner.posZ + 1.0D).expand((float)this.targetDistance, 4.0D, (float)this.targetDistance));
Iterator var2 = var1.iterator(); Iterator var2 = var1.iterator();
while (var2.hasNext()) while (var2.hasNext())

@ -52,8 +52,8 @@ public class EntityAILeapAtTarget extends EntityAIBase
double var1 = this.leapTarget.posX - this.leaper.posX; double var1 = this.leapTarget.posX - this.leaper.posX;
double var3 = this.leapTarget.posZ - this.leaper.posZ; double var3 = this.leapTarget.posZ - this.leaper.posZ;
float var5 = MathHelper.sqrt_double(var1 * var1 + var3 * var3); float var5 = MathHelper.sqrt_double(var1 * var1 + var3 * var3);
this.leaper.motionX += var1 / (double)var5 * 0.5D * 0.800000011920929D + this.leaper.motionX * 0.20000000298023224D; this.leaper.motionX += var1 / (float)var5 * 0.5D * 0.800000011920929D + this.leaper.motionX * 0.20000000298023224D;
this.leaper.motionZ += var3 / (double)var5 * 0.5D * 0.800000011920929D + this.leaper.motionZ * 0.20000000298023224D; this.leaper.motionZ += var3 / (float)var5 * 0.5D * 0.800000011920929D + this.leaper.motionZ * 0.20000000298023224D;
this.leaper.motionY = (double)this.leapMotionY; this.leaper.motionY = (float)this.leapMotionY;
} }
} }

@ -43,9 +43,9 @@ public class EntityAILookIdle extends EntityAIBase
*/ */
public void startExecuting() public void startExecuting()
{ {
double var1 = (Math.PI * 2D) * this.idleEntity.getRNG().nextDouble(); double var1 = ((float)Math.PI * 2D) * this.idleEntity.getRNG().nextDouble();
this.lookX = Math.cos(var1); this.lookX = (float)Math.cos(var1);
this.lookZ = Math.sin(var1); this.lookZ = (float)Math.sin(var1);
this.idleTime = 20 + this.idleEntity.getRNG().nextInt(20); this.idleTime = 20 + this.idleEntity.getRNG().nextInt(20);
} }
@ -55,6 +55,6 @@ public class EntityAILookIdle extends EntityAIBase
public void updateTask() public void updateTask()
{ {
--this.idleTime; --this.idleTime;
this.idleEntity.getLookHelper().setLookPosition(this.idleEntity.posX + this.lookX, this.idleEntity.posY + (double)this.idleEntity.getEyeHeight(), this.idleEntity.posZ + this.lookZ, 10.0F, (float)this.idleEntity.getVerticalFaceSpeed()); this.idleEntity.getLookHelper().setLookPosition(this.idleEntity.posX + this.lookX, this.idleEntity.posY + (float)this.idleEntity.getEyeHeight(), this.idleEntity.posZ + this.lookZ, 10.0F, (float)this.idleEntity.getVerticalFaceSpeed());
} }
} }

@ -81,7 +81,7 @@ public class EntityAIMate extends EntityAIBase
private EntityAnimal getNearbyMate() private EntityAnimal getNearbyMate()
{ {
float var1 = 8.0F; float var1 = 8.0F;
List var2 = this.theWorld.getEntitiesWithinAABB(this.theAnimal.getClass(), this.theAnimal.boundingBox.expand((double)var1, (double)var1, (double)var1)); List var2 = this.theWorld.getEntitiesWithinAABB(this.theAnimal.getClass(), this.theAnimal.boundingBox.expand((float)var1, (float)var1, (float)var1));
Iterator var3 = var2.iterator(); Iterator var3 = var2.iterator();
EntityAnimal var4; EntityAnimal var4;
@ -122,7 +122,7 @@ public class EntityAIMate extends EntityAIBase
double var4 = var2.nextGaussian() * 0.02D; double var4 = var2.nextGaussian() * 0.02D;
double var6 = var2.nextGaussian() * 0.02D; double var6 = var2.nextGaussian() * 0.02D;
double var8 = var2.nextGaussian() * 0.02D; double var8 = var2.nextGaussian() * 0.02D;
this.theWorld.spawnParticle("heart", this.theAnimal.posX + (double)(var2.nextFloat() * this.theAnimal.width * 2.0F) - (double)this.theAnimal.width, this.theAnimal.posY + 0.5D + (double)(var2.nextFloat() * this.theAnimal.height), this.theAnimal.posZ + (double)(var2.nextFloat() * this.theAnimal.width * 2.0F) - (double)this.theAnimal.width, var4, var6, var8); this.theWorld.spawnParticle("heart", this.theAnimal.posX + (float)(var2.nextFloat() * this.theAnimal.width * 2.0F) - (float)this.theAnimal.width, this.theAnimal.posY + 0.5D + (float)(var2.nextFloat() * this.theAnimal.height), this.theAnimal.posZ + (float)(var2.nextFloat() * this.theAnimal.width * 2.0F) - (float)this.theAnimal.width, var4, var6, var8);
} }
} }
} }

@ -26,7 +26,7 @@ public class EntityAIMoveIndoors extends EntityAIBase
{ {
return false; return false;
} }
else if (this.insidePosX != null && this.entityObj.getDistanceSq((double)this.insidePosX.doubleValue(), this.entityObj.posY, (double)this.insidePosZ.doubleValue()) < 4.0D) else if (this.insidePosX != null && this.entityObj.getDistanceSq((float)this.insidePosX.doubleValue(), this.entityObj.posY, (float)this.insidePosZ.doubleValue()) < 4.0D)
{ {
return false; return false;
} }
@ -66,9 +66,9 @@ public class EntityAIMoveIndoors extends EntityAIBase
{ {
this.insidePosX = null; this.insidePosX = null;
if (this.entityObj.getDistanceSq((double)this.doorInfo.getInsidePosX().doubleValue(), (double)this.doorInfo.posY, (double)this.doorInfo.getInsidePosZ().doubleValue()) > 256.0D) if (this.entityObj.getDistanceSq((float)this.doorInfo.getInsidePosX().doubleValue(), (float)this.doorInfo.posY, (float)this.doorInfo.getInsidePosZ().doubleValue()) > 256.0D)
{ {
Vec3 var1 = RandomPositionGenerator.findRandomTargetBlockTowards(this.entityObj, 14, 3, Vec3.getVec3Pool().getVecFromPool((double)this.doorInfo.getInsidePosX().doubleValue() + 0.5D, (double)this.doorInfo.getInsidePosY(), (double)this.doorInfo.getInsidePosZ().doubleValue() + 0.5D)); Vec3 var1 = RandomPositionGenerator.findRandomTargetBlockTowards(this.entityObj, 14, 3, Vec3.getVec3Pool().getVecFromPool((float)this.doorInfo.getInsidePosX().doubleValue() + 0.5D, (float)this.doorInfo.getInsidePosY(), (float)this.doorInfo.getInsidePosZ().doubleValue() + 0.5D));
if (var1 != null) if (var1 != null)
{ {
@ -77,7 +77,7 @@ public class EntityAIMoveIndoors extends EntityAIBase
} }
else else
{ {
this.entityObj.getNavigator().tryMoveToXYZ((double)this.doorInfo.getInsidePosX().doubleValue() + 0.5D, (double)this.doorInfo.getInsidePosY(), (double)this.doorInfo.getInsidePosZ().doubleValue() + 0.5D, 0.3F); this.entityObj.getNavigator().tryMoveToXYZ((float)this.doorInfo.getInsidePosX().doubleValue() + 0.5D, (float)this.doorInfo.getInsidePosY(), (float)this.doorInfo.getInsidePosZ().doubleValue() + 0.5D, 0.3F);
} }
} }

@ -53,7 +53,7 @@ public class EntityAIMoveThroughVillage extends EntityAIBase
{ {
boolean var2 = this.theEntity.getNavigator().getCanBreakDoors(); boolean var2 = this.theEntity.getNavigator().getCanBreakDoors();
this.theEntity.getNavigator().setBreakDoors(false); this.theEntity.getNavigator().setBreakDoors(false);
this.field_75419_c = this.theEntity.getNavigator().getPathToXYZ((double)this.doorInfo.posX.doubleValue(), (double)this.doorInfo.posY, (double)this.doorInfo.posZ.doubleValue()); this.field_75419_c = this.theEntity.getNavigator().getPathToXYZ((float)this.doorInfo.posX.doubleValue(), (float)this.doorInfo.posY, (float)this.doorInfo.posZ.doubleValue());
this.theEntity.getNavigator().setBreakDoors(var2); this.theEntity.getNavigator().setBreakDoors(var2);
if (this.field_75419_c != null) if (this.field_75419_c != null)
@ -62,7 +62,7 @@ public class EntityAIMoveThroughVillage extends EntityAIBase
} }
else else
{ {
Vec3 var3 = RandomPositionGenerator.findRandomTargetBlockTowards(this.theEntity, 10, 7, Vec3.getVec3Pool().getVecFromPool((double)this.doorInfo.posX.doubleValue(), (double)this.doorInfo.posY, (double)this.doorInfo.posZ.doubleValue())); Vec3 var3 = RandomPositionGenerator.findRandomTargetBlockTowards(this.theEntity, 10, 7, Vec3.getVec3Pool().getVecFromPool((float)this.doorInfo.posX.doubleValue(), (float)this.doorInfo.posY, (float)this.doorInfo.posZ.doubleValue()));
if (var3 == null) if (var3 == null)
{ {
@ -93,7 +93,7 @@ public class EntityAIMoveThroughVillage extends EntityAIBase
else else
{ {
float var1 = this.theEntity.width + 4.0F; float var1 = this.theEntity.width + 4.0F;
return this.theEntity.getDistanceSq((double)this.doorInfo.posX.doubleValue(), (double)this.doorInfo.posY, (double)this.doorInfo.posZ.doubleValue()) > (double)(var1 * var1); return this.theEntity.getDistanceSq((float)this.doorInfo.posX.doubleValue(), (float)this.doorInfo.posY, (float)this.doorInfo.posZ.doubleValue()) > (float)(var1 * var1);
} }
} }
@ -110,7 +110,7 @@ public class EntityAIMoveThroughVillage extends EntityAIBase
*/ */
public void resetTask() public void resetTask()
{ {
if (this.theEntity.getNavigator().noPath() || this.theEntity.getDistanceSq((double)this.doorInfo.posX.doubleValue(), (double)this.doorInfo.posY, (double)this.doorInfo.posZ.doubleValue()) < 16.0D) if (this.theEntity.getNavigator().noPath() || this.theEntity.getDistanceSq((float)this.doorInfo.posX.doubleValue(), (float)this.doorInfo.posY, (float)this.doorInfo.posZ.doubleValue()) < 16.0D)
{ {
this.doorList.add(this.doorInfo); this.doorList.add(this.doorInfo);
} }

@ -29,7 +29,7 @@ public class EntityAIMoveTowardsTarget extends EntityAIBase
{ {
return false; return false;
} }
else if (this.targetEntity.getDistanceSqToEntity(this.theEntity) > (double)(this.field_75426_g * this.field_75426_g)) else if (this.targetEntity.getDistanceSqToEntity(this.theEntity) > (float)(this.field_75426_g * this.field_75426_g))
{ {
return false; return false;
} }
@ -56,7 +56,7 @@ public class EntityAIMoveTowardsTarget extends EntityAIBase
*/ */
public boolean continueExecuting() public boolean continueExecuting()
{ {
return !this.theEntity.getNavigator().noPath() && this.targetEntity.isEntityAlive() && this.targetEntity.getDistanceSqToEntity(this.theEntity) < (double)(this.field_75426_g * this.field_75426_g); return !this.theEntity.getNavigator().noPath() && this.targetEntity.isEntityAlive() && this.targetEntity.getDistanceSqToEntity(this.theEntity) < (float)(this.field_75426_g * this.field_75426_g);
} }
/** /**

@ -27,7 +27,7 @@ public class EntityAIMoveTwardsRestriction extends EntityAIBase
else else
{ {
ChunkCoordinates var1 = this.theEntity.getHomePosition(); ChunkCoordinates var1 = this.theEntity.getHomePosition();
Vec3 var2 = RandomPositionGenerator.findRandomTargetBlockTowards(this.theEntity, 16, 7, Vec3.getVec3Pool().getVecFromPool((double)var1.posX.doubleValue(), (double)var1.posY, (double)var1.posZ.doubleValue())); Vec3 var2 = RandomPositionGenerator.findRandomTargetBlockTowards(this.theEntity, 16, 7, Vec3.getVec3Pool().getVecFromPool((float)var1.posX.doubleValue(), (float)var1.posY, (float)var1.posZ.doubleValue()));
if (var2 == null) if (var2 == null)
{ {

@ -39,7 +39,7 @@ public class EntityAINearestAttackableTarget extends EntityAITarget
{ {
if (this.targetClass == EntityPlayer.class) if (this.targetClass == EntityPlayer.class)
{ {
EntityPlayer var1 = this.taskOwner.worldObj.getClosestVulnerablePlayerToEntity(this.taskOwner, (double)this.targetDistance); EntityPlayer var1 = this.taskOwner.worldObj.getClosestVulnerablePlayerToEntity(this.taskOwner, (float)this.targetDistance);
if (this.isSuitableTarget(var1, false)) if (this.isSuitableTarget(var1, false))
{ {
@ -49,7 +49,7 @@ public class EntityAINearestAttackableTarget extends EntityAITarget
} }
else else
{ {
List var5 = this.taskOwner.worldObj.getEntitiesWithinAABB(this.targetClass, this.taskOwner.boundingBox.expand((double)this.targetDistance, 4.0D, (double)this.targetDistance)); List var5 = this.taskOwner.worldObj.getEntitiesWithinAABB(this.targetClass, this.taskOwner.boundingBox.expand((float)this.targetDistance, 4.0D, (float)this.targetDistance));
Collections.sort(var5, this.field_75306_g); Collections.sort(var5, this.field_75306_g);
Iterator var2 = var5.iterator(); Iterator var2 = var5.iterator();

@ -55,7 +55,7 @@ public class EntityAIOcelotAttack extends EntityAIBase
public void updateTask() public void updateTask()
{ {
this.theEntity.getLookHelper().setLookPositionWithEntity(this.theVictim, 30.0F, 30.0F); this.theEntity.getLookHelper().setLookPositionWithEntity(this.theVictim, 30.0F, 30.0F);
double var1 = (double)(this.theEntity.width * 2.0F * this.theEntity.width * 2.0F); double var1 = (float)(this.theEntity.width * 2.0F * this.theEntity.width * 2.0F);
double var3 = this.theEntity.getDistanceSq(this.theVictim.posX, this.theVictim.boundingBox.minY, this.theVictim.posZ); double var3 = this.theEntity.getDistanceSq(this.theVictim.posX, this.theVictim.boundingBox.minY, this.theVictim.posZ);
float var5 = 0.23F; float var5 = 0.23F;

@ -51,7 +51,7 @@ public class EntityAIOcelotSit extends EntityAIBase
*/ */
public void startExecuting() public void startExecuting()
{ {
this.theOcelot.getNavigator().tryMoveToXYZ((double)((float)this.sitableBlockX.floatValue()) + 0.5D, (double)(this.sitableBlockY + 1), (double)((float)this.sitableBlockZ.floatValue()) + 0.5D, this.field_75404_b); this.theOcelot.getNavigator().tryMoveToXYZ((float)((float)this.sitableBlockX.floatValue()) + 0.5D, (float)(this.sitableBlockY + 1), (float)((float)this.sitableBlockZ.floatValue()) + 0.5D, this.field_75404_b);
this.currentTick = 0; this.currentTick = 0;
this.field_75402_d = 0; this.field_75402_d = 0;
this.maxSittingTicks = this.theOcelot.getRNG().nextInt(this.theOcelot.getRNG().nextInt(1200) + 1200) + 1200; this.maxSittingTicks = this.theOcelot.getRNG().nextInt(this.theOcelot.getRNG().nextInt(1200) + 1200) + 1200;
@ -74,10 +74,10 @@ public class EntityAIOcelotSit extends EntityAIBase
++this.currentTick; ++this.currentTick;
this.theOcelot.func_70907_r().setSitting(false); this.theOcelot.func_70907_r().setSitting(false);
if (this.theOcelot.getDistanceSq((double)this.sitableBlockX.doubleValue(), (double)(this.sitableBlockY + 1), (double)this.sitableBlockZ.doubleValue()) > 1.0D) if (this.theOcelot.getDistanceSq((float)this.sitableBlockX.doubleValue(), (float)(this.sitableBlockY + 1), (float)this.sitableBlockZ.doubleValue()) > 1.0D)
{ {
this.theOcelot.setSitting(false); this.theOcelot.setSitting(false);
this.theOcelot.getNavigator().tryMoveToXYZ((double)((float)this.sitableBlockX.floatValue()) + 0.5D, (double)(this.sitableBlockY + 1), (double)((float)this.sitableBlockZ.floatValue()) + 0.5D, this.field_75404_b); this.theOcelot.getNavigator().tryMoveToXYZ((float)((float)this.sitableBlockX.floatValue()) + 0.5D, (float)(this.sitableBlockY + 1), (float)((float)this.sitableBlockZ.floatValue()) + 0.5D, this.field_75404_b);
++this.field_75402_d; ++this.field_75402_d;
} }
else if (!this.theOcelot.isSitting()) else if (!this.theOcelot.isSitting())
@ -101,9 +101,9 @@ public class EntityAIOcelotSit extends EntityAIBase
BigInteger x = MathHelper.floor_double_BigInteger(this.theOcelot.posX), BigInteger x = MathHelper.floor_double_BigInteger(this.theOcelot.posX),
z = MathHelper.floor_double_BigInteger(this.theOcelot.posZ); z = MathHelper.floor_double_BigInteger(this.theOcelot.posZ);
for (int var4 = - 8; (double)var4 < + 8.0D; ++var4) for (int var4 = - 8; (float)var4 < + 8.0D; ++var4)
{ {
for (int var5 = - 8; (double)var5 < + 8.0D; ++var5) for (int var5 = - 8; (float)var5 < + 8.0D; ++var5)
{ {
if (this.isSittableBlock(this.theOcelot.worldObj, x.add(BigInteger.valueOf(var4)), var1, z.add(BigInteger.valueOf(var5))) && this.theOcelot.worldObj.isAirBlock(x.add(BigInteger.valueOf(var4)), var1, z.add(BigInteger.valueOf(var5)))) if (this.isSittableBlock(this.theOcelot.worldObj, x.add(BigInteger.valueOf(var4)), var1, z.add(BigInteger.valueOf(var5))) && this.theOcelot.worldObj.isAirBlock(x.add(BigInteger.valueOf(var4)), var1, z.add(BigInteger.valueOf(var5))))
{ {

@ -30,7 +30,7 @@ public class EntityAIRestrictOpenDoor extends EntityAIBase
else else
{ {
this.frontDoor = var1.findNearestDoor(MathHelper.floor_double_BigInteger(this.entityObj.posX), MathHelper.floor_double(this.entityObj.posY), MathHelper.floor_double_BigInteger(this.entityObj.posZ)); this.frontDoor = var1.findNearestDoor(MathHelper.floor_double_BigInteger(this.entityObj.posX), MathHelper.floor_double(this.entityObj.posY), MathHelper.floor_double_BigInteger(this.entityObj.posZ));
return this.frontDoor == null ? false : (double)this.frontDoor.getInsideDistanceSquare(MathHelper.floor_double_BigInteger(this.entityObj.posX), MathHelper.floor_double(this.entityObj.posY), MathHelper.floor_double_BigInteger(this.entityObj.posZ)).doubleValue() < 2.25D; return this.frontDoor == null ? false : (float)this.frontDoor.getInsideDistanceSquare(MathHelper.floor_double_BigInteger(this.entityObj.posX), MathHelper.floor_double(this.entityObj.posY), MathHelper.floor_double_BigInteger(this.entityObj.posZ)).doubleValue() < 2.25D;
} }
} }
} }

@ -48,7 +48,7 @@ public abstract class EntityAITarget extends EntityAIBase
{ {
return false; return false;
} }
else if (this.taskOwner.getDistanceSqToEntity(var1) > (double)(this.targetDistance * this.targetDistance)) else if (this.taskOwner.getDistanceSqToEntity(var1) > (float)(this.targetDistance * this.targetDistance))
{ {
return false; return false;
} }
@ -189,7 +189,7 @@ public abstract class EntityAITarget extends EntityAIBase
{ {
BigInteger var4 = var3.xCoord.subtract(MathHelper.floor_double_BigInteger(par1EntityLiving.posX)); BigInteger var4 = var3.xCoord.subtract(MathHelper.floor_double_BigInteger(par1EntityLiving.posX));
BigInteger var5 = var3.zCoord.subtract(MathHelper.floor_double_BigInteger(par1EntityLiving.posZ)); BigInteger var5 = var3.zCoord.subtract(MathHelper.floor_double_BigInteger(par1EntityLiving.posZ));
return (double)(var4.doubleValue() * var4.doubleValue() + var5.doubleValue() * var5.doubleValue()) <= 2.25D; return (float)(var4.doubleValue() * var4.doubleValue() + var5.doubleValue() * var5.doubleValue()) <= 2.25D;
} }
} }
} }

@ -81,7 +81,7 @@ public class EntityAITempt extends EntityAIBase
return false; return false;
} }
if (Math.abs((double)this.temptingPlayer.rotationPitch - this.field_75278_f) > 5.0D || Math.abs((double)this.temptingPlayer.rotationYaw - this.field_75279_g) > 5.0D) if (Math.abs((float)this.temptingPlayer.rotationPitch - this.field_75278_f) > 5.0D || Math.abs((float)this.temptingPlayer.rotationYaw - this.field_75279_g) > 5.0D)
{ {
return false; return false;
} }
@ -93,8 +93,8 @@ public class EntityAITempt extends EntityAIBase
this.field_75281_e = this.temptingPlayer.posZ; this.field_75281_e = this.temptingPlayer.posZ;
} }
this.field_75278_f = (double)this.temptingPlayer.rotationPitch; this.field_75278_f = (float)this.temptingPlayer.rotationPitch;
this.field_75279_g = (double)this.temptingPlayer.rotationYaw; this.field_75279_g = (float)this.temptingPlayer.rotationYaw;
} }
return this.shouldExecute(); return this.shouldExecute();

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save