Skip to content

WorldEvents

youyihj edited this page Dec 11, 2023 · 1 revision

WorldEvents

@since 1.14.6

ZenUtils add WorldLoad/Save/UnloadEvent. You can use them to save or read objects from world data.

Event Package

mods.zenutils.event.WorldLoadEvent mods.zenutils.event.WorldSaveEvent mods.zenutils.event.WorldUnloadEvent

Event manager call

This code calls an event handler of these world events.

events.onWorldLoad(function(event as WorldLoadEvent) {...} ); events.onWorldSave(function(event as WorldSaveEvent) {...} ); events.onWorldUnload(function(event as WorldUnloadEvent) {...} );

ZenMethods

Only a world getter to get IWorld object.

Clone this wiki locally