Interface ToolConfigurator
public interface ToolConfigurator
Factory interface for creating custom tool items.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ToolConfiguratorDefault configuration using standard tool constructors. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemcreateTool(ToolType type, net.minecraft.world.item.Tier tier, net.minecraft.world.item.Item.Properties properties) Creates a tool item instance.
-
Field Details
-
DEFAULT
Default configuration using standard tool constructors.
-
-
Method Details
-
createTool
net.minecraft.world.item.Item createTool(ToolType type, net.minecraft.world.item.Tier tier, net.minecraft.world.item.Item.Properties properties) Creates a tool item instance.- Parameters:
type- Type of tool to createtier- Material tierproperties- Item properties stack- Returns:
- Configured tool item
-