# World

## getEntities()

> **getEntities**(): [`Entity`](https://scripting.breeze.rip/api/net/minecraft/entity/entity)\[]

Gets all entities in the world.

### Returns

[`Entity`](https://scripting.breeze.rip/api/net/minecraft/entity/entity)\[]

***

## getPlayers()

> **getPlayers**(): [`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer)\[]

Gets all players in the world.

### Returns

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer)\[]

***

## rayTraceBlocks()

> **rayTraceBlocks**(`from`, `to`): [`RaytraceResult`](https://scripting.breeze.rip/api/net/minecraft/util/raytraceresult)

Ray traces through the world from one point to another.

### Parameters

#### from

[`Vec3`](https://scripting.breeze.rip/api/net/minecraft/util/vec3)

The starting position of the ray.

#### to

[`Vec3`](https://scripting.breeze.rip/api/net/minecraft/util/vec3)

The ending position of the ray.

### Returns

[`RaytraceResult`](https://scripting.breeze.rip/api/net/minecraft/util/raytraceresult)

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