Package net.minecraftforge.common
Class ToolActions
java.lang.Object
net.minecraftforge.common.ToolActions
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ToolActionExposed by axes to allow querying tool behavioursstatic final ToolActionPassed 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 ToolActionPassed 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 ToolActionPassed 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 Set<ToolAction>static final Set<ToolAction>static final Set<ToolAction>static final Set<ToolAction>static final Set<ToolAction>static final Set<ToolAction>static final Set<ToolAction>static final Set<ToolAction>static final ToolActionThis action corresponds to right-clicking the fishing rod.static final ToolActionExposed by hoes to allow querying tool behavioursstatic final ToolActionPassed 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 ToolActionExposed by pickaxes to allow querying tool behavioursstatic final ToolActionThis 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 ToolActionExposed by shears to allow querying tool behavioursstatic final ToolActionThis action is exposed by shears and corresponds to a disarm action that is triggered by breaking a block that supports such behaviour.static final ToolActionThis 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 ToolActionA tool action corresponding to the 'block' action of shields.static final ToolActionExposed by shovels to allow querying tool behavioursstatic final ToolActionPassed 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 ToolActionExposed by swords to allow querying tool behavioursstatic final ToolActionUsed during player attack to figure out if a sweep attack should be performed
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
AXE_DIGExposed by axes to allow querying tool behaviours
- 
PICKAXE_DIGExposed by pickaxes to allow querying tool behaviours
- 
SHOVEL_DIGExposed by shovels to allow querying tool behaviours
- 
HOE_DIGExposed by hoes to allow querying tool behaviours
- 
SWORD_DIGExposed by swords to allow querying tool behaviours
- 
SHEARS_DIGExposed by shears to allow querying tool behaviours
- 
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 log
- 
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 copper
- 
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 copper
- 
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 path
- 
SWORD_SWEEPUsed during player attack to figure out if a sweep attack should be performed
- 
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. Example: Right click with shears on a beehive with honey level 5 to harvest it
- 
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. Example: Right click with shears o a pumpkin to carve it
- 
SHEARS_DISARMThis action is exposed by shears and corresponds to a disarm action that is triggered by breaking a block that supports such behaviour. Example: Breaking a trip wire with shears to disarm it.
- 
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 soil
- 
SHIELD_BLOCKA tool action corresponding to the 'block' action of shields.
- 
FISHING_ROD_CASTThis action corresponds to right-clicking the fishing rod.
- 
DEFAULT_AXE_ACTIONS
- 
DEFAULT_HOE_ACTIONS
- 
DEFAULT_SHOVEL_ACTIONS
- 
DEFAULT_PICKAXE_ACTIONS
- 
DEFAULT_SWORD_ACTIONS
- 
DEFAULT_SHEARS_ACTIONS
- 
DEFAULT_SHIELD_ACTIONS
- 
DEFAULT_FISHING_ROD_ACTIONS
 
- 
- 
Constructor Details- 
ToolActionspublic ToolActions()
 
- 
- 
Method Details- 
of
 
-