Closed tastybento closed 3 years ago
Indeed, this won't work as you have found out. Plugins are not allowed to direclty call this method; and neither is Minecraft. (But Minecraft is automatically rewired by WorldGeneratorApi so that it doesn't do that.) I've created a wiki page with more information: https://github.com/rutgerkok/WorldGeneratorApi/wiki/Dummy-class-error
Thank you! Really good info!
Hi,
I would like to get a chunk from the generator. I have this code to define the generator:
I then try to obtain a chunk using:
but I then get this error in the console:
In looking at the JavaDoc for
createCustomGenerator
it says:However,
setBaseChunkGenerator
is deprecated and it's JavaDoc says it is replaced bysetBaseTerrainGenerator(BaseTerrainGenerator)
, which says:So, it seems that
setBaseNoiseGenerator(BaseNoiseGenerator)
should be acceptable and the exception shouldn't be thrown. Do you agree? Is there any way to get the chunk from the chunk generator? The reason I need it is because I need to regenerate the chunk, i.e., put it back to what it was before.