tutorial:registry
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:registry [2022/04/13 05:03] – map2fabricyarn daomephsta | tutorial:registry [2023/05/15 03:31] (current) – Fix missing period in code. phanabani | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | -====== Registry System ====== | + | ====== Registry System ====== |
You will need to register most content you add to the game. This helps with: | You will need to register most content you add to the game. This helps with: | ||
Line 15: | Line 15: | ||
===== Registry Types ===== | ===== Registry Types ===== | ||
- | When registering content, you need to specify which registry you are adding content to. The base game provides registries for all vanilla content, which can be found in '' | + | When registering content, you need to specify which registry you are adding content to. The base game provides registries for all vanilla content, which can be found in '' |
For a deeper overview and description of all available registries, read the [[tutorial: | For a deeper overview and description of all available registries, read the [[tutorial: | ||
Line 25: | Line 25: | ||
< | < | ||
public static <T> T method_10230(class_2378<? | public static <T> T method_10230(class_2378<? | ||
- | return ((class_2385)registry)method_10272(id, | + | return ((class_2385)registry).method_10272(id, |
} | } | ||
</ | </ |
tutorial/registry.1649826239.txt.gz · Last modified: 2022/04/13 05:03 by daomephsta