ToolManagerImpl

public final class ToolManagerImpl

Types

Entry
Link copied to clipboard
public interface Entry
ToolHandler
Link copied to clipboard
public interface ToolHandler
The handler to handle tool speed and effectiveness.

Functions

entry
Link copied to clipboard
static ToolManagerImpl.Entry entry(Block block)
entryNullable
Link copied to clipboard
@Nullable()
static ToolManagerImpl.Entry entryNullable(Block block)
general
Link copied to clipboard
static Event<ToolManagerImpl.ToolHandlergeneral()
Returns a event used for every tag registered.
handleBreakingSpeedIgnoresVanilla
Link copied to clipboard
static float handleBreakingSpeedIgnoresVanilla(BlockState state, ItemStack stack, @Nullable() LivingEntity user)
handleIsEffectiveOnIgnoresVanilla
Link copied to clipboard
static boolean handleIsEffectiveOnIgnoresVanilla(BlockState state, ItemStack stack, @Nullable() LivingEntity user, boolean vanillaResult)
Hook for ItemStack.isEffectiveOn and similar methods.
registerBreakByHand
Link copied to clipboard
static void registerBreakByHand(Block block, boolean value)
registerBreakByTool
Link copied to clipboard
static void registerBreakByTool(Block block, Tag<Item> tag, int miningLevel)
tag
Link copied to clipboard
static Event<ToolManagerImpl.ToolHandlertag(Tag<Item> tag)
Returns a event for the tag provided, creates a new event if it does not exist.

Sources

jvm source
Link copied to clipboard