Package net.minecraftforge.common
Class ToolActions
java.lang.Object
net.minecraftforge.common.ToolActions
-
Field Summary
Modifier and TypeFieldDescriptionstatic ToolAction
Exposed by axes to allow querying tool behavioursstatic ToolAction
Passed ontoIForgeBlock.getToolModifiedState(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.Level, net.minecraft.core.BlockPos, net.minecraft.world.entity.player.Player, net.minecraft.world.item.ItemStack, net.minecraftforge.common.ToolAction)
when an axe wants to scrape oxidization off copperstatic ToolAction
Passed ontoIForgeBlock.getToolModifiedState(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.Level, net.minecraft.core.BlockPos, net.minecraft.world.entity.player.Player, net.minecraft.world.item.ItemStack, net.minecraftforge.common.ToolAction)
when an axe wants to strip a logstatic ToolAction
Passed ontoIForgeBlock.getToolModifiedState(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.Level, net.minecraft.core.BlockPos, net.minecraft.world.entity.player.Player, net.minecraft.world.item.ItemStack, net.minecraftforge.common.ToolAction)
when an axe wants to remove wax out of copperstatic Set<ToolAction>
static Set<ToolAction>
static Set<ToolAction>
static Set<ToolAction>
static Set<ToolAction>
static Set<ToolAction>
static Set<ToolAction>
static ToolAction
Exposed by shovels to allow querying tool behavioursstatic ToolAction
Exposed by pickaxes to allow querying tool behavioursstatic ToolAction
This 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 ToolAction
Exposed by shears to allow querying tool behavioursstatic ToolAction
This action is exposed by shears and corresponds to a disarm action that is triggered by breaking a block that supports such behaviour.static ToolAction
This 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 ToolAction
A tool action corresponding to the 'block' action of shields.static ToolAction
Exposed by shovels to allow querying tool behavioursstatic ToolAction
Passed ontoIForgeBlock.getToolModifiedState(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.Level, net.minecraft.core.BlockPos, net.minecraft.world.entity.player.Player, net.minecraft.world.item.ItemStack, net.minecraftforge.common.ToolAction)
when a shovel wants to turn dirt into pathstatic ToolAction
Exposed by swords to allow querying tool behavioursstatic ToolAction
Used during player attack to figure out if a sweep attack should be performed -
Constructor Summary
-
Method Summary
-
Field Details
-
AXE_DIG
Exposed by axes to allow querying tool behaviours -
PICKAXE_DIG
Exposed by pickaxes to allow querying tool behaviours -
SHOVEL_DIG
Exposed by shovels to allow querying tool behaviours -
HOE_DIG
Exposed by shovels to allow querying tool behaviours -
SWORD_DIG
Exposed by swords to allow querying tool behaviours -
SHEARS_DIG
Exposed by shears to allow querying tool behaviours -
AXE_STRIP
Passed ontoIForgeBlock.getToolModifiedState(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.Level, net.minecraft.core.BlockPos, net.minecraft.world.entity.player.Player, net.minecraft.world.item.ItemStack, net.minecraftforge.common.ToolAction)
when an axe wants to strip a log -
AXE_SCRAPE
Passed ontoIForgeBlock.getToolModifiedState(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.Level, net.minecraft.core.BlockPos, net.minecraft.world.entity.player.Player, net.minecraft.world.item.ItemStack, net.minecraftforge.common.ToolAction)
when an axe wants to scrape oxidization off copper -
AXE_WAX_OFF
Passed ontoIForgeBlock.getToolModifiedState(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.Level, net.minecraft.core.BlockPos, net.minecraft.world.entity.player.Player, net.minecraft.world.item.ItemStack, net.minecraftforge.common.ToolAction)
when an axe wants to remove wax out of copper -
SHOVEL_FLATTEN
Passed ontoIForgeBlock.getToolModifiedState(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.Level, net.minecraft.core.BlockPos, net.minecraft.world.entity.player.Player, net.minecraft.world.item.ItemStack, net.minecraftforge.common.ToolAction)
when a shovel wants to turn dirt into path -
SWORD_SWEEP
Used during player attack to figure out if a sweep attack should be performed -
SHEARS_HARVEST
This 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_CARVE
This 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_DISARM
This 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. -
SHIELD_BLOCK
A tool action corresponding to the 'block' action of shields. -
DEFAULT_AXE_ACTIONS
-
DEFAULT_HOE_ACTIONS
-
DEFAULT_SHOVEL_ACTIONS
-
DEFAULT_PICKAXE_ACTIONS
-
DEFAULT_SWORD_ACTIONS
-
DEFAULT_SHEARS_ACTIONS
-
DEFAULT_SHIELD_ACTIONS
-
-
Constructor Details
-
ToolActions
public ToolActions()
-
-
Method Details
-
of
-