User Tools

Site Tools


tutorial:tools

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tutorial:tools [2020/09/14 01:49] – Reformat away from enum, some formatting/cleanup draylartutorial:tools [2021/08/13 13:54] – [Creating Tools] kaloyankys
Line 99: Line 99:
 </code> </code>
  
-`PickaxeItem` , `HoeItem` and `AxeItem` have protected constructors, which means you will need to create your own sub-class with a public constructor+`PickaxeItem` , `HoeItem` and `AxeItem` have protected constructors, which means you will need to create your own classes with a public constructors
 <code java [enable_line_numbers=true]> <code java [enable_line_numbers=true]>
 public class CustomPickaxeItem extends PickaxeItem { public class CustomPickaxeItem extends PickaxeItem {
-    public PickaxeSubclass(ToolMaterial material, int attackDamage, float attackSpeed, Settings settings) {+    public CustomPickaxeItem(ToolMaterial material, int attackDamage, float attackSpeed, Settings settings) {
         super(material, attackDamage, attackSpeed, settings);         super(material, attackDamage, attackSpeed, settings);
     }     }
tutorial/tools.txt · Last modified: 2023/09/07 05:32 by drakonkinst