Implement Entity Scoreboard Tags

By: Senmori <thesenmori@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2016-11-06 12:14:14 +11:00
parent 0fcb2058cf
commit 49bc1c57f9

View file

@ -594,6 +594,21 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
getHandle().portalCooldown = cooldown;
}
@Override
public Set<String> getScoreboardTags() {
return getHandle().P(); // PAIL: getScoreboardTags
}
@Override
public boolean addScoreboardTag(String tag) {
return getHandle().a(tag); // PAIL: addScoreboardTag
}
@Override
public boolean removeScoreboardTag(String tag) {
return getHandle().b(tag); // PAIL: removeScoreboardTag
}
private static PermissibleBase getPermissibleBase() {
if (perm == null) {
perm = new PermissibleBase(new ServerOperator() {