Class MachineEvents
java.lang.Object
fr.robie.machineengine.api.machine.MachineEvents
Machine lifecycle and process events (ARCHITECTURE.md §26). All are posted in the
EventPhase.POST phase, after the change happened.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final recordAmounts inserted and extracted since the last event of this machine.static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EventType<MachineEvents.Action> A menu action did something (D40); refused actions post nothing.static final EventType<MachineEvents.Lifecycle> static final EventType<MachineEvents.Lifecycle> static final EventType<MachineEvents.Lifecycle> static final EventType<MachineEvents.Lifecycle> static final EventType<MachineEvents.Process> static final EventType<MachineEvents.Process> static final EventType<MachineEvents.Resources> What went in and out of a machine's storages, summed per resource: at most one event per machine per tick, after the changes, and only built while someone listens (no per-transfer events, §26).static final EventType<MachineEvents.Upgrade> Upgrades were installed or removed. -
Method Summary
-
Field Details
-
MACHINE_CREATE
-
MACHINE_LOAD
-
MACHINE_UNLOAD
-
MACHINE_REMOVE
-
PROCESS_START
-
PROCESS_COMPLETE
-
UPGRADE_CHANGE
Upgrades were installed or removed. -
ACTION
A menu action did something (D40); refused actions post nothing. -
RESOURCES_CHANGED
What went in and out of a machine's storages, summed per resource: at most one event per machine per tick, after the changes, and only built while someone listens (no per-transfer events, §26).
-