User Tools

Site Tools


ja:tutorial:enchantments

Differences

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

Link to this comparison view

Next revision
Previous revision
ja:tutorial:enchantments [2022/08/20 07:52] – created skytomoja:tutorial:enchantments [2023/01/04 13:53] (current) – [Registering Enchantment] サンプルコード:register()の第3引数にFROSTを渡す datsuns
Line 85: Line 85:
     @Override     @Override
     public void onInitialize() {     public void onInitialize() {
-        Registry.register(Registry.ENCHANTMENT, new Identifier("tutorial", "frost"))+        Registry.register(Registries.ENCHANTMENT, new Identifier("tutorial", "frost"), FROST);
     }     }
 } }
ja/tutorial/enchantments.1660981955.txt.gz · Last modified: 2022/08/20 07:52 by skytomo