Readonly
barrowersReadonly
chunksThe loaded chunks in the provider.
Readonly
dbThe database instance for the provider.
Readonly
identifierThe identifier of the provider.
Readonly
pathThe path of the provider.
The world that the provider belongs to.
Static
Readonly
identifierThe identifier of the provider.
Checks if the database has a chunk.
The chunk X coordinate.
The chunk Z coordinate.
The dimension to check for the chunk.
Called when the provider is saved.
Called when the provider is shutdown.
Called when the provider is started.
Reads a buffer from the provider.
The key to read the buffer from.
The buffer data entry.
Reads a players data from the provider.
The uuid of the player to read.
The player data if found, otherwise null.
Rents a chunk from the provider, this will increment the barrower count for the chunk.
The hash of the chunk to rent.
The dimension to rent the chunk from.
Returns a chunk to the provider, this will decrement the barrower count for the chunk.
The hash of the chunk to return.
The dimension to return the chunk to.
Writes a buffer to the provider.
The key to write the buffer to.
The buffer data to write.
Write the chunk version to the database.
The chunk X coordinate.
The chunk Z coordinate.
The chunk version.
Writes a players data to the provider.
The player data to write.
Static
buildStatic
buildStatic
buildBuild a chunk version key for the database.
The chunk X coordinate.
The chunk Z coordinate.
The dimension index.
The buffer key for the chunk version
Static
buildStatic
buildBuild an entity storage key for the database.
The unique identifier of the entity.
The buffer key for the entity storage
Static
buildBuild a subchunk key for the database.
The chunk X coordinate.
The subchunk Y coordinate.
The chunk Z coordinate.
The dimension index.
The buffer key for the subchunk
Static
createOptional
worldProperties: Partial<WorldProperties>Static
initializeInitializes the provider with the specified properties.
The serenity instance to use.
The properties to use for the provider.
The barrowers map for the provider.