Skip to content

Add support for createVanillaChunkData #3250

@Pangamma

Description

@Pangamma

Related to: https://github.com/PaperMC/Paper/pull/1846/files
Specifically,
public ChunkData createVanillaChunkData(World world, int x, int z) {
return Bukkit.getServer().createVanillaChunkData(world, x, z);
}

Describe the solution you'd like
I would like to be able to use this function call to create a chunk using the default vanilla chunk generator before processing it using a custom chunk generator that wraps it.

Describe alternatives you've considered
I've tried to replicate the vanilla chunk generation but it was tightly tangled with like 24 files... I've tried chunk populators, but trees and structures on the edges of chunks cause issues. I've tried looking into NMS code to instantiate a default chunk generator. Again- everything is super tightly coupled.

@MiniDigger

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featureRequest for a new Feature.
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions