mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
Implement Entity Scoreboard Tags
By: Senmori <thesenmori@gmail.com>
This commit is contained in:
parent
bde8f61893
commit
06e0085b98
1 changed files with 28 additions and 0 deletions
|
@ -9,6 +9,7 @@ import org.bukkit.metadata.Metadatable;
|
|||
import org.bukkit.util.Vector;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
|
||||
|
@ -417,4 +418,31 @@ public interface Entity extends Metadatable, CommandSender {
|
|||
* @param cooldown portal cooldown ticks
|
||||
*/
|
||||
void setPortalCooldown(int cooldown);
|
||||
|
||||
/**
|
||||
* Returns a set of tags for this entity.
|
||||
* <br>
|
||||
* Entities can have no more than 1024 tags.
|
||||
*
|
||||
* @return a set of tags for this entity
|
||||
*/
|
||||
Set<String> getScoreboardTags();
|
||||
|
||||
/**
|
||||
* Add a tag to this entity.
|
||||
* <br>
|
||||
* Entities can have no more than 1024 tags.
|
||||
*
|
||||
* @param tag the tag to add
|
||||
* @return true if the tag was successfully added
|
||||
*/
|
||||
boolean addScoreboardTag(String tag);
|
||||
|
||||
/**
|
||||
* Removes a given tag from this entity.
|
||||
*
|
||||
* @param tag the tag to remove
|
||||
* @return true if the tag was successfully removed
|
||||
*/
|
||||
boolean removeScoreboardTag(String tag);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue