fixed several tools

This commit is contained in:
Progwml6 committed 2014-01-16 03:57:21 -05:00
1 parent 3d5cdf6ee6
commit d914004bde
27 files changed
+86 -85

No files matched your search

@@ -1,7 +1,7 @@
package tconstruct.util;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.ChatMessageComponent;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.DamageSource;
import net.minecraft.util.IChatComponent;
import net.minecraft.util.StatCollector;
@@ -15,9 +15,10 @@ public class DamageSourceLandmine extends DamageSource
this.setDamageBypassesArmor();
}
public IChatComponent getDeathMessage (EntityLivingBase par1EntityLivingBase)
public IChatComponent func_151519_b (EntityLivingBase par1EntityLivingBase)
{
return super.getDeathMessage(par1EntityLivingBase);
//TODO getDeathMessage????
return super.func_151519_b(par1EntityLivingBase);
}
}
@@ -70,7 +70,7 @@ public class MiningExplosion extends Explosion
int l = MathHelper.floor_double(d0);
int i1 = MathHelper.floor_double(d1);
int j1 = MathHelper.floor_double(d2);
Block k1 = this.world.getBlock(l, i1, j1);
Block k1 = this.world.func_147439_a(l, i1, j1);
if (k1 != Blocks.air)
{
@@ -169,10 +169,10 @@ public class MiningExplosion extends Explosion
while (iterator.hasNext())
{
chunkposition = (ChunkPosition) iterator.next();
i = chunkposition.x;
j = chunkposition.y;
k = chunkposition.z;
l = this.world.getBlock(i, j, k);
i = chunkposition.field_151329_a;
j = chunkposition.field_151327_b;
k = chunkposition.field_151328_c;
l = this.world.func_147439_a(i, j, k);
if (par1)
{
@@ -199,9 +199,9 @@ public class MiningExplosion extends Explosion
{
Block block = l;
if (block.canDropFromExplosion(this))
if (block.func_149659_a(this))
{
block.dropBlockAsItemWithChance(this.world, i, j, k, this.world.getBlockMetadata(i, j, k), 1.0F, 0);
block.func_149690_a(this.world, i, j, k, this.world.getBlockMetadata(i, j, k), 1.0F, 0);
}
block.onBlockExploded(this.world, i, j, k, this);
@@ -216,11 +216,11 @@ public class MiningExplosion extends Explosion
while (iterator.hasNext())
{
chunkposition = (ChunkPosition) iterator.next();
i = chunkposition.x;
j = chunkposition.y;
k = chunkposition.z;
l = this.world.getBlock(i, j, k);
Block i1 = this.world.getBlock(i, j - 1, k);
i = chunkposition.field_151329_a;
j = chunkposition.field_151327_b;
k = chunkposition.field_151328_c;
l = this.world.func_147439_a(i, j, k);
Block i1 = this.world.func_147439_a(i, j - 1, k);
if (l == Blocks.air && Block.opaqueCubeLookup[i1] && this.random.nextInt(3) == 0)
{
@@ -35,7 +35,7 @@ public class SmelteryDamageSource extends DamageSource
String s = "death." + type + this.damageType;
String s1 = s + ".player";
return entityliving1 != null && StatCollector.func_94522_b(s1) ? StatCollector.translateToLocalFormatted(s1,
new Object[] { par1EntityLiving.getTranslatedEntityName(), entityliving1.getTranslatedEntityName() }) : StatCollector.translateToLocalFormatted(s,
new Object[] { par1EntityLiving..getTranslatedEntityName(), entityliving1.getTranslatedEntityName() }) : StatCollector.translateToLocalFormatted(s,
new Object[] { par1EntityLiving.getTranslatedEntityName() });
}
}
@@ -264,7 +264,7 @@ public class TEventHandler
for (int i = 0; i < event.drops.size(); i++)
{
ItemStack is = event.drops.get(i).getEntityItem();
if (FurnaceRecipes.smelting().getSmeltingResult(is) != null && FurnaceRecipes.smelting().getSmeltingResult(is).getItem() instanceof ItemFood)
if (FurnaceRecipes.smelting().func_151395_a(is) != null && FurnaceRecipes.smelting().func_151395_a(is).getItem() instanceof ItemFood)
{
NBTTagCompound stackCompound = is.getTagCompound();
if (stackCompound == null)
@@ -636,7 +636,7 @@ public class TEventHandler
for(int i = 0; i < armor.getSizeInventory(); i++){
if(armor.getStackInSlot(i) != null){
armor.getStackInSlot(i).getItem().onUpdate(armor.getStackInSlot(i), player.worldObj, player, i, false);
armor.getStackInSlot(i).getItem().onArmorTickUpdate(player.worldObj, player, armor.getStackInSlot(i));
armor.getStackInSlot(i).getItem().onArmorTick(player.worldObj, player, armor.getStackInSlot(i));
}
}
}