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
Last revisionBoth sides next revision
tutorial:terms [2022/03/20 13:33] – external edit 127.0.0.1tutorial:terms [2022/12/22 18:49] – Rename ClientInitializer and ServerInitializer to their actual names in Fabric code basil4088
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 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.+A mod usually contains at least one initializer class which should implement one of ''ModInitializer'', ''ClientModInitializer'' and ''DedicatedServerModInitializer''. 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