Tool Manager
public final class ToolManager
Content copied to clipboard
API facing part to register tool handlers and get information about how tools are handled. Implement DynamicAttributeTool to change the mining level or speed of your tool depending on the ItemStack.
Functions
handleBreakingSpeed
Link copied to clipboard
static float handleBreakingSpeed(BlockState state, ItemStack stack, @Nullable() LivingEntity user)
Content copied to clipboard
handleBreakingSpeedIgnoresVanilla
Link copied to clipboard
static float handleBreakingSpeedIgnoresVanilla(BlockState state, ItemStack stack, @Nullable() LivingEntity user)
Content copied to clipboard
handleIsEffectiveOn
Link copied to clipboard
static boolean handleIsEffectiveOn(BlockState state, ItemStack stack, @Nullable() LivingEntity user)
Content copied to clipboard
handleIsEffectiveOnIgnoresVanilla
Link copied to clipboard
static boolean handleIsEffectiveOnIgnoresVanilla(BlockState state, ItemStack stack, @Nullable() LivingEntity user)
Content copied to clipboard
static boolean handleIsEffectiveOnIgnoresVanilla(BlockState state, ItemStack stack, @Nullable() LivingEntity user, boolean vanillaResult)
Content copied to clipboard
Sources
jvm source
Link copied to clipboard