# S18PacketEntityTeleport

Represents a packet that is sent when an entity teleports to a new position

### Extends

* [`Packet`](https://scripting.breeze.rip/api/net/minecraft/network/packet)

### Methods

#### getEntity()

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

Gets the entity that teleported

**Returns**

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

The teleported entity

***

#### getOnGround()

> **getOnGround**(): `boolean`

Checks if the entity is on ground after teleporting

**Returns**

`boolean`

true if on ground, false otherwise

***

#### getPacketID()

> **getPacketID**(): `string`

Get the ID of the packet.

**Returns**

`string`

The ID of the packet.

**Inherited from**

[`Packet`](https://scripting.breeze.rip/api/net/minecraft/network/packet).[`getPacketID`](https://scripting.breeze.rip/api/net/minecraft/packet#getpacketid)

***

#### getPitch()

> **getPitch**(): `number`

Gets the pitch rotation of the entity in degrees

**Returns**

`number`

The pitch angle

***

#### getX()

> **getX**(): `number`

Gets the X coordinate the entity teleported to

**Returns**

`number`

The X coordinate

***

#### getY()

> **getY**(): `number`

Gets the Y coordinate the entity teleported to

**Returns**

`number`

The Y coordinate

***

#### getYaw()

> **getYaw**(): `number`

Gets the yaw rotation of the entity in degrees

**Returns**

`number`

The yaw angle

***

#### getZ()

> **getZ**(): `number`

Gets the Z coordinate the entity teleported to

**Returns**

`number`

The Z coordinate
