public interface IToolable
Modifier and Type | Method and Description |
---|---|
net.minecraft.item.ItemStack |
getStackDroppedByWrench(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Called to get what stack should be dropped on wrench
|
default net.minecraft.util.ActionResultType |
onWrench(net.minecraft.item.ItemUseContext context)
Called when a wrench clicks on this block
|
@Nonnull net.minecraft.item.ItemStack getStackDroppedByWrench(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos)
world
- The worldpos
- The position of the blockdefault net.minecraft.util.ActionResultType onWrench(net.minecraft.item.ItemUseContext context)
context
- Use info