@jsprismarine/prismarine
Version:
Dedicated Minecraft Bedrock Edition server written in TypeScript
35 lines • 1.01 kB
TypeScript
import { Vector3 } from '../../../../math/src/index.ts';
import { Metadata } from '../../entity/Metadata';
import { default as DataPacket } from './DataPacket';
/**
* Packet for adding an entity to the game.
*
* **Bound To:** Client
*
* | Name | Type | Notes |
* | ---- |:----:|:-----:|
* | uniqueEntityId | VarLong | |
* | runtimeEntityId | UnsignedVarLong | |
* | type | String | The namespaced entity ID |
* | position | Vector3 (LFloat) | The entity's position |
* | motion | Vector3 (LFloat) | The entity's motion |
* | pitch | LFloat | |
* | yaw | LFloat | |
* | headYaw | LFloat | |
*/
export default class AddActorPacket extends DataPacket {
static NetID: number;
uniqueEntityId: bigint;
runtimeEntityId: bigint;
type: string;
position: Vector3;
motion: Vector3;
pitch: number;
yaw: number;
headYaw: number;
attributes: never[];
metadata: Metadata;
links: never[];
encodePayload(): void;
}
//# sourceMappingURL=AddActorPacket.d.ts.map