ja:tutorial:items
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| ja:tutorial:items [2022/08/13 15:39] – created skytomo | ja:tutorial:items [2024/04/08 14:00] (current) – [アイテムクラスの作成] datsuns | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| // 新しいアイテムのインスタンス | // 新しいアイテムのインスタンス | ||
| - | public static final class_1792 CUSTOM_ITEM = new class_1792(new FabricItemSettings().method_7892(class_1761.field_7932)); | + | public static final class_1792 CUSTOM_ITEM = new class_1792(new FabricItemSettings()); |
| [...] | [...] | ||
| } | } | ||
| Line 21: | Line 21: | ||
| // 新しいアイテムのインスタンス | // 新しいアイテムのインスタンス | ||
| - | public static final class_1792 CUSTOM_ITEM = new class_1792(new FabricItemSettings().method_7892(class_1761.field_7932)); | + | public static final class_1792 CUSTOM_ITEM = new class_1792(new FabricItemSettings()); |
| @Override | @Override | ||
| public void onInitialize() { | public void onInitialize() { | ||
| - | class_2378.method_10230(class_2378.field_11142, new class_2960(" | + | class_2378.method_10230(class_7923.field_41178, new class_2960(" |
| } | } | ||
| } | } | ||
| Line 96: | Line 96: | ||
| // an instance of our new item | // an instance of our new item | ||
| - | public static final CustomItem CUSTOM_ITEM = new CustomItem(new FabricItemSettings().method_7892(class_1761.field_7932)); | + | public static final CustomItem CUSTOM_ITEM = new CustomItem(new FabricItemSettings()); |
| [...] | [...] | ||
| } | } | ||
| Line 109: | Line 109: | ||
| // 最大スタック数が 16 の新しいアイテムのインスタンス | // 最大スタック数が 16 の新しいアイテムのインスタンス | ||
| - | public static final CustomItem CUSTOM_ITEM = new CustomItem(new FabricItemSettings().method_7892(class_1761.field_7932).method_7889(16)); | + | public static final CustomItem CUSTOM_ITEM = new CustomItem(new FabricItemSettings().maxCount(16)); |
| [...] | [...] | ||
| } | } | ||
ja/tutorial/items.1660405173.txt.gz · Last modified: 2022/08/13 15:39 by skytomo