blob: 0d9d4d5dc24d9ff61f3f17a0ffebfa5a566503bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package gtPlusPlus.api.damage;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.ChatComponentTranslation;
import net.minecraft.util.IChatComponent;
import gtPlusPlus.core.world.damage.BaseCustomDamageSource;
public class DamageTeslaTower extends BaseCustomDamageSource {
public DamageTeslaTower(Entity transmitter) {
super("plasmabolt", transmitter, null);
this.setDamageBypassesArmor();
this.setDamageIsAbsolute();
}
@Override
public IChatComponent func_151519_b(EntityLivingBase target) {
String s = "death.attack." + this.damageType;
return new ChatComponentTranslation(s, target.getCommandSenderName(), "Plasma");
}
}
|