public interface IModHelperProvides the CMAPI services available to one mod.
Members
MonitorGets the logger whose source name is the current mod.propertyStorageGets paths and JSON storage isolated to the current mod.propertySchedulerGets main-thread and delayed scheduling scoped to the current mod.propertyModRegistryGets loaded-mod and runtime-feature discovery.propertyEventsGets the events to which the current mod can subscribe.propertyPlayersGets read-only information about players in the current session.propertyPlayerPlacementGets host-safe, same-planet local-player placement.propertyItemsGets item discovery and host-safe backpack actions.propertyRecipesGets read-only recipes and their crafting requirements.propertyUnlocksGets read-only content unlock rules and live state.propertyPlayerInventoryGets read-only local backpack/equipment snapshots and events.propertyTerraTokensGets the shared Terra Token balance and host-safe additions.propertyWeatherGets current-planet weather discovery and host-safe starts.propertyWorldStateGets read-only terraformation values, rates, and stages.propertyEnvironmentGets day/night, water queries, and host-safe environment actions.propertyPlanetsGets current and installed planet definitions.propertyNotificationsGets the native in-game HUD notification service.propertyConsoleCommandsGets the console-command registry scoped to the current mod.propertyMonitor
propertyIMonitor MonitorGets the logger whose source name is the current mod.
Storage
propertyIModStorage StorageGets paths and JSON storage isolated to the current mod.
Scheduler
propertyIModScheduler SchedulerGets main-thread and delayed scheduling scoped to the current mod.
ModRegistry
propertyIModRegistry ModRegistryGets loaded-mod and runtime-feature discovery.
Events
propertyIModEvents EventsGets the events to which the current mod can subscribe.
Players
propertyIPlayerManager PlayersGets read-only information about players in the current session.
PlayerPlacement
propertyIPlayerPlacementManager PlayerPlacementGets host-safe, same-planet local-player placement.
Items
propertyIItemManager ItemsGets item discovery and host-safe backpack actions.
Recipes
propertyIRecipeManager RecipesGets read-only recipes and their crafting requirements.
Unlocks
propertyIUnlockManager UnlocksGets read-only content unlock rules and live state.
PlayerInventory
propertyIPlayerInventoryManager PlayerInventoryGets read-only local backpack/equipment snapshots and events.
TerraTokens
propertyITerraTokenManager TerraTokensGets the shared Terra Token balance and host-safe additions.
Weather
propertyIWeatherManager WeatherGets current-planet weather discovery and host-safe starts.
WorldState
propertyIWorldStateManager WorldStateGets read-only terraformation values, rates, and stages.
Environment
propertyIEnvironmentManager EnvironmentGets day/night, water queries, and host-safe environment actions.
Planets
propertyIPlanetManager PlanetsGets current and installed planet definitions.
Notifications
propertyINotificationManager NotificationsGets the native in-game HUD notification service.
ConsoleCommands
propertyIConsoleCommandManager ConsoleCommandsGets the console-command registry scoped to the current mod.