mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 15:30:19 +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
c4091d62f4
commit
0d206d5069
1 changed files with 11 additions and 0 deletions
|
@ -1112,4 +1112,15 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
||||||
*/
|
*/
|
||||||
@NotNull io.papermc.paper.threadedregions.scheduler.EntityScheduler getScheduler();
|
@NotNull io.papermc.paper.threadedregions.scheduler.EntityScheduler getScheduler();
|
||||||
// Paper end - Folia schedulers
|
// Paper end - Folia schedulers
|
||||||
|
|
||||||
|
// Paper start - entity scoreboard name
|
||||||
|
/**
|
||||||
|
* Gets the string name of the entity used to track it in {@link org.bukkit.scoreboard.Scoreboard Scoreboards}.
|
||||||
|
*
|
||||||
|
* @return the scoreboard entry name
|
||||||
|
* @see org.bukkit.scoreboard.Scoreboard#getScores(String)
|
||||||
|
* @see org.bukkit.scoreboard.Scoreboard#getEntries()
|
||||||
|
*/
|
||||||
|
@NotNull String getScoreboardEntryName();
|
||||||
|
// Paper end - entity scoreboard name
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue