Jump to content

[1.10] isOpaqueCube deprecated


cad97

Recommended Posts

I noticed that net.minecraft.Block::isOpaqueCube(IBlockState) is @Deprecated.

 

What is the preferred method of achieving a non-opaque block, in this case? Was the method deprecated incorrectly or is there a better way to achieve the same effect as overriding the method to return false?

 

(I am looking at forgeSrc-1.10-12.18.0.1996-1.10.0-sources.jar)

Link to comment
Share on other sites

If you would look at other Block's methods you'll see there are also deprecations.

 

In 1.9 (or 1.9.4) Mojang apparently decided that @Deprecated will be used to mark methods as "internal" ones.

Yes - this is miss-use of annotation, so also yes - don't worry about that (tho it's annoying).

Deprecated for Blocks (and maybe few other things) means that given method can ever only be called by internals (so basically aside from @Overriding it you shouldn't ever call it) - or at least - this is what some of us come up with.

  • Like 1

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

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.