nekosune Posted December 15, 2013 Share Posted December 15, 2013 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. Quote Link to comment Share on other sites More sharing options...
nekosune Posted December 15, 2013 Author Share Posted December 15, 2013 There is ChunkEvent.Load , maybe that can help you? doesn't seem to load anywhere near when provideChunk is called, but thankyou Quote Link to comment Share on other sites More sharing options...
nekosune Posted December 16, 2013 Author Share Posted December 16, 2013 use a MapGenStructure (a moified village) in the end. Quote Link to comment Share on other sites More sharing options...
GotoLink Posted December 16, 2013 Share Posted December 16, 2013 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. Quote Link to comment Share on other sites More sharing options...
nekosune Posted December 16, 2013 Author Share Posted December 16, 2013 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.