3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-20 05:20:07 +01:00
Paper/src/main/java/net/minecraft/server/EntityDamageSourceIndirect.java
2012-11-13 16:09:52 -06:00

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;
}
public Entity f() {
return this.r;
}
public Entity getEntity() {
return this.owner;
}
public String getLocalizedDeathMessage(EntityHuman entityhuman) {
return LocaleI18n.get("death." + this.translationIndex, new Object[] { entityhuman.name, this.owner == null ? this.r.getLocalizedName() : this.owner.getLocalizedName()});
}
// CraftBukkit start
public Entity getProximateDamageSource() {
return super.getEntity();
}
// CraftBukkit end
}