User Tools

Site Tools


tutorial:terms

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tutorial:terms [2020/02/21 12:08] – Add initializers. mkpolitutorial:terms [2020/02/23 22:32] – [Entry Points and Initializers] Mod initializers are not technically required earthcomputer
Line 21: Line 21:
 Fabric Loader use ''fabric.mod.json'' to detect and load your mod. Fabric Loader use ''fabric.mod.json'' to detect and load your mod.
  
-A mod must contain at least one initializer class which should implement one of ''ModInitializer'', ''ClientInitializer'' and ''ServerInitializer''. The interfaces are all in the ''net.fabricmc.api'' package. In order to change or add initializers, you need to edit ''fabric.mod.json'' and find ''entrypoints'' block, then edit them accordingly. ''main'' block is for Mod Initializers, ''client'' block is for Client Mod Initializers and ''server'' block is for Server Mod Initializers.+A mod usually contains at least one initializer class which should implement one of ''ModInitializer'', ''ClientInitializer'' and ''ServerInitializer''. The interfaces are all in the ''net.fabricmc.api'' package. In order to change or add initializers, you need to edit ''fabric.mod.json'' and find ''entrypoints'' block, then edit them accordingly. ''main'' block is for Mod Initializers, ''client'' block is for Client Mod Initializers and ''server'' block is for Server Mod Initializers.
  
 <code java> <code java>
tutorial/terms.txt · Last modified: 2022/12/22 18:51 by basil4088