You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to debug Node.js web applications running on Heroku using ngrok
Debugging Node.js web applications running on Heroku using ngrok
Introduction
Heroku only allows each dyno to send and receive external network traffic on a single port, which means you can't simply
run node --debug server.js and attach your debugger to your-app.herokuapp.com:5858.
To work around this, you can use ngrok and
Heroku ngrok Buildpack to tunnel to the debugger's port and access
it externally.
A description of the model loading process in Minecraft Forge 1.9-1.12.1
In this document, I use strings in the format "foo:bar" to represent ResourceLocations with domain foo and path bar. I also use [square brackets] for placeholders.
The Model Loading Process
Blocks
On startup and whenever the resources are reloaded (in ModelLoader#setupModelRegistry), Minecraft iterates through every registered Block (in ModelLoader#loadBlocks) and asks its custom IStateMapper (or DefaultStateMapper if none has been registered) to create a mapping between every valid IBlockState of the Block and the ModelResourceLocation for that state (with the domain and path pointing to a blockstates file and the variant to a variant within that file). It then attempts to load these models.
DefaultStateMapper looks for the blockstates file with the Block's registry name (i.e. assets/[modid]/blockstates/[name].json) and serialises each property and value of the IBlockState to create the variant name that the model is loaded from (e.g. "enabled=true,type=foobar"