Network stuffs -> 1.7

This commit is contained in:
Arthur Uzulin committed 2014-02-01 17:28:41 +11:00
1 parent bb98f77de4
commit 8cd760ea06
34 files changed
+527 -595

No files matched your search

@@ -1,10 +1,10 @@
package tconstruct.util;
import tconstruct.library.tools.AbilityHelper;
import net.minecraft.entity.EntityLiving;
import net.minecraft.util.*;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.DamageSource;
import net.minecraft.util.StatCollector;
import net.minecraft.util.*;
import tconstruct.library.tools.AbilityHelper;
public class SmelteryDamageSource extends DamageSource
{
@@ -13,7 +13,8 @@ public class SmelteryDamageSource extends DamageSource
super("smeltery");
}
public String getDeathMessage (EntityLiving par1EntityLiving)
@Override
public IChatComponent func_151519_b (EntityLivingBase par1EntityLiving)
{
String type = "";
switch (AbilityHelper.random.nextInt(4))
@@ -34,8 +35,6 @@ public class SmelteryDamageSource extends DamageSource
EntityLivingBase entityliving1 = par1EntityLiving.func_94060_bK();
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() });
return entityliving1 != null && StatCollector.func_94522_b(s1) ? new ChatComponentTranslation(s1, new Object[] {par1EntityLiving.func_145748_c_(), entityliving1.func_145748_c_()}): new ChatComponentTranslation(s, new Object[] {par1EntityLiving.func_145748_c_()});
}
}