Commits
Senmori authored and md_5 committed 570e0e67528
1 1 | package org.bukkit.entity; |
2 2 | |
3 3 | import org.bukkit.Location; |
4 4 | import org.bukkit.EntityEffect; |
5 5 | import org.bukkit.Server; |
6 6 | import org.bukkit.World; |
7 7 | import org.bukkit.event.entity.EntityDamageEvent; |
8 8 | import org.bukkit.metadata.Metadatable; |
9 9 | import org.bukkit.util.Vector; |
10 10 | |
11 11 | import java.util.List; |
12 + | import java.util.Set; |
12 13 | import java.util.UUID; |
13 14 | import org.bukkit.command.CommandSender; |
14 15 | import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; |
15 16 | |
16 17 | /** |
17 18 | * Represents a base entity in the world |
18 19 | */ |
19 20 | public interface Entity extends Metadatable, CommandSender { |
20 21 | |
21 22 | /** |
410 411 | * @return portal cooldown ticks |
411 412 | */ |
412 413 | int getPortalCooldown(); |
413 414 | |
414 415 | /** |
415 416 | * Sets the period of time (in ticks) before this entity can use a portal. |
416 417 | * |
417 418 | * @param cooldown portal cooldown ticks |
418 419 | */ |
419 420 | void setPortalCooldown(int cooldown); |
421 + | |
422 + | /** |
423 + | * Returns a set of tags for this entity. |
424 + | * <br> |
425 + | * Entities can have no more than 1024 tags. |
426 + | * |
427 + | * @return a set of tags for this entity |
428 + | */ |
429 + | Set<String> getScoreboardTags(); |
430 + | |
431 + | /** |
432 + | * Add a tag to this entity. |
433 + | * <br> |
434 + | * Entities can have no more than 1024 tags. |
435 + | * |
436 + | * @param tag the tag to add |
437 + | * @return true if the tag was successfully added |
438 + | */ |
439 + | boolean addScoreboardTag(String tag); |
440 + | |
441 + | /** |
442 + | * Removes a given tag from this entity. |
443 + | * |
444 + | * @param tag the tag to remove |
445 + | * @return true if the tag was successfully removed |
446 + | */ |
447 + | boolean removeScoreboardTag(String tag); |
420 448 | } |