2020-10-24 12:59:04 +00:00
|
|
|
package wayoftime.bloodmagic.util;
|
2015-10-30 03:22:14 +00:00
|
|
|
|
2019-09-22 19:55:43 +00:00
|
|
|
import net.minecraft.entity.LivingEntity;
|
2015-10-30 03:22:14 +00:00
|
|
|
import net.minecraft.util.DamageSource;
|
2016-03-17 20:00:44 +00:00
|
|
|
import net.minecraft.util.text.ITextComponent;
|
2020-10-26 20:08:04 +00:00
|
|
|
import net.minecraft.util.text.TranslationTextComponent;
|
2015-10-30 03:22:14 +00:00
|
|
|
|
2020-10-24 12:59:04 +00:00
|
|
|
public class DamageSourceBloodMagic extends DamageSource
|
|
|
|
{
|
|
|
|
public static final DamageSourceBloodMagic INSTANCE = new DamageSourceBloodMagic();
|
2018-03-18 05:30:14 +00:00
|
|
|
|
2020-10-24 12:59:04 +00:00
|
|
|
public DamageSourceBloodMagic()
|
|
|
|
{
|
|
|
|
super("bloodMagic");
|
2018-03-18 05:30:14 +00:00
|
|
|
|
2020-10-24 12:59:04 +00:00
|
|
|
setDamageBypassesArmor();
|
|
|
|
setDamageIsAbsolute();
|
|
|
|
}
|
2015-10-30 03:22:14 +00:00
|
|
|
|
2020-10-24 12:59:04 +00:00
|
|
|
@Override
|
|
|
|
public ITextComponent getDeathMessage(LivingEntity livingBase)
|
|
|
|
{
|
2020-10-26 20:08:04 +00:00
|
|
|
return new TranslationTextComponent("chat.bloodmagic.damageSource", livingBase.getName());
|
2020-10-24 12:59:04 +00:00
|
|
|
}
|
|
|
|
}
|