BloodMagic/src/main/java/wayoftime/bloodmagic/util/DamageSourceBloodMagic.java
WayofTime 9fa68e86ae Attempt to fix 1.16.3 branch's issues on the repository
Added the original 'wayoftime' folder back, so see if that fixed the multiple folder issue.
2020-10-29 15:50:03 -04:00

25 lines
No EOL
660 B
Java

package wayoftime.bloodmagic.util;
import net.minecraft.entity.LivingEntity;
import net.minecraft.util.DamageSource;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.TranslationTextComponent;
public class DamageSourceBloodMagic extends DamageSource
{
public static final DamageSourceBloodMagic INSTANCE = new DamageSourceBloodMagic();
public DamageSourceBloodMagic()
{
super("bloodMagic");
setDamageBypassesArmor();
setDamageIsAbsolute();
}
@Override
public ITextComponent getDeathMessage(LivingEntity livingBase)
{
return new TranslationTextComponent("chat.bloodmagic.damageSource", livingBase.getName());
}
}