Contents
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 Summary
ConstructorsConstructorDescriptionSnapshot(ComponentRegistry.Data<ChunkStore> chunkData, Store<ChunkStore> chunkStore, ComponentRegistry.Data<EntityStore> entityData, Store<EntityStore> entityStore) Creates an instance of aSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechunkDatarecord component.Returns the value of thechunkStorerecord component.Returns the value of theentityDatarecord component.Returns the value of theentityStorerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmigrate(Holder<ChunkStore> holder) booleanmigrateSection(Holder<ChunkStore> section) static ChunkMigrations.Snapshotfinal StringtoString()Returns a string representation of this record class.
-
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 aSnapshotrecord class.- Parameters:
chunkData- the value for thechunkDatarecord componentchunkStore- the value for thechunkStorerecord componententityData- the value for theentityDatarecord componententityStore- the value for theentityStorerecord component
-
-
Method Details
-
of
-
migrate
- See Also:
-
migrateSection
- See Also:
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
chunkData
Returns the value of thechunkDatarecord component.- Returns:
- the value of the
chunkDatarecord component
-
chunkStore
Returns the value of thechunkStorerecord component.- Returns:
- the value of the
chunkStorerecord component
-
entityData
Returns the value of theentityDatarecord component.- Returns:
- the value of the
entityDatarecord component
-
entityStore
Returns the value of theentityStorerecord component.- Returns:
- the value of the
entityStorerecord component
-