Jump to content

1.15.1 how to use or replace "isSolid" in block-classes now?


Recommended Posts

Posted (edited)

in my other mod i have the method "isSolid" in some block-classes.

But now, 1n 1.15.1 it´s marked red and the hint says, it´s a final method now.

How do i set this property now?

Edited by Drachenbauer
Posted (edited)

This can be set through the block properties during block construction.

 

If you follow the usage of that function and backing fields you will see that the result is returned from the isSolid function.

Yay complexity!

 

    public BlockFoo() {
        super(Properties.create(Material.Rock)
                .func_226896_b_());
}

 

Edited by WuestMan

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.