isVisibleTo
isVisibleTo(
world,player,entity):boolean
Whether player may see entity: whether the player’s page holds it,
which a result’s entities and an entity field pass through (Rule 3), so
a result that names an entity the player does not hold reads null there,
as a destroyed one does.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
player |
Entity |
entity |
Entity |
Returns
Section titled “Returns”boolean