-
Notifications
You must be signed in to change notification settings - Fork 10
WorldEvents
youyihj edited this page Dec 11, 2023
·
1 revision
@since 1.14.6
ZenUtils add WorldLoad/Save/UnloadEvent. You can use them to save or read objects from world data.
mods.zenutils.event.WorldLoadEvent
mods.zenutils.event.WorldSaveEvent
mods.zenutils.event.WorldUnloadEvent
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) {...} );
Only a world
getter to get IWorld
object.
- GlobalFunctions
- ScriptReloading
- SuppressErrorPreprocessor
- HardFailPreprocessor
- OrderlyMap
- IData Deep Update
- Template String
- Native Method Access
- Mixin
- CrTI18n
- CrTUUID
- CrTItemHandler
- CrTLiquidHandler
- ILiquidTankProperties
- StringList
- HexHelper
- StaticString
- Catenation
- PersistedCatenation
- PlayerStat
- IStatFormatter
- GameRuleHelper
- ZenCommand
- ZenCommandTree
- ZenUtilsCommandSender
- IGetCommandUsage
- ICommandExecute
- IGetTabCompletion
- CommandUtils