summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityDamageSourceIndirect.java
blob: 9d5496c16262e90e16e8e9b96eff72d4315de456 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
        String source = (this.n == null) ? "Herobrine" : this.n.ad();
        return LocaleI18n.a("death." + this.m, new Object[] { entityhuman.name, source});
    }

    public Entity getProximateDamageSource() {
        return super.getEntity();
        // CraftBukkit end
    }
}