StaticexitSaves the level and exits the game cleanly.
StaticgetGet every registered Block.
A list of every registered Block
You should run this in the first tick instead of ModDefinition.start because the mod loading order cannot be guaranteed.
StaticgetRetrieve the current game frames per second (FPS)
The frame rate
StaticgetStaticisStaticisCheck if the world was just generated. This can be used to make sure custom world generation won't override a saved level.
True if the world was generated on the same launch, otherwise false
StaticregisterStaticsetChange the currently selected block. The selected block is what is used when the player places a block.
The new selected block
This class contains functions for general game management.