mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
22 lines
614 B
Java
22 lines
614 B
Java
package com.hbm.items.weapon.sedna;
|
|
|
|
import java.util.Locale;
|
|
|
|
import net.minecraft.entity.EntityLivingBase;
|
|
import net.minecraft.util.ChatComponentTranslation;
|
|
import net.minecraft.util.DamageSource;
|
|
import net.minecraft.util.IChatComponent;
|
|
|
|
public class DamageSourceSednaNoAttacker extends DamageSource {
|
|
|
|
public DamageSourceSednaNoAttacker(String type) {
|
|
super(type.toLowerCase(Locale.US));
|
|
}
|
|
|
|
@Override
|
|
public IChatComponent func_151519_b(EntityLivingBase died) {
|
|
IChatComponent diedName = died.func_145748_c_();
|
|
return new ChatComponentTranslation("death.sedna." + this.damageType, diedName);
|
|
}
|
|
}
|