Jump to content

[1.7.10] Why for RenderWorldEvent, IBlockAccess is casted to ChunkCache???


Elix_x

Recommended Posts

Hello everybody, i have a little question:

Why for RenderWorldEvent, IBlockAccess is casted to ChunkCache???

Because it's now forge that stops me from doing what i'm trying to do...

 

So, while searching for solutions for this problem, i found that all render blocks getters are based around one IBlockAccess. So why don't replace it with one that returns what i want where i want, and super value where i don't care... I came with new instance of IBlockAccess, that is called from new RenderBlocks(), wiht previous blockAcces parameter as default access and then this new instance gets saved instead. But this gave me problems: It crashes when forge tries to cast this render blocks to ChunkCahce for posting event. The question is: why forge needs ChunkCache for their event??? Why can't forge use IBlockAccess???

 

Thanks for help!

If you have any questions - just ask!

 

Link to comment
Share on other sites

Because that is what vanilla minecrafts code gives us and expects. Beyond that 1.8 doesnt use this event anymore as its not needed.

Thanks for the answer! So, to solve this i have to move to 1.8... Is no there any workaround in 1.7.10 for this? No?

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.