Hello,
I am currently experiencing an issue, where by following the latest docs on how to register and store your blocks and tile entities, you end up with an error:
This error is caused by the ObjectHoldermembers of the ModBlocks.java class not yet being initialized, which is expected, as per Forge docs (link to docs) :
But then, the TileEntity part of the docs recommends registration of all Blocks (including TileEntities) to happen in the RegistrationEvents (link to docs) :
Because of the recent deprecation of GameRegistry.registerTileEntity(Class, String); in favor of GameRegistry.registerTileEntity(Class, ResourceLocation);, this now causes an issue. Perhaps I am attempting to retrieve the ResourceLocation instance incorrectly?
My ModBlocks class:
My CommonProxy class:
For now, I can botch my way out of the error by moving the TileEntity registration to registerItems, as such:
This is not ideal as TileEntity registration should not be happening there.
Perhaps you can shed some light on this issue.
Thank you!