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

Hi,

I'm trying to add a waypoint to JourneyMap with a custom button; now, because it appears that there is no easy way of accessing a field of another mod, I would appreciate some suggestions on how I may do this (It seems like the important class is journeymap.client.waypoint.WaypointStore, but how do I access it?).

I'll be using this mod only privately, so it doesn't have to be the cleanest code.

 

Thanks for helping!

Well, if author doesn't provide dev-source which you can use to direct-reference his classes, then your best shot is to use Reflection.

 

You will simply need to check if Mod is loaded and then use Method/Field to change stuff.

Note that you should reflect method/field once and then reuse it.

 

Google Reflection tutorial.

1.7.10 is no longer supported by forge, you are on your own.

Well, I thought about using reflection, but I hoped for some (reflection-)integration in Forge itself; it seems like Reflection is my best bet right now.

 

Anyway, thanks for the help!

Maybe this helps you (bukkit programming, but you could adjust it):

When you want to edit the banlist of a server you can't do BanList.pardon(); because it's not static.

You have to do BanList.getBanList(Type.NAME).pardon();

Mabe in JourneyMap there is somethig like: WaypointManager.getWapoints().addWaypoint(...);

Bringing the best mod back alive! Our mod REFORGED!

Balkon's Weapons for 1.8: https://github.com/TheOnlySilverClaw/Reforged/releases

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.