ja:tutorial:items
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ja:tutorial:items [2023/01/03 13:11] – [アイテムの登録] Remove item group datsuns | ja:tutorial:items [2024/04/08 14:00] (current) – [アイテムクラスの作成] datsuns | ||
|---|---|---|---|
| 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.1672751466.txt.gz · Last modified: 2023/01/03 13:11 by datsuns