UNPKG

@jsprismarine/prismarine

Version:

Dedicated Minecraft Bedrock Edition server written in TypeScript

31 lines 961 B
import { Vector3 } from '../../../../math/src/index.ts'; import { Metadata } from '../../entity/Metadata'; import { Item } from '../../item/Item'; import { default as DataPacket } from './DataPacket'; /** * Packet for adding an dropped item to the game. * * **Bound To:** Client * * | Name | Type | Notes | * | ---- |:----:|:-----:| * | uniqueEntityId | VarLong | | * | runtimeEntityId | UnsignedVarLong | | * | item | Item | The item/block | * | position | Vector3 (LFloat) | The entity's position | * | motion | Vector3 (LFloat) | The entity's motion | * | metadata | | TODO| * | isFromFishing | Boolean | | */ export default class AddItemActorPacket extends DataPacket { static NetID: number; uniqueEntityId: bigint; runtimeEntityId: bigint; item: Item; position: Vector3; motion: Vector3; metadata: Metadata; isFromFishing: boolean; encodePayload(): void; } //# sourceMappingURL=AddItemActorPacket.d.ts.map