zh_cn:tutorial:tools
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
zh_cn:tutorial:tools [2021/07/25 01:37] – [创建工具] solidblock | zh_cn:tutorial:tools [2022/12/16 00:33] (current) – [创建工具] solidblock | ||
---|---|---|---|
Line 95: | Line 95: | ||
<code java [enable_line_numbers=true]> | <code java [enable_line_numbers=true]> | ||
- | public static ToolItem POTATO_SHOVEL = new ShovelItem(PotatoToolMaterial.INSTANCE, | + | public static ToolItem POTATO_SHOVEL = new ShovelItem(PotatoToolMaterial.INSTANCE, |
- | public static ToolItem POTATO_SWORD = new SwordItem(PotatoToolMaterial.INSTANCE, | + | public static ToolItem POTATO_SWORD = new SwordItem(PotatoToolMaterial.INSTANCE, |
</ | </ | ||
Line 110: | Line 110: | ||
使用自定义的子类: | 使用自定义的子类: | ||
<code java> | <code java> | ||
- | public static ToolItem POTATO_PICKAXE = new CustomPickaxeItem(PotatoToolMaterial.INSTANCE, | + | public static ToolItem POTATO_PICKAXE = new CustomPickaxeItem(PotatoToolMaterial.INSTANCE, |
- | public static ToolItem POTATO_AXE = new CustomAxeItem(PotatoToolMaterial.INSTANCE, | + | public static ToolItem POTATO_AXE = new CustomAxeItem(PotatoToolMaterial.INSTANCE, |
- | public static ToolItem POTATO_HOE = new CustomHoeItem(PotatoToolMaterial.INSTANCE, | + | public static ToolItem POTATO_HOE = new CustomHoeItem(PotatoToolMaterial.INSTANCE, |
</ | </ | ||
zh_cn/tutorial/tools.1627177060.txt.gz · Last modified: 2021/07/25 01:37 by solidblock