canBeSeenBy

public boolean canBeSeenBy(Player player)

Checks whether a player is allowed to see this entity, independent of range and world. Implementations may override this for viewer-specific visibility rules.

Return

true when the viewer is allowed to see the entity

Parameters

player

the prospective viewer