User Tools

Site Tools


tutorial:registry

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorial:registry [2022/12/15 23:47] – [Registry Types] solidblocktutorial: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 25: Line 25:
 <yarncode java> <yarncode java>
 public static <T> T method_10230(class_2378<? super T> registry, class_2960 id, T entry) { public static <T> T method_10230(class_2378<? super T> registry, class_2960 id, T entry) {
-    return ((class_2385)registry)method_10272(id, entry);+    return ((class_2385)registry).method_10272(id, entry);
 } }
 </yarncode> </yarncode>
tutorial/registry.txt · Last modified: 2023/05/15 03:31 by phanabani