Package net.fabricmc.fabric.impl.tool.attribute.handlers

Implementation handlers of the fabric tool attribute module.

Types

ModdedToolsModdedBlocksToolHandler
Link copied to clipboard
public class ModdedToolsModdedBlocksToolHandler implements ToolManagerImpl.ToolHandler
This handler handles items that are an subclass of DynamicAttributeTool by comparing their mining level using getMiningLevel and the block mining level.
ModdedToolsVanillaBlocksToolHandler
Link copied to clipboard
public class ModdedToolsVanillaBlocksToolHandler implements ToolManagerImpl.ToolHandler
This handler handles items that are a subclass of DynamicAttributeTool by using the vanilla isEffectiveOn with a custom fake tool material to use the mining level from getMiningLevel.
ShearsVanillaBlocksToolHandler
Link copied to clipboard
public class ShearsVanillaBlocksToolHandler implements ToolManagerImpl.ToolHandler
This handler handles items that are registered in the SHEARS by using the vanilla isEffectiveOn using the vanilla shears or the item itself if the item is a subclass of ShearsItem.
VanillaToolsModdedBlocksToolHandler
Link copied to clipboard
public class VanillaToolsModdedBlocksToolHandler implements ToolManagerImpl.ToolHandler
This handler handles items that are not a subclass of DynamicAttributeTool by comparing their mining level using getMiningLevel and the block mining level.