Jump to content

Assistance with non-coremod reflection


nekosune

Recommended Posts

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.

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.