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
ConstructorsModifierConstructorDescriptionprotectedToolSet(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, 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()
-
Constructor Details
-
ToolSet
protected 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, AttributeHelper attributeHelper)
-
-
Method Details
-
getItemsForRegistration
-
getSword
- Returns:
- Supplier of the registered sword item
-
getAxe
- Returns:
- Supplier of the registered axe item
-
getPickaxe
- Returns:
- Supplier of the registered pickaxe item
-
getHoe
- Returns:
- Supplier of the registered hoe item
-
getShovel
- Returns:
- Supplier of the registered shovel item
-
getAll
- Returns:
- List of all registered tool items in this set
-