Jump to content

Recommended Posts

Posted

When I cmd-click to search for usages for any function. Intellij won't show up any usages that occur in vanilla code, which is annoying as that's usually what I'm looking to find out. It still shows up code I've written it just won't show the uses in any vanilla, forge, libraries, ext.

This is a recent problem and I'm not entirely sure where to begin looking to fix this problem, I've quite and reopened intellij a few times, ran genIntellijRuns. I have a suspicion the problem started when I added access transformers but I'm not entirely sure.

Posted
1 hour ago, Slit_bodmod said:

This is a recent problem and I'm not entirely sure where to begin looking to fix this problem, I've quite and reopened intellij a few times, ran genIntellijRuns. I have a suspicion the problem started when I added access transformers but I'm not entirely sure.

Did you make sure the access transformer was valid? What access did you move a given method to?

Posted

as far as I'm aware the access transformer is completely valid. It succesfully transformed the variable and my code still builds fine. The only issue is that Intellij is now not recognising the default libraries. But again it all seems to work fine.

 

Quote

public net.minecraft.world.level.levelgen.NoiseChunk m_209247_()Lnet/minecraft/world/level/block/state/BlockState; # getInterpolatedState public net.minecraft.world.level.levelgen.OreVeinifier m_209667_(Lnet/minecraft/world/level/levelgen/DensityFunction;Lnet/minecraft/world/level/levelgen/DensityFunction;Lnet/minecraft/world/level/levelgen/DensityFunction;Lnet/minecraft/world/level/levelgen/PositionalRandomFactory;)Lnet/minecraft/world/level/levelgen/NoiseChunk$BlockStateFiller; # create public net.minecraft.world.level.levelgen.OreVeinifier$VeinType public net.minecraft.world.level.levelgen.OreVeinifier$VeinType f_209674_ # minY public net.minecraft.world.level.levelgen.OreVeinifier$VeinType f_209675_ # maxY

 

Posted

Ah, you're doing it on protected attributes. This is a problem as you cannot guarantee that any other mod (since vanilla doesn't luckily) will not extend those classes and keep the attributes as protected. I would use reflection or a mixin accessor instead since neither of those have the limitation of not ATing a protected type.

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.