Class ToolSet

java.lang.Object
net.xun.lib.common.api.item.tools.ToolSet

public class ToolSet extends Object
Represents a complete set of tools (sword, axe, pickaxe, shovel, hoe) with configurable attributes. Use the nested Builder class to configure and create tool sets with consistent properties.
  • Constructor Details

  • Method Details

    • registerAll

      public void registerAll()
      Registers all tools in the set with the game registry.
    • getSword

      public Supplier<net.minecraft.world.item.SwordItem> getSword()
      Returns:
      Supplier for the registered sword item
    • getAxe

      public Supplier<net.minecraft.world.item.AxeItem> getAxe()
      Returns:
      Supplier for the registered axe item
    • getPickaxe

      public Supplier<net.minecraft.world.item.PickaxeItem> getPickaxe()
      Returns:
      Supplier for the registered pickaxe item
    • getHoe

      public Supplier<net.minecraft.world.item.HoeItem> getHoe()
      Returns:
      Supplier for the registered hoe item
    • getShovel

      public Supplier<net.minecraft.world.item.ShovelItem> getShovel()
      Returns:
      Supplier for the registered shovel item
    • getAll

      public List<net.minecraft.world.item.Item> getAll()
      Returns:
      List of all registered tool items in this set