2011-09-21 01:50:35 +02:00
|
|
|
package net.minecraft.server;
|
|
|
|
|
|
|
|
public class EntityDamageSourceIndirect extends EntityDamageSource {
|
|
|
|
|
2012-01-12 23:10:13 +01:00
|
|
|
private Entity o;
|
2011-09-21 01:50:35 +02:00
|
|
|
|
|
|
|
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;
|
2011-09-21 01:50:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public Entity getEntity() {
|
2012-01-12 23:10:13 +01:00
|
|
|
return this.o;
|
2011-09-21 01:50:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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});
|
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
|
|
|
}
|