3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-18 14:00:05 +01:00
Paper/src/main/java/net/minecraft/server/EntityDamageSourceIndirect.java

22 Zeilen
596 B
Java

package net.minecraft.server;
public class EntityDamageSourceIndirect extends EntityDamageSource {
private Entity n;
public EntityDamageSourceIndirect(String s, Entity entity, Entity entity1) {
super(s, entity);
this.n = entity1;
}
public Entity getEntity() {
return this.n;
}
public String a(EntityHuman entityhuman) {
// CraftBukkit start
2011-11-20 09:01:14 +01:00
String source = (this.n == null) ? "Herobrine" : this.n.ad();
return LocaleI18n.a("death." + this.m, new Object[] { entityhuman.name, source});
// CraftBukkit end
}
}