Uses of Class
net.minecraftforge.common.ToolAction
Packages that use ToolAction
Package
Description
-
Uses of ToolAction in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type ToolActionModifier and TypeMethodDescriptionbooleanAxeItem.canPerformAction(ItemStack stack, ToolAction toolAction) booleanHoeItem.canPerformAction(ItemStack stack, ToolAction toolAction) booleanPickaxeItem.canPerformAction(ItemStack stack, ToolAction toolAction) booleanShearsItem.canPerformAction(ItemStack stack, ToolAction toolAction) booleanShieldItem.canPerformAction(ItemStack stack, ToolAction toolAction) booleanShovelItem.canPerformAction(ItemStack stack, ToolAction toolAction) booleanSwordItem.canPerformAction(ItemStack stack, ToolAction toolAction) -
Uses of ToolAction in net.minecraftforge.common
Fields in net.minecraftforge.common declared as ToolActionModifier and TypeFieldDescriptionstatic final ToolActionToolActions.AXE_DIGExposed by axes to allow querying tool behavioursstatic final ToolActionToolActions.AXE_SCRAPEPassed ontoIForgeBlock.getToolModifiedState(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.item.context.UseOnContext, net.minecraftforge.common.ToolAction, boolean)when an axe wants to scrape oxidization off copperstatic final ToolActionToolActions.AXE_STRIPPassed ontoIForgeBlock.getToolModifiedState(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.item.context.UseOnContext, net.minecraftforge.common.ToolAction, boolean)when an axe wants to strip a logstatic final ToolActionToolActions.AXE_WAX_OFFPassed ontoIForgeBlock.getToolModifiedState(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.item.context.UseOnContext, net.minecraftforge.common.ToolAction, boolean)when an axe wants to remove wax out of copperstatic final ToolActionToolActions.HOE_DIGExposed by hoes to allow querying tool behavioursstatic final ToolActionToolActions.HOE_TILLPassed ontoIForgeBlock.getToolModifiedState(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.item.context.UseOnContext, net.minecraftforge.common.ToolAction, boolean)when a hoe wants to turn dirt into soilstatic final ToolActionToolActions.PICKAXE_DIGExposed by pickaxes to allow querying tool behavioursstatic final ToolActionToolActions.SHEARS_CARVEThis action is exposed by shears and corresponds to a carve action that is triggered with a right click on a block that supports such behaviour.static final ToolActionToolActions.SHEARS_DIGExposed by shears to allow querying tool behavioursstatic final ToolActionToolActions.SHEARS_DISARMThis action is exposed by shears and corresponds to a disarm action that is triggered by breaking a block that supports such behaviour.static final ToolActionToolActions.SHEARS_HARVESTThis action is exposed by shears and corresponds to a harvest action that is triggered with a right click on a block that supports such behaviour.static final ToolActionToolActions.SHIELD_BLOCKA tool action corresponding to the 'block' action of shields.static final ToolActionToolActions.SHOVEL_DIGExposed by shovels to allow querying tool behavioursstatic final ToolActionToolActions.SHOVEL_FLATTENPassed ontoIForgeBlock.getToolModifiedState(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.item.context.UseOnContext, net.minecraftforge.common.ToolAction, boolean)when a shovel wants to turn dirt into pathstatic final ToolActionToolActions.SWORD_DIGExposed by swords to allow querying tool behavioursstatic final ToolActionToolActions.SWORD_SWEEPUsed during player attack to figure out if a sweep attack should be performedFields in net.minecraftforge.common with type parameters of type ToolActionModifier and TypeFieldDescriptionprivate static final Map<String,ToolAction> ToolAction.actionsstatic final Set<ToolAction>ToolActions.DEFAULT_AXE_ACTIONSstatic final Set<ToolAction>ToolActions.DEFAULT_HOE_ACTIONSstatic final Set<ToolAction>ToolActions.DEFAULT_PICKAXE_ACTIONSstatic final Set<ToolAction>ToolActions.DEFAULT_SHEARS_ACTIONSstatic final Set<ToolAction>ToolActions.DEFAULT_SHIELD_ACTIONSstatic final Set<ToolAction>ToolActions.DEFAULT_SHOVEL_ACTIONSstatic final Set<ToolAction>ToolActions.DEFAULT_SWORD_ACTIONSMethods in net.minecraftforge.common that return ToolActionModifier and TypeMethodDescriptionstatic ToolActionGets or creates a new ToolAction for the given name.Methods in net.minecraftforge.common that return types with arguments of type ToolActionModifier and TypeMethodDescriptionstatic Collection<ToolAction>ToolAction.getActions()Returns all registered actions.private static Set<ToolAction>ToolActions.of(ToolAction... actions) Methods in net.minecraftforge.common with parameters of type ToolActionModifier and TypeMethodDescriptionprivate static Set<ToolAction>ToolActions.of(ToolAction... actions) -
Uses of ToolAction in net.minecraftforge.common.data
Methods in net.minecraftforge.common.data with parameters of type ToolActionModifier and TypeMethodDescriptionprivate booleanForgeLootTableProvider.findAndReplaceInAlternative(AlternativeLootItemCondition alternative, Item from, ToolAction toolAction) private booleanForgeLootTableProvider.findAndReplaceInLootEntry(LootPoolEntryContainer entry, Item from, ToolAction toolAction) private booleanForgeLootTableProvider.findAndReplaceInLootPool(LootPool lootPool, Item from, ToolAction toolAction) private booleanForgeLootTableProvider.findAndReplaceInLootTableBuilder(LootTable.Builder builder, Item from, ToolAction toolAction) private booleanForgeLootTableProvider.findAndReplaceInParentedLootEntry(CompositeEntryBase entry, Item from, ToolAction toolAction) -
Uses of ToolAction in net.minecraftforge.common.extensions
Methods in net.minecraftforge.common.extensions with parameters of type ToolActionModifier and TypeMethodDescriptiondefault booleanIForgeItem.canPerformAction(ItemStack stack, ToolAction toolAction) Queries if an item can perform the given action.default booleanIForgeItemStack.canPerformAction(ToolAction toolAction) Queries if an item can perform the given action.default BlockStateIForgeBlock.getToolModifiedState(BlockState state, UseOnContext context, ToolAction toolAction, boolean simulate) Returns the state that this block should transform into when right-clicked by a tool.default BlockStateIForgeBlock.getToolModifiedState(BlockState state, Level level, BlockPos pos, Player player, ItemStack stack, ToolAction toolAction) Deprecated, for removal: This API element is subject to removal in a future version.default BlockStateIForgeBlockState.getToolModifiedState(UseOnContext context, ToolAction toolAction, boolean simulate) Returns the state that this block should transform into when right-clicked by a tool.default BlockStateIForgeBlockState.getToolModifiedState(Level level, BlockPos pos, Player player, ItemStack stack, ToolAction toolAction) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of ToolAction in net.minecraftforge.common.loot
Fields in net.minecraftforge.common.loot declared as ToolActionMethods in net.minecraftforge.common.loot with parameters of type ToolActionModifier and TypeMethodDescriptionstatic LootItemCondition.BuilderCanToolPerformAction.canToolPerformAction(ToolAction action) Constructors in net.minecraftforge.common.loot with parameters of type ToolAction -
Uses of ToolAction in net.minecraftforge.debug.item
Methods in net.minecraftforge.debug.item with parameters of type ToolActionModifier and TypeMethodDescriptionbooleanCustomShieldTest.CustomShieldItem.canPerformAction(ItemStack stack, ToolAction toolAction) -
Uses of ToolAction in net.minecraftforge.event
Methods in net.minecraftforge.event with parameters of type ToolActionModifier and TypeMethodDescriptionstatic BlockStateForgeEventFactory.onToolUse(BlockState originalState, UseOnContext context, ToolAction toolAction, boolean simulate) static BlockStateForgeEventFactory.onToolUse(BlockState originalState, Level level, BlockPos pos, Player player, ItemStack stack, ToolAction toolAction) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of ToolAction in net.minecraftforge.event.world
Fields in net.minecraftforge.event.world declared as ToolActionModifier and TypeFieldDescriptionprivate final ToolActionBlockEvent.BlockToolModificationEvent.toolActionMethods in net.minecraftforge.event.world that return ToolActionConstructors in net.minecraftforge.event.world with parameters of type ToolActionModifierConstructorDescriptionBlockToolInteractEvent(BlockState originalState, UseOnContext context, ToolAction toolAction) Deprecated, for removal: This API element is subject to removal in a future version.BlockToolInteractEvent(LevelAccessor world, BlockPos pos, BlockState originalState, Player player, ItemStack stack, ToolAction toolAction) Deprecated, for removal: This API element is subject to removal in a future version.BlockToolModificationEvent(BlockState originalState, UseOnContext context, ToolAction toolAction, boolean simulate) (package private)BlockToolModificationEvent(LevelAccessor level, BlockPos pos, BlockState originalState, ToolAction toolAction)
IForgeBlock.getToolModifiedState(BlockState, UseOnContext, ToolAction, boolean)instead