3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-17 21:40:08 +01:00
Paper/src/main/java/net/minecraft/server/EntityDamageSourceIndirect.java

31 Zeilen
739 B
Java

package net.minecraft.server;
public class EntityDamageSourceIndirect extends EntityDamageSource {
2012-01-12 23:10:13 +01:00
private Entity o;
public EntityDamageSourceIndirect(String s, Entity entity, Entity entity1) {
super(s, entity);
2012-01-12 23:10:13 +01:00
this.o = entity1;
}
public Entity b() {
return this.a;
}
public Entity getEntity() {
2012-01-12 23:10:13 +01:00
return this.o;
}
public String a(EntityHuman entityhuman) {
// CraftBukkit start
2012-01-12 23:10:13 +01:00
String source = (this.o == null) ? "Herobrine" : this.o.ad();
return LocaleI18n.a("death." + this.n, new Object[] { entityhuman.name, source});
}
public Entity getProximateDamageSource() {
return super.getEntity();
// CraftBukkit end
}
}