2015-11-02 12:39:44 -08:00
|
|
|
package WayofTime.bloodmagic.api;
|
2015-10-29 20:22:14 -07:00
|
|
|
|
2015-12-01 23:35:09 -08:00
|
|
|
import WayofTime.bloodmagic.util.helper.TextHelper;
|
|
|
|
import net.minecraft.entity.EntityLivingBase;
|
|
|
|
import net.minecraft.util.ChatComponentText;
|
2015-10-29 20:22:14 -07:00
|
|
|
import net.minecraft.util.DamageSource;
|
2015-12-01 23:35:09 -08:00
|
|
|
import net.minecraft.util.IChatComponent;
|
2015-10-29 20:22:14 -07:00
|
|
|
|
|
|
|
public class DamageSourceBloodMagic extends DamageSource {
|
|
|
|
|
|
|
|
public DamageSourceBloodMagic() {
|
|
|
|
super("bloodMagic");
|
|
|
|
|
|
|
|
setDamageBypassesArmor();
|
2015-12-01 23:35:09 -08:00
|
|
|
setDamageIsAbsolute();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public IChatComponent getDeathMessage(EntityLivingBase livingBase) {
|
|
|
|
return new ChatComponentText(TextHelper.localizeEffect("chat.BloodMagic.damageSource", livingBase.getName()));
|
2015-10-29 20:22:14 -07:00
|
|
|
}
|
|
|
|
}
|