Class ToolSet
java.lang.Object
net.xun.lib.common.api.item.tools.ToolSet
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for constructing ToolSet instances with flexible configuration. -
Constructor Summary
ConstructorsConstructorDescriptionToolSet(String name, net.minecraft.world.item.Tier tier, EnumMap<ToolType, Float> attackDamage, EnumMap<ToolType, Float> attackSpeed, net.minecraft.world.item.Item.Properties properties, ToolConfigurator configuration, ItemRegistrar registrar, AttributeHelper attributeHelper) -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.world.item.Item> getAll()Supplier<net.minecraft.world.item.AxeItem> getAxe()Supplier<net.minecraft.world.item.HoeItem> getHoe()Supplier<net.minecraft.world.item.PickaxeItem> Supplier<net.minecraft.world.item.ShovelItem> Supplier<net.minecraft.world.item.SwordItem> getSword()voidRegisters all tools in the set with the game registry.
-
Constructor Details
-
ToolSet
public ToolSet(String name, net.minecraft.world.item.Tier tier, EnumMap<ToolType, Float> attackDamage, EnumMap<ToolType, Float> attackSpeed, net.minecraft.world.item.Item.Properties properties, ToolConfigurator configuration, ItemRegistrar registrar, AttributeHelper attributeHelper)
-
-
Method Details
-
registerAll
public void registerAll()Registers all tools in the set with the game registry. -
getSword
- Returns:
- Supplier for the registered sword item
-
getAxe
- Returns:
- Supplier for the registered axe item
-
getPickaxe
- Returns:
- Supplier for the registered pickaxe item
-
getHoe
- Returns:
- Supplier for the registered hoe item
-
getShovel
- Returns:
- Supplier for the registered shovel item
-
getAll
- Returns:
- List of all registered tool items in this set
-