mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 03:48:01 +01:00
API for an entity's scoreboard name
Was obtainable through different methods, but you had to use different methods depending on the implementation of Entity you were working with.
This commit is contained in:
parent
c6e45b313c
commit
b690edd273
@ -1259,4 +1259,11 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
||||
return !this.getHandle().level().noCollision(this.getHandle(), aabb);
|
||||
}
|
||||
// Paper end - Collision API
|
||||
|
||||
// Paper start - entity scoreboard name
|
||||
@Override
|
||||
public String getScoreboardEntryName() {
|
||||
return this.getHandle().getScoreboardName();
|
||||
}
|
||||
// Paper end - entity scoreboard name
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user