Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
please add details to 'Essential patterns' section #4
I found your guide (I'm just getting started with my first mod), and it seems to have some great advice, so thanks for taking the time to share it.
It would be more useful if you added a bit more detail for clarity for less experienced mod developers. I'm assuming that at some point that I would instinctively know (or be able to guess) what class or interface should implement the withBlock method, and what class implements the registry method (or least guess how you implemented it)
registry.registerAll( withName(new Block(Material.GRASS), "example_block"), // ... );
It's occurred to me that this might be pseudocode or a method that's disappeared from mcp (I'm using stable_39 currently), but even so it would be helpful if you gave a brief concrete example of a BaseClass that would typify the "BaseClass trap" you describe (for example, would this class BlockIdfk from Voidaic-Arcania be a good example?), followed up with with an example alternate class or whatever it is you're describing.
Again, I'd like to thank you for what you've shared - I'm only offering a suggestion that I think would widen the value of your work