Jump to content

1.10.2 World#markBlockForUpdate?


fr0st

Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

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.