Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 21:40:08 +01:00
61ec751ca1
We know these updates (can) break plugins bypassing Bukkit. They are needed for smooth updates however. There will be another one right before before 1.1-R1.
31 Zeilen
813 B
Java
31 Zeilen
813 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 b() {
|
|
return this.a;
|
|
}
|
|
|
|
public Entity getEntity() {
|
|
return this.owner;
|
|
}
|
|
|
|
public String getLocalizedDeathMessage(EntityHuman entityhuman) {
|
|
// CraftBukkit start
|
|
String source = (this.owner == null) ? "Herobrine" : this.owner.getLocalizedName();
|
|
return LocaleI18n.get("death." + this.translationIndex, new Object[] { entityhuman.name, source});
|
|
}
|
|
|
|
public Entity getProximateDamageSource() {
|
|
return super.getEntity();
|
|
// CraftBukkit end
|
|
}
|
|
}
|