Record Class ChunkMigrations.Snapshot

java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.modules.migrations.ChunkMigrations.Snapshot
Enclosing class:
ChunkMigrations

public static record ChunkMigrations.Snapshot(@Nonnull ComponentRegistry.Data<ChunkStore> chunkData, @Nonnull Store<ChunkStore> chunkStore, @Nullable ComponentRegistry.Data<EntityStore> entityData, @Nullable Store<EntityStore> entityStore) extends Record
The registry data and stores captured up front, so migrate(Holder) can run on a thread other than the store thread (for example a storage IO thread).
  • Constructor Details

    • Snapshot

      public Snapshot(@Nonnull ComponentRegistry.Data<ChunkStore> chunkData, @Nonnull Store<ChunkStore> chunkStore, @Nullable ComponentRegistry.Data<EntityStore> entityData, @Nullable Store<EntityStore> entityStore)
      Creates an instance of a Snapshot record class.
      Parameters:
      chunkData - the value for the chunkData record component
      chunkStore - the value for the chunkStore record component
      entityData - the value for the entityData record component
      entityStore - the value for the entityStore record component
  • Method Details