Contents
Class WorldConfigSaveSystem
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.tick.TickingSystem<EntityStore>
com.hypixel.hytale.component.system.DelayedSystem<EntityStore>
com.hypixel.hytale.server.core.universe.system.WorldConfigSaveSystem
- All Implemented Interfaces:
ISystem<EntityStore>, TickableSystem<EntityStore>
A delayed system that handles performing periodic saves of the world resources and configuration.
-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelayedTick(float dt, int systemIndex, Store<EntityStore> store) A tick method called once every interval provided by the constructorDelayedSystem(float).static CompletableFuture<Void> saveWorldConfigAndResources(World world) Saves a WorldConfig (if able to), and the world's resources.Methods inherited from class DelayedSystem
getIntervalSec, getResourceType, tickMethods inherited from class System
getComponentRegistrations, getResourceRegistrations, registerResource, registerResourceMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ISystem
getDependencies, getGroup, onSystemRegistered, onSystemUnregistered
-
Constructor Details
-
WorldConfigSaveSystem
public WorldConfigSaveSystem()Default Constructor of aWorldConfigSaveSysteminstance.
-
-
Method Details
-
delayedTick
Description copied from class:DelayedSystemA tick method called once every interval provided by the constructorDelayedSystem(float).- Specified by:
delayedTickin classDelayedSystem<EntityStore>- Parameters:
dt- The delta time in seconds since the last call to this method.systemIndex- The index of this system, used for faster lookups inStore.store- The store calling this method.
-
saveWorldConfigAndResources
Saves a WorldConfig (if able to), and the world's resources. Does NOT save chunks.- Parameters:
world- The world to save- Returns:
- An uncompleted
CompletableFutureto save all resources and world config
-