Posted December 15, 201311 yr I need to have a function run after chunk has been provided, however I cant use coremods due to mod being part of modja. I am attemptiong to use reflection, owever I cant figure out how to use any of the reflection objects to help get the right function I can use String internalClassName = FMLDeobfuscatingRemapper.INSTANCE.unmap("net/minecraft/world/gen/ChunkProviderEnd"); to get the class name, but nothing I can think of to get the method name works.
December 15, 201311 yr Author There is ChunkEvent.Load , maybe that can help you? doesn't seem to load anywhere near when provideChunk is called, but thankyou
December 16, 201311 yr ChunkProviderEnd.class You can get it directly, it is public. There is no structure generation in the End, so you might as well do it the old fashioned way, using IWorldGenerator.
December 16, 201311 yr Author I managed to slightly hack the village gen in with village.generate(postEvent.chunkProvider,postEvent.world,postEvent.chunkX,postEvent.chunkZ,temp); village.generateStructuresInChunk(postEvent.world, postEvent.rand, postEvent.chunkX, postEvent.chunkZ); in OnPopulate.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.