2011-09-21 01:50:35 +02:00
|
|
|
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();
|
2011-11-30 00:17:43 +01:00
|
|
|
return LocaleI18n.a("death." + this.m, new Object[] { entityhuman.name, source});
|
2011-12-27 19:56:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public Entity getProximateDamageSource() {
|
|
|
|
return super.getEntity();
|
2011-09-21 01:50:35 +02:00
|
|
|
// CraftBukkit end
|
|
|
|
}
|
2011-12-27 19:56:46 +01:00
|
|
|
}
|