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 ToolSet.Builder to configure and create tool sets with consistent properties.
  • Constructor Details

  • Method Details

    • getItemsForRegistration

      public Map<net.minecraft.resources.ResourceLocation,Supplier<? extends net.minecraft.world.item.Item>> getItemsForRegistration()
      Retrieves all tool items in this set for registration purposes.
      Returns:
      Map of ResourceLocation keys to Supplier providers for tool items
    • getName

      public String getName()
      Gets the base name of this tool set.
      Returns:
      The base name of this tool set
    • getSword

      public Supplier<net.minecraft.world.item.SwordItem> getSword()
      Gets the sword item from this tool set.
      Returns:
      Supplier providing the registered SwordItem
    • getAxe

      public Supplier<net.minecraft.world.item.AxeItem> getAxe()
      Gets the axe item from this tool set.
      Returns:
      Supplier providing the registered AxeItem
    • getPickaxe

      public Supplier<net.minecraft.world.item.PickaxeItem> getPickaxe()
      Gets the pickaxe item from this tool set.
      Returns:
      Supplier providing the registered PickaxeItem
    • getHoe

      public Supplier<net.minecraft.world.item.HoeItem> getHoe()
      Gets the hoe item from this tool set.
      Returns:
      Supplier providing the registered HoeItem
    • getShovel

      public Supplier<net.minecraft.world.item.ShovelItem> getShovel()
      Gets the shovel item from this tool set.
      Returns:
      Supplier providing the registered ShovelItem
    • getAll

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