Package dev.overlord.zomboidforge.api


@NotNullByDefault package dev.overlord.zomboidforge.api
  • Class
    Description
    Virtual threads for a mod's blocking work, such as HTTP calls or file I/O: one thread per task, named zf-async-<id>-<n>.
    An event whose default action, what Project Zomboid does after the event, can be prevented.
    A client command arrived: a client called Lua's sendClientCommand(module, command, args).
    Server commands to clients, the reply channel to ClientCommandEvent: a client receives them in Lua's Events.OnServerCommand(module, command, args).
    Registration of admin commands.
    Something that happened in the server, delivered to listeners registered with Events.
    Registration of event listeners.
    Project Zomboid version, e.g.
    Runs a mod's code on the server's main thread, which owns every game object.
    An event that carries live game state or only makes sense during the tick.
    Base class of every mod.
    Settings of one mod: <forge>/mods/<id>/config.toml, over the defaults in the mod's jar (META-INF/zomboidforge/config.toml).
    What ZomboidForge provides to one mod.
    The mod's own platform thread, zf-mod-<id>: runs one task at a time, in the order they were submitted.
    A connected player, by value: usable on any thread and after the player left.
    A registered event listener.
    Posted on the main thread once per frame of the main loop, before the queued main-thread tasks run.