Drachenbauer Posted January 23, 2020 Share Posted January 23, 2020 (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 January 23, 2020 by Drachenbauer Quote Link to comment Share on other sites More sharing options...
WuestMan Posted January 24, 2020 Share Posted January 24, 2020 (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 January 24, 2020 by WuestMan Quote Link to comment Share on other sites More sharing options...
Drachenbauer Posted January 24, 2020 Author Share Posted January 24, 2020 Does this mean, if i add func_226896_b_() there, the block is set as solid, and if not, not? Quote Link to comment Share on other sites More sharing options...
WuestMan Posted January 25, 2020 Share Posted January 25, 2020 The block is considered solid by default. By calling that method is considered not solid. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.