Posted July 5, 20178 yr Is there a collection kept somewhere that has all the registered IBlockStates? I figured there has to be one - just can't find it for some reason. Maybe I need more coffee.
July 5, 20178 yr No, there isn't. There's a list of all Blocks, but each block maintains its own list of valid states. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
July 5, 20178 yr Author So I could do something like traverse the Block registry calling getBlockState() on each entry, and then iterating over getValidStates() result.
July 5, 20178 yr If you really need to...yes Question is ...why? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
July 6, 20178 yr Author I am adding some diagnostic code to my mod that will cross check the registered IBlockStates with the mods configuration. I want to identify blocks that don't match any rules in the configuration. It's a niche need.
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.