2018-02-16 02:49:01 +00:00
|
|
|
package WayofTime.bloodmagic.util;
|
2015-10-30 03:22:14 +00:00
|
|
|
|
2016-03-17 20:00:44 +00:00
|
|
|
import WayofTime.bloodmagic.util.helper.TextHelper;
|
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;
|
2019-09-22 19:55:43 +00:00
|
|
|
import net.minecraft.util.text.StringTextComponent;
|
2015-10-30 03:22:14 +00:00
|
|
|
|
2017-08-16 04:30:48 +00:00
|
|
|
public class DamageSourceBloodMagic extends DamageSource {
|
2018-03-18 05:30:14 +00:00
|
|
|
|
|
|
|
public static final DamageSourceBloodMagic INSTANCE = new DamageSourceBloodMagic();
|
|
|
|
|
2017-08-16 04:30:48 +00:00
|
|
|
public DamageSourceBloodMagic() {
|
2015-10-30 03:22:14 +00:00
|
|
|
super("bloodMagic");
|
|
|
|
|
|
|
|
setDamageBypassesArmor();
|
2015-12-02 07:35:09 +00:00
|
|
|
setDamageIsAbsolute();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2019-09-22 19:55:43 +00:00
|
|
|
public ITextComponent getDeathMessage(LivingEntity livingBase) {
|
|
|
|
return new StringTextComponent(TextHelper.localizeEffect("chat.bloodmagic.damageSource", livingBase.getName()));
|
2015-10-30 03:22:14 +00:00
|
|
|
}
|
|
|
|
}
|