IWorldManager interface
public interface IWorldManager : IAsyncDisposable
In Obsidian.API.
Properties
IWorld DefaultWorld { get; }int GeneratingChunkCount { get; }int LoadedChunkCount { get; }bool ReadyToJoin { get; }int RegionCount { get; }Methods
FlushLoadedWorldsAsync()
Task FlushLoadedWorldsAsync();Saves every loaded world: its and its dimensions' regions, then its level data and maps.
IReadOnlyCollection<IWorld> GetAvailableWorlds();TickWorldsAsync()
Task TickWorldsAsync();Ticks every loaded world once. The server does, every tick.
bool TryGetWorld(string name, out IWorld world);bool TryGetWorld<TWorld>(string name, out TWorld world) where TWorld : IWorld;