3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-25 07:40:06 +01:00
Paper/src/main/java/net/minecraft/server/EntityDamageSourceIndirect.java

30 Zeilen
785 B
Java

package net.minecraft.server;
public class EntityDamageSourceIndirect extends EntityDamageSource {
private Entity owner;
public EntityDamageSourceIndirect(String s, Entity entity, Entity entity1) {
super(s, entity);
this.owner = entity1;
2012-01-12 23:10:13 +01:00
}
2012-07-29 09:33:13 +02:00
public Entity f() {
return this.r;
}
public Entity getEntity() {
return this.owner;
}
public String getLocalizedDeathMessage(EntityHuman entityhuman) {
2012-11-06 13:05:28 +01:00
return LocaleI18n.get("death." + this.translationIndex, new Object[] { entityhuman.name, this.owner == null ? this.r.getLocalizedName() : this.owner.getLocalizedName()});
}
2012-11-06 13:05:28 +01:00
// CraftBukkit start
public Entity getProximateDamageSource() {
return super.getEntity();
}
2012-11-06 13:05:28 +01:00
// CraftBukkit end
}