macmv / rgen

Terrain generator mod for Minecraft 1.12.2 that uses Rust
0 stars 1 forks source link

RGen placers for saplings #26

Closed macmv closed 3 weeks ago

macmv commented 2 months ago

Currently, saplings are grown and built in java source, and we need a way to run an RGen placer over a live minecraft world.

I'm pretty sure we can just rework PartialWorld to have an enum backend, so that it can either write to a byte array for blocks, or call out to JNI for placing blocks instead. I don't think a whole lot more thought is needed, just a bit of reworking in the backend.

JaimieGR commented 2 months ago

Sorry, could this be explained a bit more? I'm lost.

macmv commented 2 months ago

PartialWorld stores a Map<ChunkPos, Chunk>, right? and then the set/get block functions just write to that map. So, we can just replace that map with a dynamic thing, that'll call out to java when we want it to. I've got a patch mostly done, maybe it'll be a little clearer when I post that too.

JaimieGR commented 3 weeks ago

yo we have this done now! 1b672968247a361d8b4d5d8505cf659703e99e94