expose viewer list in api
This commit is contained in:
parent
5bec816d02
commit
fb90135dd2
1 changed files with 6 additions and 0 deletions
|
@ -8,6 +8,7 @@ import org.bukkit.World;
|
|||
import org.bukkit.entity.Player;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
|
@ -118,4 +119,9 @@ public interface Npc extends PropertyHolder {
|
|||
* @return The entity id of the packet entity that this npc object represents
|
||||
*/
|
||||
int getPacketEntityId();
|
||||
|
||||
/**
|
||||
* @return The set of players that can currently see this npc
|
||||
*/
|
||||
Set<Player> getViewers();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue