All Classes and Interfaces
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.
Runs the method periodically on the mod's own thread, as
ModThread.scheduleAtFixedRate(Runnable, Duration, Duration)
or ModThread.scheduleWithFixedDelay(Runnable, Duration, Duration) do.Runs the method on the main thread every n-th frame of the main loop: a
TickEvent
listener for the ticks that EveryNTicks.value() divides (n, 2n, ...).Project Zomboid version, e.g.
The key of a record component, instead of the one converted from its name (
maxBalance
to max_balance): the config.toml key for ModConfig.bind(Class), the column
name for ModStorage tables.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.
The largest value a numeric component of a configuration record accepts; see
Min.A migration of a storage record, as
TableDefinition.migrate(int, Function) adds one: turns a row stored
with schema version Migrate.from() into the record.The smallest value a numeric component of a configuration record accepts.
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 tables in
zomboidforge.db, next to the world's save.The mod's own platform thread,
zf-mod-<id>: runs one task at a time, in the order
they were submitted.Registers the method with
Events.onMain(Class, Consumer) for the ClientCommandEvents of one
module, and optionally one command.Registers the method with
Events.onMain(Class, Consumer) for the event type of its only parameter.Registers the method with
Events.onModThread(Class, Consumer) for the event type of its only parameter.A connected player, by value: usable on any thread and after the player left.
Registers the class as an admin command, as
Commands.register(Class) does, while the mod
loads: after the entry point's listener methods and before Mod.onLoad().One row of a table in its stored form, given to migrations: the key and the columns by
their
snake_case names.The schema version of a storage record, read by
ModStorage.table(String, Class) and
ModStorage.define(String, Class); TableDefinition.version(int) overrides it.A storage operation failed: a database error, or a table that does not match its record.
A registered event listener.
Rows of type
R, each under a String key.A table to open with a schema version and migrations.
Posted on the main thread once per frame of the main loop, before the queued main-thread
tasks run.