getObservingPlayerIndices

Gets a set of all the indexes of the players that are observing this NPC.

It is important to note that the collection is re-used across cycles. If the collection is intended to be stored for long-term usage, it should be copied to a new data set, or re-called each cycle. Trying to access the iterator across game cycles will result in a ConcurrentModificationException.

Return

a set of all the player indices observing this NPC.