diff options
author | Senmori <thesenmori@gmail.com> | 2016-11-06 12:14:14 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-11-06 12:18:27 +1100 |
commit | 51263e97187a84338f89698eef187284055a682a (patch) | |
tree | fb1926e65da66df2150855186f29a9899b215feb /src/main/java/org | |
parent | cb2749768e76000a1c6fd0653efae602ea53290b (diff) | |
download | craftbukkit-51263e97187a84338f89698eef187284055a682a.tar craftbukkit-51263e97187a84338f89698eef187284055a682a.tar.gz craftbukkit-51263e97187a84338f89698eef187284055a682a.tar.lz craftbukkit-51263e97187a84338f89698eef187284055a682a.tar.xz craftbukkit-51263e97187a84338f89698eef187284055a682a.zip |
Implement Entity Scoreboard Tags
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 87484b92..e1b16b45 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -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() { |