UNPKG

mcraft-fun-mineflayer

Version:

Mineflayer viewer (connector) for mcraft.fun project and vanilla Minecraft client! Both TCP and WebSockets servers are supported.

29 lines (28 loc) 989 B
import { Client } from 'minecraft-protocol'; export declare const passthroughPackets: string[]; export type AuxClientsState = { auxClients?: Client[]; writeToAuxClients?: (name: string, data: any) => void; }; export declare const handleAuxClientsProxy: (serverConnection: Client, state: AuxClientsState) => { lastPackets: { login: any; position: any; player_info: any; playerlist_header: any; server_data: any; initialize_world_border: any; world_border_size: any; world_border_center: any; world_border_lerp_size: any; world_border_warning_delay: any; world_border_warning_reach: any; }; firstPackets: { player_info: any; }; onNewAuxConnection: (client: Client) => void; writeMainClientPackets: (name: string, data: any) => void; writeToAuxClients: (name: string, data: any, clients?: Client[]) => void; Item: typeof import("prismarine-item").Item; };