Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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.

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?

  • Author

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

 

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.