Initial 1.11.2 update

This commit is contained in:
Electroblob
2018-02-07 21:15:50 +00:00
parent 67f6be0671
commit 3df5597dcc
368 changed files with 17234 additions and 15082 deletions
@@ -12,24 +12,26 @@ import net.minecraft.util.text.TextComponentTranslation;
* purpose of displaying the correct death message. <i>The event handler deals with all damage dealt by summoned
* creatures, so it's very unlikely that this will be needed anywhere else. If for some reason it is, note that
* knockback has to be removed and re-applied after the damage is dealt.</i>
*
* @author Electroblob
* @since Wizardry 1.2
* @see MinionDamage
*/
public class IndirectMinionDamage extends IndirectMagicDamage {
private Entity minion;
public IndirectMinionDamage(String name, Entity projectile, Entity minion, Entity caster, DamageType type, boolean isRetaliatory) {
public IndirectMinionDamage(String name, Entity projectile, Entity minion, Entity caster, DamageType type,
boolean isRetaliatory){
super(name, projectile, caster, type, isRetaliatory);
this.minion = minion;
}
@Override
public ITextComponent getDeathMessage(EntityLivingBase victim) {
public ITextComponent getDeathMessage(EntityLivingBase victim){
ITextComponent itextcomponent = this.minion.getDisplayName();
String key = "death.attack." + this.damageType;
return new TextComponentTranslation(key, victim.getDisplayName(), itextcomponent);
String key = "death.attack." + this.damageType;
return new TextComponentTranslation(key, victim.getDisplayName(), itextcomponent);
}
}