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

    • getItemsForRegistration

      public Map<net.minecraft.resources.ResourceLocation,Supplier<? extends net.minecraft.world.item.Item>> getItemsForRegistration()
    • getSword

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

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

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

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

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

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