Nocturnal Pajama Mutants

    @mcbe/event_client
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.8 • Public • Published

    About this

    global system variable that created by @mcbe/system_shared

    Example

    import events from '@mcbe/event_client';
    
    events.initialize.on(()=>{ /* on initialize */ });
    events.shutdown.on(()=>{ /* on shutdown */ });
    events.update.on(()=>{ /* on update */ });
    
    events.broadcast.DisplayChat({message:' message '}); // broadcast minecraft:display_chat event
    events.listen.ClientEnteredWorld(ev=>{ // listen minecraft:client_enter_world event
        ev.player; // IEntity
    });

    @mcbe/event dependency

    @mcbe/event will freeze system object to prevent modifiying initialize update shutdown functions.

    // please use
    import events from "@mcbe/event_client";
    events.initialize.on(()=>{ /* codes */ });
    events.update.on(()=>{ /* codes */ });
    events.shutdown.on(()=>{ /* codes */ });
    // instead of 
    system.initialize = ()=>{ /* codes */ };
    system.update = ()=>{ /* codes */ };
    system.shutdown = ()=>{ /* codes */ };

    Keywords

    none

    Install

    npm i @mcbe/event_client

    DownloadsWeekly Downloads

    0

    Version

    2.0.8

    License

    ISC

    Unpacked Size

    6.21 kB

    Total Files

    6

    Last publish

    Collaborators

    • karikera