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

Hey.

I am in the tedious progress of porting a mod. 1.8 -> current latest 1.10.2 (12.18.1.2046).

 

I have had some success up to now, but I can't find anything about

World#markBlockForUpdate

. I saw that TGG uses it in his MBE github repo, but won't show up for me.

 

Was it renamed? Was it removed? Was it reworked?

I'd like to know!

 

P.S: Oh, and I found myself quite often in this kind of situation, where I blindly google for alternatives. But, can some of you share the secret to knowing which changes Forge underwent? (The changelog doesn't help the smallest bit. I tried.)

I try my best, so apologies if I said something obviously stupid!

Use

World#notifyBlockUpdate

.

 

Some class, field and method renames are documented on this issue tracker. Otherwise try looking for places where the class, field or method was used in the old version and then looking at what the new version uses in those places.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

  • Author

Thanks a lot, choon!

Oh, and another small thing: what about

onBlockEventReceived

? Couldn't find anything on the issue tracker.

 

Edit: Is it now

eventReceived

? It's shown as deprecated, though.

I try my best, so apologies if I said something obviously stupid!

  • Author

Nailed it. Thanks a lot.

I'll let this thread open in case I'll need anything else, until I'm done porting.

 

Edit: Anything about

Item>getColorFromItemStack

?

I try my best, so apologies if I said something obviously stupid!

Edit: Anything about

Item>getColorFromItemStack

?

 

All colour-related methods in

Block

and

Item

were replaced by

IBlockColor

and

IItemColor

in 1.9. In init, get the

BlockColors

/

ItemColors

instance from

Minecraft

using the appropriate getter, create an

IBlockColor

/

IItemColor

implementation and then register it with

BlockColors

/

ItemColors

.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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.