Uses of Class
net.minecraftforge.common.ToolType
Package
Description
-
Uses of ToolType in net.minecraft.block
Modifier and TypeFieldDescriptionprivate ToolType
AbstractBlock.Properties.harvestTool
private ToolType
Block.harvestTool
Modifier and TypeMethodDescriptionAbstractBlock.Properties.getHarvestTool()
Block.getHarvestTool
(BlockState state) -
Uses of ToolType in net.minecraft.item
Modifier and TypeMethodDescriptionItem.Properties.addToolType
(ToolType type, int level) int
Item.getHarvestLevel
(ItemStack stack, ToolType tool, PlayerEntity player, BlockState blockState) -
Uses of ToolType in net.minecraftforge.common
Modifier and TypeFieldDescriptionstatic final ToolType
ToolType.AXE
static final ToolType
ToolType.HOE
static final ToolType
ToolType.PICKAXE
static final ToolType
ToolType.SHOVEL
Modifier and TypeMethodDescriptionstatic ToolType
Gets the ToolType for the specified name, or creates a new one if none for that name does yet exist.Modifier and TypeMethodDescriptionstatic void
ForgeHooks.setBlockToolSetter
(org.apache.logging.log4j.util.TriConsumer<Block, ToolType, Integer> setter) -
Uses of ToolType in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptionIForgeBlock.getHarvestTool
(BlockState state) Queries the class of tool required to harvest this block, if null is returned we assume that anything can harvest this block.default ToolType
IForgeBlockState.getHarvestTool()
Queries the class of tool required to harvest this block, if null is returned we assume that anything can harvest this block.Modifier and TypeMethodDescriptionIForgeItem.getToolTypes
(ItemStack stack) IForgeItemStack.getToolTypes()
Modifier and TypeMethodDescriptionint
IForgeItem.getHarvestLevel
(ItemStack stack, ToolType tool, PlayerEntity player, BlockState blockState) Queries the harvest level of this item stack for the specified tool class, Returns -1 if this tool is not of the specified typedefault int
IForgeItemStack.getHarvestLevel
(ToolType tool, PlayerEntity player, BlockState state) Queries the harvest level of this item stack for the specified tool class, Returns -1 if this tool is not of the specified typedefault BlockState
IForgeBlock.getToolModifiedState
(BlockState state, World world, BlockPos pos, PlayerEntity player, ItemStack stack, ToolType toolType) Returns the state that this block should transform into when right clicked by a tool.default BlockState
IForgeBlockState.getToolModifiedState
(World world, BlockPos pos, PlayerEntity player, ItemStack stack, ToolType toolType) Returns the state that this block should transform into when right clicked by a tool.default boolean
IForgeBlock.isToolEffective
(BlockState state, ToolType tool) Checks if the specified tool type is efficient on this block, meaning that it digs at full speed.default boolean
IForgeBlockState.isToolEffective
(ToolType tool) Checks if the specified tool type is efficient on this block, meaning that it digs at full speed. -
Uses of ToolType in net.minecraftforge.event
Modifier and TypeMethodDescriptionstatic BlockState
ForgeEventFactory.onToolUse
(BlockState originalState, World world, BlockPos pos, PlayerEntity player, ItemStack stack, ToolType toolType) -
Uses of ToolType in net.minecraftforge.event.world
Modifier and TypeFieldDescriptionprivate final ToolType
BlockEvent.BlockToolInteractEvent.toolType
Modifier and TypeMethodDescriptionBlockEvent.BlockToolInteractEvent.getToolType()
Gets the current type of the tool being compared against.ModifierConstructorDescriptionBlockToolInteractEvent
(IWorld world, BlockPos pos, BlockState originalState, PlayerEntity player, ItemStack stack, ToolType toolType)