World

getEntities()

getEntities(): Entity[]

Gets all entities in the world.

Returns

Entity[]


getPlayers()

getPlayers(): EntityPlayer[]

Gets all players in the world.

Returns

EntityPlayer[]


rayTraceBlocks()

rayTraceBlocks(from, to): RaytraceResult

Ray traces through the world from one point to another.

Parameters

from

Vec3

The starting position of the ray.

to

Vec3

The ending position of the ray.

Returns

RaytraceResult

The result of the ray trace, or null if no intersection was found.

Last updated