ja:tutorial:items
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
ja:tutorial:items [2022/08/13 15:39] – created skytomo | ja:tutorial:items [2024/04/08 13:58] – [アイテムのスタック数を変更したい場合はどうすればよいですか?] 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 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.txt · Last modified: 2024/04/08 14:00 by datsuns