ToolHandler

public interface ToolHandler

The handler to handle tool speed and effectiveness.

See also

Functions

getMiningSpeedMultiplier
Link copied to clipboard
@NotNull()
TypedActionResult<FloatgetMiningSpeedMultiplier(Tag<Item> tag, BlockState state, ItemStack stack, @Nullable() LivingEntity user)
Determines the mining speed multiplier of the tools.
isEffectiveOn
Link copied to clipboard
@NotNull()
ActionResult isEffectiveOn(Tag<Item> tag, BlockState state, ItemStack stack, @Nullable() LivingEntity user)
Determines whether this handler is active and effective of the tools.

Inheritors

ModdedToolsModdedBlocksToolHandler
Link copied to clipboard
ModdedToolsVanillaBlocksToolHandler
Link copied to clipboard
ShearsVanillaBlocksToolHandler
Link copied to clipboard
VanillaToolsModdedBlocksToolHandler
Link copied to clipboard

Sources

jvm source
Link copied to clipboard